I am curruntly trying to play youtube video using JWPlayer ios sdk for this i follow step like this:
1) I go on https://www.jwplayer.com/ and create free trial account
2) After i downloaded open source jwplayer demo from jwplayer SDK and setup app key in info.plist use code like
JWConfig *obj_config = [[JWConfig alloc]init];
obj_config.file = @"http://youtube.com/watch?v=VIDEO_ID";
obj_config.image = @"Thumbnils_Url";
obj_config.size = CGSizeMake(320,320);
self.obj_player = [[JWPlayerController alloc] initWithConfig:obj_config];
[self.view addSubview:self.obj_player.view];
It`s give error like:
SETUP ERROR { event = onSetupError; message = "Error loading player: No playable sources found"; }
my question is jwplayer support youtube streaming or not?
if supported than how to play youtube video ?
Yes jwplayer supports youtube videos but HTML5 is the only supported method for Youtube playback in jwplayer.
For you reference https://support.jwplayer.com/customer/portal/articles/1406725-youtube-video-embed
You cannot play youtube videos in mobile through jwplayer.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments