GetCurrentTime#
- ExportWebVideoPlayer.GetCurrentTime()#
動画の現在再生時間を取得します。
IsAvailable()がfalseの場合は0を返します。
IsAvailable()がtrueであり、GetStatus()がBeforeLoadの場合は-1を返します。- Returns:
動画の現在再生時間
- Return type:
number
Example#
-- Webビデオプレイヤーの再生中の動画の現在再生時間を取得する
local webVideoPlayer = vci.vc.room.webVideoPlayer
function updateAll()
if webVideoPlayer.IsAvailable() then
-- 再生中の動画の現在再生時間を取得する
if webVideoPlayer.GetStatus() == ExportWebVideoPlayerStatus.Playing then
print(webVideoPlayer.GetCurrentTime())
end
end
end