The relsetting in the YouTube API determines whether related videos are displayed at the end. When the rel=0video returns to the thumbnail using the play button.
rel
rel=0
However, on mobile devices (tested on iPhone / iPad / Fire Tablet), when the video returns to thumbnail, it cannot be played a second time. He just does nothing.
I reported the problem to Google , but there was nothing left after a few days.
I had to resort to destroying the video and recreating it, but this created a kind of vile flicker.
My experience with YouTube is that they never end up fixing anything related to iOS, so I was wondering if there was any other trick to prevent this.
Testing Page
- , , , , , , script . . . , . ... , . , API YouTube "Events" "Listeners", , , : "onStateChange".
"Events"
"Listeners"
"onStateChange"
When onStateChange = "ended" () , . javascript. API .
When onStateChange = "ended"
http://code.google.com/apis/youtube/js_api_reference.html http://grizzlyweb.com/webmaster/javascripts/refresh.asp http://code.google.com/apis/youtube/forum/
loop playlist. , .
loop
playlist
, - : http://www.youtube.com/embed/ {VIDEO_ID}? wmode = opaque & loop = 1 & version = 3 & playlist = {VIDEO_ID}
, !
Now I can play the video several times (on multiple devices) without getting stuck. I was too busy wondering why my question had so little attention that I forgot to check again to make sure it was fixed; -)
Source: https://habr.com/ru/post/1606001/More articles:How does adding JDK to ramdisk improve IDE performance? - java"Go to definition" from a .xaml.cs file leads me to .gics files instead of a .xaml file in Visual Studio 2015 - c #SQL Where Not Equal Does Not Return NULL Results - sqlTypedefs, Ruby and SWIG - c ++Use promises inside a service, but DO NOT return a promise - javascriptКак предварительно выбрать бумажный элемент в раскрывающемся меню из данных модели? - javascriptFlexbox с неупорядоченным списком - cssSerialization of foreign languages using JSON.Net - json.netI still see Java 1.8 when I do a java version after downgrading to 1.7 - javaScala - JSON object is polymorphic in field type - scalaAll Articles