WMPlayer icon indicating copy to clipboard operation
WMPlayer copied to clipboard

it does not support Without extension video fromat

Open kirti301290 opened this issue 6 years ago • 8 comments

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

kirti301290 avatar Dec 25 '18 16:12 kirti301290

please give me a test URL,I'll try my best!

zhengwenming avatar Jan 05 '19 07:01 zhengwenming

Pls check this url http://185.134.22.15:8080/2493496367/xrhJ1Dgy9U/50032

kirti301290 avatar Jan 30 '19 18:01 kirti301290

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];

zhengwenming avatar Jan 31 '19 09:01 zhengwenming

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}

kirti301290 avatar Jan 31 '19 11:01 kirti301290

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]

zhengwenming avatar Feb 14 '19 07:02 zhengwenming

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

kirti301290 avatar Feb 18 '19 07:02 kirti301290

@zhengwenming waiting your reply can you tell how can add volume and brightness gesture in DetailViewController (sample code controler class) please help me

kirti301290 avatar Mar 19 '19 18:03 kirti301290

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。

zhengwenming avatar Apr 02 '19 03:04 zhengwenming