bobmonsour / simplevideo

Simple meteor app to play a video using the YouTube iFrame API
0 stars 1 forks source link

video controls? #2

Open dcsan opened 9 years ago

dcsan commented 9 years ago

does this have the functionality of your slow-motion video playback buttons somewhere? I see an embedded video but don't see those buttons. I assume you have to send some events to the YT api while the video is playing... is there anything tricky to that?

image

bobmonsour commented 9 years ago

It does have the slow/fast buttons, but they only show on wider screens. I just pushed a new version to github that removes the hidden class for the smaller screens. As a result, they'll probably show up below the video on the smaller width browser windows. If you widen your window, they'll probably show up. Unfortunately, I did a force push and so it lost the readme which I had created on the github interface.

I just make call the setPlaybackRate function on the target element. It's all built into the youtubeAPI.js file.

Regards, -Bob

——————————— Are you a tennis player?

Join me in celebrating the one-handed backhand. Video instruction from the best teaching pros and slow-motion videos of the best touring pros. http://onehanders.com

On Dec 6, 2014, at 8:29 PM, dc notifications@github.com wrote:

does this have the functionality of your slow-motion video playback buttons somewhere? I see an embedded video but don't see those buttons. I assume you have to send some events to the YT api while the video is playing... is there anything tricky to that?

— Reply to this email directly or view it on GitHub.

bobmonsour commented 9 years ago

I forgot to add that the playback control buttons don't appear until you start to play the video. The only way to know that there are multiple speeds available are checking after the video starts playing.

Also, there are quite a few options that are set in youtubeAPI.js for things like autoplay. I currently have autoplay turned off, but have it enabled on the site.