VMediaPlayer不在ios 11上显示视频

问题描述 投票:0回答:1

IOS上的播放器有问题。我使用VMediaPlayer(Vitamio)播放mp4文件和HLS流。在ios 10和更低的工作正常,但在ios 11我没有视频,只有声音。

这是我的代码:

    if (!mMPlayer) {
    mMPlayer = [VMediaPlayer sharedInstance];
    [mMPlayer setupPlayerWithCarrierView:self.videoCanvas withDelegate:self];
    [mMPlayer setBufferSize:512*1024];
    [mMPlayer setVideoQuality:VMVideoQualityHigh];
    [mMPlayer setVolume:1.0f];
}
NSURL *videoURL = [ [ NSURL alloc ] initWithString: self.videoURL ];
[mMPlayer setDataSource:videoURL header:nil];
NSArray *key = @[@"-rtmp_live"];
NSArray *val = @[@"-1"];
[mMPlayer setOptionsWithKeys:key withValues:val];
[mMPlayer prepareAsync];
[player start];
ios media-player vitamio
1个回答
0
投票

GitHub上有一个关于您确切问题的问题:

https://github.com/yixia/Vitamio-iOS/issues/58

到目前为止还没有解决方案,一个用户建议切换到另一个像ijkplayer这样的玩家

© www.soinside.com 2019 - 2024. All rights reserved.