samuelmaddock / gm-mediaplayer

:tv: Garry's Mod media player which features synchronized streaming media services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem

ForeverButthurt opened this issue · comments

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

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.

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.

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.