samuelmaddock / gm-mediaplayer

:tv: Garry's Mod media player which features synchronized streaming media services
MIT License
49 stars 30 forks source link

Problem #4

Closed ForeverButthurt closed 9 years ago

ForeverButthurt commented 9 years ago

Buttons pause/resume and seek don't work on youtube service.

samuelmaddock commented 9 years ago

Are you using the entity right-click menu? I created a much nicer sidebar menu, but I have it commented out here: https://github.com/pixeltailgames/gm-mediaplayer/blob/master/lua/mp_menu/sidebar.lua#L204-L205

Uncomment the two lines and change the KEY_ enums to whatever you want.

samuelmaddock commented 9 years ago

Looks like the JavaScript code isn't able to interact with the YouTube player since it's likely using the HTML5 version now instead of Flash. I'll see what I can do to fix this.

samuelmaddock commented 9 years ago

I changed the YouTube service to use the IFrame Player API instead of directly loading the YouTube page. The issues you were experiencing should be fixed.