ytPlayer icon indicating copy to clipboard operation
ytPlayer copied to clipboard

User Agent needs updating

Open alexshive opened this issue 10 years ago • 2 comments

During runtime, I got an error for response.content['player_data']['fmt_stream_map']

Turns out the response is a redirect (most likely from a Youtube update)

A simple fix is updating the UserAgent to the following: Mozilla/5.0 (iPhone; CPU iPhone OS 7_1 like Mac OS X) AppleWebKit/537.51.2 (KHTML, like Gecko) Version/7.0 Mobile/11D167 Safari/9537.53

alexshive avatar May 09 '14 22:05 alexshive

This user agent only works on iphone 64bit and ipad 64bit simulator. The non 64bit iphone and ipad simulator returns an error (redirect). I have tried to set a bunch of older useragent strings found on iphone4 and iphone3 but all return an error (redirect). I havent been able to test this your suggested user agent on a non 64bit device. Anyone else having the same problems?

pbosma avatar Aug 15 '14 09:08 pbosma

I found using the android user agent in ios can solve the problem

morefun0302 avatar Feb 26 '15 10:02 morefun0302