top of page
- API -
length = reaper.AZ_GetMediaItemLength(mediaItem)
- API Detail-
▼Input value
MediaItem (MediaItem): Media item
▼Output value
retval(bool): Whether the API execution was successful or not
length(number): The length of the specified media item (in seconds).
- SCRIPT -
function Msg(param)
reaper.ShowConsoleMsg(tostring(param).."\n")
end
mediaItem = reaper.AZ_GetMediaItemSelect(0,0,0)
length = reaper.AZ_GetMediaItemLength(mediaItem)
Msg(length)
MEDIA
AZ_GetMediaItemLength
Supported versions:
1.0.3
onwards
Gets the length (in seconds) of the specified media item.
bottom of page