Pause/Resume during picture in picture (#156)
* Pause/Resume during picture in picture * changelog * changelog
This commit is contained in:
1 parent
a6f8cb59ee
commit
324543684d
3 files changed
+34
-1
No files matched your search
@@ -81,6 +81,18 @@ namespace VideoUtils
|
||||
player.control = "resume"
|
||||
end function
|
||||
|
||||
function TogglePause() as void
|
||||
player = GetVideoPlayer()
|
||||
if player = invalid
|
||||
return
|
||||
end if
|
||||
if player.state = "playing"
|
||||
player.control = "pause"
|
||||
else if player.state = "paused"
|
||||
player.control = "resume"
|
||||
end if
|
||||
end function
|
||||
|
||||
end namespace
|
||||
|
||||
|
||||
Reference in new issue
Block a user