youtube / youtube-ios-player-helper

Lightweight helper library that allows iOS developers to add inline playback of YouTube videos through a WebView
Other
1.64k stars 680 forks source link

Video ID : "HpkXAmGVaR8" always goes to -1 (Unstarted State) #417

Closed ankit0812 closed 2 years ago

ankit0812 commented 3 years ago

We have tested this on the sample app as well where we always get the below error. Similar cases where seen on few other videos as well kindly help.

Screenshot 2020-10-30 at 11 53 24 PM
ankit0812 commented 3 years ago

Any updates on this guys???

gmoledina commented 3 years ago

Experiencing the same issue with some videos. All videos start with the 'Unstarted' state but then move on to 'buffering' and then 'playing'. But some get stuck on 'Unstarted', then the quality of the feed changes and then nothing - infinite spin.

When I copy the HTML in a separate file and open with the browser on desktop, the video does play. So the issue seems to be within the web view. Example of videoID that doesn't play: KP62zAyGXdY

gmoledina commented 3 years ago

@todd-patterson any insights on this? 🙏

gmoledina commented 3 years ago

I copied the code from the html template after the injection of the videoId and other parameters and opened that page with Safari in the Simulator - the video doesn't load! And I see these errors :

Screen Shot 2021-01-19 at 23 28 35

Would really appreciate some guidance on how to fix this @todd-patterson 🙏

ykws commented 2 years ago

@ankit0812 Hi, have you solved this issue yet? I can now play this video ID "HpkXAmGVaR8".

ankit0812 commented 2 years ago

I believe it is something at youtube's end. For me also it started playing after a week or so. Might be something to do with their transcoding.