WMPlayer icon indicating copy to clipboard operation
WMPlayer copied to clipboard

RTMP url is not working

Open iamvijay7 opened this issue 5 years ago • 2 comments

I am trying to play RTMP url but it gives me server error!

WMPlayerModel *playerModel = [WMPlayerModel new]; playerModel.videoURL = [NSURL URLWithString:@"rtmp://184.72.239.149/vod/BigBuckBunny_115k.mov"]; WMPlayer * wmPlayer = [[WMPlayer alloc]initPlayerModel:playerModel]; [self.view addSubview:wmPlayer]; [wmPlayer mas_makeConstraints:^(MASConstraintMaker *make) { make.leading.trailing.top.equalTo(self.view); make.height.mas_equalTo(wmPlayer.mas_width).multipliedBy(9.0/16); }]; [wmPlayer play];

Can you help should i change any setting?

iamvijay7 avatar May 09 '19 06:05 iamvijay7

Please use the WNPlayer component。The example code is in WNPlayerDetailViewController.m file

zhengwenming avatar May 09 '19 11:05 zhengwenming

Please use the WNPlayer component。The example code is in WNPlayerDetailViewController.m file

Ok but when i try to run demo game getting 'libavformat/avformat.h' file not found error? How to solve this issue. There is no detail about WNPlayer much.

iamvijay7 avatar May 10 '19 11:05 iamvijay7