Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Restart YouTube video

$
0
0

I added a webview to a view and loaded a YouTube video (the url property is filled with a youtube video url): when I click the youtube red start button in the middle of the webview, iOS opens the native video player.

When the video stops playing (simply because it ends) and I click the video player native "Done" button on the top left corner of the video player, the video player closes, I can see my webview BUT I can't play my video again. Why? Because YouTube automatically selects a new random video, so that I can't play again the video I first started (while, I would like to put the playhead of the video on its first "frame" and paused, the way I see it when the webview first loads).

I tried to refresh the webview with a setTimeout right after the video starts but with no luck.

Has anyone ever solved this issue?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>