Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在ios中播放RTMP实时视频流_Ios_Objective C_Video_Rtmp_Vitamio - Fatal编程技术网

无法在ios中播放RTMP实时视频流

无法在ios中播放RTMP实时视频流,ios,objective-c,video,rtmp,vitamio,Ios,Objective C,Video,Rtmp,Vitamio,我已使用以下链接下载了示例代码: 我尝试播放RTMP视频流,但它没有播放,因此出现错误: nal1rre&&VMediaPlayer错误:(null) 我用了这把钥匙: keys[0] = @"-rtmp_live"; vals[0] = @"-1"; [mMPayer setOptionsWithKeys:keys withValues:vals]; 视频不能播放 有人知道为什么吗?你找到解决方案了吗?是的,你必须使用stringByAddingPercentEscapesUsingEnc

我已使用以下链接下载了示例代码:

我尝试播放RTMP视频流,但它没有播放,因此出现错误:

nal1rre&&VMediaPlayer错误:(null)

我用了这把钥匙:

keys[0] = @"-rtmp_live";
vals[0] = @"-1";
[mMPayer setOptionsWithKeys:keys withValues:vals];
视频不能播放


有人知道为什么吗?

你找到解决方案了吗?是的,你必须使用stringByAddingPercentEscapesUsingEncoding对url进行编码。你找到解决方案了吗?是的,你必须使用stringByAddingPercentEscapesUsingEncoding对url进行编码