bob-sims / ytPlayer

Simple cross-platform Alloy Widget for Titanium Mobile, plays streaming YouTube video with native Ti.Media.VideoPlayer
Other
43 stars 15 forks source link

Content is null on IOS #9

Open cicciopage opened 10 years ago

cicciopage commented 10 years ago

Hi, your widget has always worked in my project, but in the last week the videos have not been played anymore (Only on iOS, on Android they work). The response json doesn't include the "content" attribute and so var isHighQuality = response.content['player_data']['fmt_stream_map'] != null; var streamUrl = isHighQuality ? response.content['player_data']['fmt_stream_map'][0].url : ''; give me back an undefined error. Youtube may be changed some policy? Thanks for your help, your work is great!

Example request: http://m.youtube.com/watch?ajax=1&layout=mobile&tsp=1&utcoffset=330&v=_fWSx10SHlA

zabady commented 9 years ago

Did it work with you? I have the same issue...