Closed lisongting closed 6 years ago
-3 是 IO_ERROR,网络问题
感谢回复。我知道-3是网络问题,我昨天在教程网页中也看到了。我想请问的是extra中的数字代表的是什么意思?
网络问题已经解决。目前我的直播流还是无法播放,Android Studio打印的部分log如下。为了方便查看,这个日志我也粘到pastebin中了:在这里方便查看。 在日志中,我发现postEventFromNative 后面会输出三个数字,而且第二个数字变化幅度较大,请问这三个数字代表的含义是什么?
11-09 16:51:30.102 31727-31727/com.paperfish.streammediatest I/QPlayer: init: 2.0.3, QPlayer-v1.1.0.50
11-09 16:51:30.102 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 CNDKPlayer L57 The device propertity is 7.1.1
11-09 16:51:30.102 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 CNDKPlayer L79 Post event method = 0x740746ed98
11-09 16:51:30.103 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 COMBoxMng L71 SDK version 1.1.0.50, 10:11:34 Nov 3 2017
11-09 16:51:30.103 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L186 ----SetParam start.
11-09 16:51:30.103 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L204 ----SetParam leave! rc = 0. Used Time: 0
11-09 16:51:30.103 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L186 ----SetParam start.
11-09 16:51:30.103 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L204 ----SetParam leave! rc = -2147483640. Used Time: 0
11-09 16:51:30.103 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L186 ----SetParam start.
11-09 16:51:30.103 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L204 ----SetParam leave! rc = 0. Used Time: 0
11-09 16:51:30.104 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L186 ----SetNotifyFunc start.
11-09 16:51:30.104 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L208 ----SetNotifyFunc leave! no return. Ussed Time: 0
11-09 16:51:30.111 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 CNDKPlayer L508 Network QOS sdk ID is 151013457605631
11-09 16:51:30.111 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 CNDKPlayer L520 Network QOS SDK version is 2.0.3
11-09 16:51:30.111 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 CNDKPlayer L496 Network QOS app name is com.paperfish.streammediatest
11-09 16:51:30.111 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 CNDKPlayer L484 Network QOS app version is 1.0
11-09 16:51:30.111 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 CNDKPlayer L291 The qplayer version is 1010032
11-09 16:51:30.111 31727-31727/com.paperfish.streammediatest I/QPlayer: init done: 497965163008
11-09 16:51:30.112 31727-31727/com.paperfish.streammediatest I/QPlayer: setAVOptions Hardware Decode: true
11-09 16:51:30.112 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L186 ----SetParam start.
11-09 16:51:30.112 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L204 ----SetParam leave! rc = 0. Used Time: 0
11-09 16:51:30.112 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 CAnalysisMng L900 [ANL]Recv network change event
11-09 16:51:30.112 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 CNDKPlayer L425 Network QOS Changed!
11-09 16:51:30.112 31727-31727/com.paperfish.streammediatest I/QPlayer: setAVOptions KEY_CACHE_BUFFER_DURATION: 1000
11-09 16:51:30.113 31727-31727/com.paperfish.streammediatest I/QPlayer: setAVOptions [v_callback, a_callback, v_render, a_render]: false, false, false, false
11-09 16:51:30.115 31727-31727/com.paperfish.streammediatest I/QPlayer: setAVOptions Hardware Decode: true
11-09 16:51:30.115 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L186 ----SetParam start.
11-09 16:51:30.115 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L204 ----SetParam leave! rc = 0. Used Time: 0
11-09 16:51:30.115 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 CAnalysisMng L900 [ANL]Recv network change event
11-09 16:51:30.115 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 CNDKPlayer L425 Network QOS Changed!
11-09 16:51:30.115 31727-31727/com.paperfish.streammediatest I/QPlayer: setAVOptions KEY_CACHE_BUFFER_DURATION: 1000
11-09 16:51:30.116 31727-31727/com.paperfish.streammediatest I/QPlayer: setAVOptions [v_callback, a_callback, v_render, a_render]: false, false, false, false
11-09 16:51:30.116 31727-31727/com.paperfish.streammediatest I/@@@QCLOG: Info T13237A98 QCFuncLog L186 ----SetParam start.
11-09 16:51:30.116 31727-31727/com.paperfish.streammediatest I/QPlayer: setLooping false
11-09 16:51:30.143 31727-31727/com.paperfish.streammediatest I/QPlayer: setDataSource: rtmp://192.168.0.118/rgb State: IDLE
11-09 16:51:30.143 31727-31727/com.paperfish.streammediatest I/QPlayer: setSurface + State: IDLE
11-09 16:51:30.144 31727-31727/com.paperfish.streammediatest I/QPlayer: setSurface -
11-09 16:51:30.144 31727-31727/com.paperfish.streammediatest I/QPlayer: prepareAsync State: IDLE
11-09 16:51:30.145 31727-31727/com.paperfish.streammediatest I/QPlayer: nativeOpen: 0
11-09 16:51:30.149 31727-31727/com.paperfish.streammediatest I/QPlayer: onNetworkChanged !
11-09 16:51:30.150 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 1600000a, 0, 0
11-09 16:51:30.151 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 0, 0
11-09 16:51:30.152 31727-31727/com.paperfish.streammediatest I/QPlayer: network info: WIFI, null, null, 0, 0
11-09 16:51:30.153 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010001, 0, 0
11-09 16:51:30.174 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010005, 0, 0
11-09 16:51:30.175 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010003, 0, 0
11-09 16:51:30.175 31727-31773/com.paperfish.streammediatest I/QPlayer: onInfo: 200, 0
11-09 16:51:30.176 31727-31727/com.paperfish.streammediatest I/tag: onInfo -- what:200 extra:0
11-09 16:51:30.273 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11020001, 0, 0
11-09 16:51:30.274 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010006, 0, 0
11-09 16:51:30.275 31727-31773/com.paperfish.streammediatest I/QPlayer: length = 14
11-09 16:51:30.275 31727-31773/com.paperfish.streammediatest I/QPlayer: onInfo: 340, 0
11-09 16:51:30.275 31727-31727/com.paperfish.streammediatest I/tag: onInfo -- what:340 extra:0
11-09 16:51:30.811 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 12000001, 1, 0
11-09 16:51:30.822 31727-31772/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 16000001, 0, 0
11-09 16:51:30.824 31727-31772/com.paperfish.streammediatest I/QPlayer: network info: WIFI, null, null, 0, 0
11-09 16:51:30.824 31727-31772/com.paperfish.streammediatest I/QPlayer: onPrepared: 680 ms
11-09 16:51:30.825 31727-31727/com.paperfish.streammediatest I/QPlayer: start + State: PREPARED
11-09 16:51:30.826 31727-31727/com.paperfish.streammediatest I/QPlayer: start -
11-09 16:51:30.827 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 16000009, 0, 0
11-09 16:51:30.827 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 1600000c, 0, 0
11-09 16:51:31.388 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 18000003, 25, 0
11-09 16:51:31.388 31727-31773/com.paperfish.streammediatest I/QPlayer: onInfo: 10003, 25
[ 11-09 16:51:31.388 31776:31822 D/ ]
[Posix_connect Debug]Process com.meizu.flyme.weather :80
11-09 16:51:31.388 31727-31727/com.paperfish.streammediatest I/tag: onInfo -- what:10003 extra:25
11-09 16:51:32.320 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 68332, 0
11-09 16:51:34.537 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 55451, 0
11-09 16:51:35.106 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 18000001, 0, 0
11-09 16:51:35.106 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 18000002, 0, 0
11-09 16:51:35.819 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 18000016, 0, 0
11-09 16:51:35.820 31727-31773/com.paperfish.streammediatest I/QPlayer: onInfo: 701, 0
11-09 16:51:35.820 31727-31727/com.paperfish.streammediatest I/tag: onInfo -- what:701 extra:0
11-09 16:51:36.710 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 73110, 0
11-09 16:51:38.881 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 60783, 0
11-09 16:51:40.107 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 18000001, 127, 0
11-09 16:51:40.107 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 18000002, 0, 0
11-09 16:51:41.061 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 73114, 0
11-09 16:51:43.238 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 59913, 0
11-09 16:51:45.110 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 18000001, 274, 0
11-09 16:51:45.111 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 18000002, 0, 0
11-09 16:51:45.423 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 72150, 0
11-09 16:51:47.597 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 70985, 0
11-09 16:51:49.778 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 60027, 0
11-09 16:51:50.108 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 18000001, 425, 0
11-09 16:51:50.109 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 18000002, 0, 0
11-09 16:51:51.951 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 74079, 0
11-09 16:51:54.138 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 71787, 0
11-09 16:51:55.109 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 18000001, 575, 0
11-09 16:51:55.110 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 18000002, 0, 0
11-09 16:51:56.293 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 62410, 0
11-09 16:51:58.447 31727-31773/com.paperfish.streammediatest I/QPlayer: postEventFromNative: 11010004, 54681, 0
我想使用PLVideoTextureView 来播放RTMP直播流,我的rtmp直播流地址是:rtmp://192.168.0.107/video ,192.168.0.107是我的ubuntu的ip地址,我在ubuntu上使用ffmpeg进行推流,服务器是nginx,我使用
ffplay rtmp://192.168.0.107/video
可以正常播放我的视频。手机和ubuntu可以ping通,但是手机上无法正常播放rtmp直播流。我在代码中设置了监听器打印这个回调信息打印的信息是:
请问错误的原因是什么?我知道what的含义(在 https://developer.qiniu.com/pili/sdk/1210/the-android-client-sdk 中有)
但上面的extra是什么意思?我没有在网页上找到相关说明