I am developing a video application which contains a lot of video from different sources. One of the options in the application has to be to play videos through airplay on a TV.
For displaying YouTube video in my application I am using YTPlayerView, which is an objective-C helper for the YouTube API.
My question is: is there an option or param I can pass so the YouTube video can also be played through Airplay? I couldn't find anything useful on Internet.
In
- (BOOL)loadWithPlayerParams:(NSDictionary *)additionalPlayerParams
inYTPlayerView.m
(line 617), add:right before you
return YES
.