WMPlayer
WMPlayer copied to clipboard
it does not support Without extension video fromat
it working ok but without format extension url it dos not play video please help me how to play video even if without format extension url like : http://xxxxx.5LxJBVA9be/49210
please give me a test URL,I'll try my best!
Pls check this url http://185.134.22.15:8080/2493496367/xrhJ1Dgy9U/50032
Thanks,I got your test URL http://185.134.22.15:8080/2493496367/xrhJ1Dgy9U/50032 The Player(WNPlayer)works well。 You should use the components of WMPlayer‘s named WNPlayer。And I show you the test code below:
self.wnPlayer = [[WNPlayer alloc] init]; self.wnPlayer.autoplay = YES; self.wnPlayer.delegate = self; self.wnPlayer.repeat = YES; self.wnPlayer.title = self.playerModel.title; self.wnPlayer.urlString = @"http://185.134.22.15:8080/2493496367/xrhJ1Dgy9U/50032"; [self.view addSubview:self.wnPlayer];
[self.wnPlayer mas_makeConstraints:^(MASConstraintMaker *make) {
make.leading.trailing.equalTo(self.wnPlayer.superview);
make.top.equalTo(self.blackView.mas_bottom);
make.height.mas_equalTo(self.wnPlayer.mas_width).multipliedBy(9.0/16);
}];
[self.wnPlayer open];
[self.wnPlayer play];
Thanks for quick reply ,yes it working your sample code but it does not work my app and other url working in my app can you tell me what is missing here is error log
Player decoder error: Error Domain=WNPlayerDecoder Code=-2 "Cannot open input" UserInfo={NSLocalizedDescription=Cannot open input}
I do not kown why it won't work in your project yet.But you can also send your project to me if prossible. E-mail:[email protected]
Thank you for help and quick reply checked your sample code and found that is work when i load url in DetailViewController but it does not work when i load url in WNPlayerDetailViewController, need volume and brightness gesture in DetailViewController is this possible ? Thanks
@zhengwenming waiting your reply can you tell how can add volume and brightness gesture in DetailViewController (sample code controler class) please help me
You can add volume and brightness gesture code in WNPlayer。WNPlayer is kind of calss UIView,and it has a contentView,You should add gestures on contentView。 WMPlayer is an example for you to Copy。