NamPNQ / bower-videogular-youtube

Videogular `youtube` plugin repository for distribution on `bower`
MIT License
41 stars 32 forks source link

Can't get video to play on iOS #46

Closed drejohnson closed 8 years ago

drejohnson commented 9 years ago

Here's my code pen if that helps. Videogular without the Youtube plugin works fine.

2fdevs commented 9 years ago

Can yuo post the codepen again? It seems that github cut it. :P

drejohnson commented 9 years ago

Here it is: http://codepen.io/drejohnson/pen/ZbvEoQ

rg-najera commented 9 years ago

I'm having the same issues. Checked out the codepen and same deal.

rubenCodeforges commented 9 years ago

@2fdevs any progress on that ? i cant reproduce it without iOS , linux seems ok , can be some browser specific issues i mean safari , dont know is it still on webkit or not .

Perhaps ill try in opera but FF , Chrome works fine.

It also could be an issue of z-index and play button overlay

rubenCodeforges commented 9 years ago

Opera works fine

NamPNQ commented 9 years ago

As i remember, in ios , youtube iframe need bring to top to work, @rubenCodeforges Can you show we the message show in console when run in ios

rubenCodeforges commented 9 years ago

@NamPNQ sorry buddy i dont have iOS , but @el-rotny has , its now but night in usa , so he will be back like in 8 hours

rubenCodeforges commented 9 years ago

@NamPNQ BTW android and all available browser for it , works fine

rg-najera commented 9 years ago

@NamPNQ WebGL: INVALID_ENUM: getParameter: invalid parameter name, WEBGL_debug_renderer_info not enabled is not an error, it's a warning on html5player. No errors on the console as of now. The video shows "if playback doesn't begin shortly, try restarting your device" @rubenCodeforges we should note that we added the Vimeo support. Is there a fork everyone can try out? as per PR #45

Here is a screenshot https://www.dropbox.com/s/ojojpzvd6v597ce/Screenshot%202015-10-29%2010.44.05.png?dl=0

rubenCodeforges commented 9 years ago

@el-rotny ive provided guys with the code , but vimeo is not firing when we are handling a youtube url

2fdevs commented 9 years ago

@rubenCodeforges @el-rotny I haven't got time to take a look to this issue yet, I'm pretty busy this last two weeks at work. That WebGL error is quite weird and it looks to me a Youtube error more than a Videogular error.

Not all Youtube videos plays well on all devices, specially if it's an old video. Did you tried playing that Youtube video in Youtube website on iOS?

rg-najera commented 9 years ago

@drejohnson did you find a solution you can share?

rubenCodeforges commented 9 years ago

@2fdevs hi seems like on ios the controls of videogular are blocked and thats why we cant play the video. A solution is to disable vg-controlls and overlay-play and other overlays , so that the youtube player is native. its a fallback but thanks to iOS devs for this sht

rg-najera commented 8 years ago

For anyone coming across this issue. This plugin is not compatible with https://github.com/videogular/bower-videogular-overlay-play on iOS. The protocols to play videos need to be initiated by user directly on the iframe rather than programmatically. Also, the controls from videogular wont initiate the player. What we did to combat this issue, is to hide the controls on API.currentState is equal to stop and hiding the overlay on the same state, only when on iOS. Once the video is played, the controls will be available on hover if you have that setting enabled.

Thanks @rubenCodeforges and @2fdevs for the help.

NamPNQ commented 8 years ago

No any update more. I close this issuse. if you have more questions, we can reopen ticket.