pili-engineering / PLMediaStreamingKit

PLMediaStreamingKit 是七牛推出的一款适用于 iOS 平台的推流 SDK,支持 RTMP 推流,h.264 和 AAC 编码,硬编、软编支持。具有丰富的数据和状态回调,方便用户根据自己的业务定制化开发。具有直播场景下的重要功能,如:美颜、背景音乐、水印等功能。

Home Page:https://github.com/pili-engineering/PLMediaStreamingKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

推流失败:Pili-Network error:the url is not authorized 和 Pili-Streaming stream URL is invalid

yangguangyu opened this issue · comments

使用sdk推流报错,但是使用obs就没有问题,贴一下地址rtmp://9618.livepush.myqcloud.com/live/9618_40000016_manLive_16?txSecret=14b2c67a587080600a207a1a2f02d081&txTime=59cf4b50

2017-09-26 16:05:32:166 zlive[2949:836803] [W] Pili-Encode error:clean temp path failed Error Domain=NSCocoaErrorDomain Code=4 "“piliv” couldn’t be removed." UserInfo={NSFilePath=/private/var/mobile/Containers/Data/Application/6DEABABC-BF92-485A-9A0B-3F42413B5425/tmp/piliv, NSUserStringVariant=(
Remove
), NSUnderlyingError=0x17405bab0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} +[PLOldH264Encoder cleanTempFile]_block_invoke PLH264OldEncoder.mm:72
2017-09-26 16:05:32:169 zlive[2949:836803] [W] Pili-Encode error:[AAC Encoder] source ASBD not inited -[PLiOSAACEncoder setupAudioConverter] PLiOSAACEncoder.m:224
2017-09-26 16:05:32:320 zlive[2949:836803] [W] Pili-Streaming cannot push pixelbuffer since last pixelbuffer is still on going -[PLStreamingSession pushPixelBuffer:completion:] PLStreamingSession.m:885
2017-09-26 16:05:32:347 zlive[2949:836685] [W] Pili-Network error:the url is not authorized -[PLZeusPublish query:] PLZeusPublish.m:297
2017-09-26 16:05:32:347 zlive[2949:836685] [W] Pili-Streaming error:error:Error Domain=qiniu.pili Code=-3 "(null)" UserInfo={error=the domain is unauthorized} -[PLStreamingSession onConfigChange] PLStreamingSession.m:1855
2017-09-26 16:05:32:356 zlive[2949:836899] [W] Pili-Streaming cannot push pixelbuffer since last pixelbuffer is still on going -[PLStreamingSession pushPixelBuffer:completion:] PLStreamingSession.m:885
2017-09-26 16:05:32:398 zlive[2949:836687] [W] Pili-Streaming cannot push pixelbuffer since last pixelbuffer is still on going -[PLStreamingSession pushPixelBuffer:completion:] PLStreamingSession.m:885
2017-09-26 16:05:32:439 zlive[2949:836687] [W] Pili-Streaming cannot push pixelbuffer since last pixelbuffer is still on going -[PLStreamingSession pushPixelBuffer:completion:] PLStreamingSession.m:885
2017-09-26 16:05:32:482 zlive[2949:836687] [W] Pili-Streaming cannot push pixelbuffer since last pixelbuffer is still on going -[PLStreamingSession pushPixelBuffer:completion:] PLStreamingSession.m:885

ZLLiveViewController.m:46 Streaming started.2017-09-26 16:05:32:534 zlive[2949:836899] [W] Pili-Streaming cannot push pixelbuffer since last pixelbuffer is still on going -[PLStreamingSession pushPixelBuffer:completion:] PLStreamingSession.m:885
2017-09-26 16:05:32:649 zlive[2949:836899] [W] Pili-Streaming cannot push pixelbuffer since last pixelbuffer is still on going -[PLStreamingSession pushPixelBuffer:completion:] PLStreamingSession.m:885
2017-09-26 16:05:32:693 zlive[2949:836899] [W] Pili-Streaming cannot push pixelbuffer since last pixelbuffer is still on going -[PLStreamingSession pushPixelBuffer:completion:] PLStreamingSession.m:885
2017-09-26 16:05:32:745 zlive[2949:836899] [W] Pili-Streaming cannot push pixelbuffer since last pixelbuffer is still on going -[PLStreamingSession pushPixelBuffer:completion:] PLStreamingSession.m:885
2017-09-26 16:05:32:777 zlive[2949:836802] [W] Pili-Streaming error:error:Error Domain=qiniu.pili Code=-3 "(null)" UserInfo={error=the domain is unauthorized} -[PLStreamingSession shutdownStreamWithError:] PLStreamingSession.m:1454
2017-09-26 16:05:32:778 zlive[2949:836802] [W] Pili-Streaming error:**RTMP session shutdown with remote ip: 116.31.69.152, path: /live/9618_40000016_manLive_16 ** -[PLStreamingSession shutdownStreamWithError:] PLStreamingSession.m:1457

请联系七牛的销售或者技术支持。