If you want video controls in your game, you’ll have to make them with Control nodes such as Buttons. You can attach them to VideoPlayer methods (ie
No, the user doesn’t need anything installed for Godot to work. Video (Webm and Ogg Theora) libraries are built in.
Okay… I made a play and stop button… that works okay.
I really need a pause button that pauses the video so when the user presses the Play button again it will continue where it was paused.
However, currently with my stop button. If i press play again, it starts the video over from the beginning… that is not what i need. I need it to play from where i stopped (or paused) it.
Can that be done?
pixelinkmedia | 2019-06-10 00:14
The VideoPlayer docs contain all the information you need. In this case, the
kidscancode | 2019-06-10 00:16
I read that… very basic and not much info.
Doesn’t explain my situation at all.
I tried just using “pause” but clicking play starts the video over from beginning.
THIS IS WORNG… see below post
pixelinkmedia | 2019-06-10 00:23
Sorry… mis-spoke… this code doesn’t even work,
pixelinkmedia | 2019-06-10 00:26
Here is what I have for code for play and pause buttons
pixelinkmedia | 2019-06-10 00:32
I tried this… and it paused the video.
Now if I can get the play to work right
pixelinkmedia | 2019-06-10 00:53
Okay… figured it out…
The play and pause buttons both work.
pixelinkmedia | 2019-06-10 00:58
Good work. FYI, set/get are not necessary for object properties:
$CanvasLayer/VideoPlayer.paused = false
$CanvasLayer/VideoPlayer.paused = true
kidscancode | 2019-06-10 01:06
Okay. That works too.
pixelinkmedia | 2019-06-10 10:11