youtube / youtube-ios-player-helper

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

- (void)setPlaybackRate:(float)suggestedRate / - (NSArray *)availablePlaybackRates not working #82

Open conanm opened 9 years ago

conanm commented 9 years ago

Returns 'nil'. Running 'player.getAvailablePlaybackRates();' in the Javascript console in the .html page generated by this library returns a valid array.

Is this command not working in embedded iFrame players on iOS? If so we should strip these methods from the library.

asenchuk commented 8 years ago

Here's my investigation: availablePlaybackRates() doesn't work correctly. It needs to get not player.getAvailablePlaybackRates(); result but player.getAvailablePlaybackRates().toString(); and handle it properly.

But it doesn't help to change playback rate. If it works great (remade as I described) it returns only 1 value [1.0] so there's no possibility to change speed. It seems like speed changing is not supported by YT JS library in Safari on iOS.

Is it going to be fixed?

eduhcano commented 8 years ago

Change rate speed didn't work for me either.