pili-engineering / PLDroidPlayer

PLDroidPlayer 是七牛推出的一款免费的适用于 Android 平台的播放器 SDK,采用全自研的跨平台播放内核,拥有丰富的功能和优异的性能,可高度定制化和二次开发。
https://developer.qiniu.com/pili/sdk/1210/the-android-client-sdk
4.54k stars 953 forks source link

视频不能播放,但是播放器没有回调任何接口 #848

Open Vashon opened 6 years ago

Vashon commented 6 years ago

你好,我使用 2.0.6 版本的 demo 播放视频 https://zy.512wx.com/20171130/WGqp6YcC/index.m3u8 ,这个视频播放不了,但是播放器没有回调 onError 接口,也没有回调其他接口。

下面是播放器打印的log

02-06 15:59:19.630 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: onSurfaceCreated: Surface(name=null)/@0xac50e68 02-06 15:59:19.631 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: init: 2.0.6, QPlayer-v1.1.0.58, 16842810 02-06 15:59:19.631 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CNDKPlayer L55 The device propertity is 7.0 02-06 15:59:19.631 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CNDKPlayer L77 Post event method = 0xb165668c 02-06 15:59:19.631 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 COMBoxMng L74 SDK version 1.1.0.58, 17:54:20 Dec 22 2017 02-06 15:59:19.632 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L256 ----SetParam Value is 11000100 start. 02-06 15:59:19.632 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L274 ----SetParam leave! rc = 0. Used Time: 0 02-06 15:59:19.632 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L256 ----SetParam Value is 11000101 start. 02-06 15:59:19.632 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L274 ----SetParam leave! rc = -2147483640. Used Time: 0 02-06 15:59:19.632 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L256 ----SetParam Value is 11000004 start. 02-06 15:59:19.632 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L274 ----SetParam leave! rc = 0. Used Time: 0 02-06 15:59:19.632 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L256 ----SetNotifyFunc Value is 00000000 start. 02-06 15:59:19.632 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L278 ----SetNotifyFunc leave! no return. Ussed Time: 0 02-06 15:59:19.636 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CNDKPlayer L566 Network QOS sdk ID is 1517903395775912 02-06 15:59:19.636 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CNDKPlayer L578 Network QOS SDK version is 2.0.6 02-06 15:59:19.636 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CNDKPlayer L554 Network QOS app name is com.pili.pldroid.playerdemo 02-06 15:59:19.636 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CNDKPlayer L542 Network QOS app version is 2.0.6 02-06 15:59:19.636 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CNDKPlayer L315 The qplayer version is 101003A 02-06 15:59:19.636 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: init done: -1758571520 02-06 15:59:19.636 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: setAVOptions Hardware Decode: false 02-06 15:59:19.637 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L256 ----SetParam Value is 11000200 start. 02-06 15:59:19.637 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L274 ----SetParam leave! rc = 0. Used Time: 0 02-06 15:59:19.637 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CAnalysisMng L1099 [ANL]Recv network change event 02-06 15:59:19.637 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CNDKPlayer L483 Network QOS Changed! 02-06 15:59:19.637 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: setAVOptions KEY_PREPARE_TIMEOUT: 10000 02-06 15:59:19.638 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: setAVOptions [v_callback, a_callback, v_render, a_render]: false, false, false, false 02-06 15:59:19.639 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: setAVOptions Hardware Decode: false 02-06 15:59:19.640 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L256 ----SetParam Value is 11000200 start. 02-06 15:59:19.640 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L274 ----SetParam leave! rc = 0. Used Time: 0 02-06 15:59:19.640 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CAnalysisMng L1099 [ANL]Recv network change event 02-06 15:59:19.640 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CNDKPlayer L483 Network QOS Changed! 02-06 15:59:19.640 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: setAVOptions KEY_PREPARE_TIMEOUT: 10000 02-06 15:59:19.641 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: setAVOptions [v_callback, a_callback, v_render, a_render]: false, false, false, false 02-06 15:59:19.641 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: setLooping false 02-06 15:59:19.641 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L256 ----SetParam Value is 11000320 start. 02-06 15:59:19.641 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L274 ----SetParam leave! rc = 0. Used Time: 0 02-06 15:59:19.641 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CAnalysisMng L1099 [ANL]Recv network change event 02-06 15:59:19.641 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CNDKPlayer L483 Network QOS Changed! 02-06 15:59:19.641 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: setDataSource: https://zy.512wx.com/20171130/WGqp6YcC/index.m3u8 State: IDLE 02-06 15:59:19.641 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: setSurface + State: IDLE 02-06 15:59:19.641 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CNDKVideoRnd L80 the surface is 0xbe832530 02-06 15:59:19.642 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 CNDKVideoRnd L109 Set Surface: env 0xb2ba3230, surface 0xbe832530 02-06 15:59:19.642 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: setSurface - 02-06 15:59:19.642 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: prepareAsync State: IDLE 02-06 15:59:19.642 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 jniPlayer L85 Open source: https://zy.512wx.com/20171130/WGqp6YcC/index.m3u8 02-06 15:59:19.642 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L256 ----Open Value is 00000000 start. 02-06 15:59:19.642 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L256 --------Close Value is 00000000 start. 02-06 15:59:19.642 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L274 --------Close leave! rc = 0. Used Time: 0 02-06 15:59:19.642 21273-21273/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TB5977534 QCFuncLog L274 ----Open leave! rc = 0. Used Time: 0 02-06 15:59:19.642 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: nativeOpen: 0 02-06 15:59:19.642 21273-31181/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB0FF920 QCFuncLog L256 ----ReceiveMsg Value is 1600000A start. 02-06 15:59:19.643 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 COMBoxMng L1373 The Event ID = 70000001 02-06 15:59:19.643 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 QCFuncLog L256 ----OnHandleEvent Value is 70000001 start. 02-06 15:59:19.643 21273-31181/com.pili.pldroid.playerdemo I/QPlayer: postEventFromNative: 1600000a, 0, 0 02-06 15:59:19.643 21273-31181/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB0FF920 QCFuncLog L274 ----ReceiveMsg leave! rc = 0. Used Time: 1 02-06 15:59:19.644 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 QCFuncLog L256 --------DoOpen Value is 00000000 start. 02-06 15:59:19.644 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 QCFuncLog L256 ------------OpenSource Value is 00000000 start. 02-06 15:59:19.644 21273-31181/com.pili.pldroid.playerdemo I/@@@QCLOG: QCMSG QC_MSG_PLAY_OPEN_START 00 : 00 : 00 : 000 0 0
02-06 15:59:19.646 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 ULIBFunc L85 Load qcOpenSSL libqcOpenSSL.so. hLib = 0x4a8afa35 02-06 15:59:19.649 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 QCFuncLog L256 ----------------ConnectServer Value is 00000000 start. 02-06 15:59:19.653 21273-21273/com.pili.pldroid.playerdemo I/QPlayer: onSurfaceChanged: Surface(name=null)/@0xac50e68 02-06 15:59:19.678 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 QCFuncLog L274 ----------------ConnectServer leave! rc = 0. Used Time: 28 02-06 15:59:19.700 21273-21273/com.pili.pldroid.playerdemo W/IInputConnectionWrapper: finishComposingText on inactive InputConnection 02-06 15:59:19.729 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 CDNSCache L464 The Host zy.512wx.com of IP 128.1.223.162 httpdns connect time is 10 02-06 15:59:19.729 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 CDNSCache L464 The Host zy.512wx.com of IP 128.14.79.202 httpdns connect time is 20 02-06 15:59:19.729 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 CDNSCache L464 The Host zy.512wx.com of IP 128.1.146.26 httpdns connect time is 30 02-06 15:59:19.729 21273-31180/com.pili.pldroid.playerdemo W/@@@QCLOG: Warn TAB1B1920 CHTTPClient L297 Parse DNS used time = 80 02-06 15:59:19.729 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 QCFuncLog L256 ----------------ConnectServer Value is 00000000 start. 02-06 15:59:20.242 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 QCFuncLog L274 ----------------ConnectServer leave! rc = 0. Used Time: 513 02-06 15:59:20.411 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 CHTTPClient L1085 CHTTPClient RecHeader Error:-2147483635 02-06 15:59:20.411 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 CHTTPIO2 L117 Open https://zy.512wx.com/20171130/WGqp6YcC/index.m3u8. Length is 9223372036854775807. Used Time 767. 02-06 15:59:20.414 21273-31196/com.pili.pldroid.playerdemo W/@@@QCLOG: Warn TAB072920 CHTTPClient L1249 server closed socket! 02-06 15:59:20.428 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 ULIBFunc L116 Free lib = 0x4a8afa35 02-06 15:59:20.428 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 C_HLS_Entity L226 NewURL:https://zy.512wx.com/20171130/WGqp6YcC/index.m3u8 02-06 15:59:20.428 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 C_HLS_Entity L227 URL:https://zy.512wx.com/20171130/WGqp6YcC/index.m3u8 02-06 15:59:20.428 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 C_HLS_Entity L1085 event callback the root url:https://zy.512wx.com/20171130/WGqp6YcC/index.m3u8 02-06 15:59:20.428 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 C_HLS_Entity L1087 event callback the url:/ppvod/56557035B66963414D9B6371C317CF54.m3u8 02-06 15:59:20.430 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 ULIBFunc L85 Load qcOpenSSL libqcOpenSSL.so. hLib = 0xe76eb7cd 02-06 15:59:20.431 21273-31180/com.pili.pldroid.playerdemo W/@@@QCLOG: Warn TAB1B1920 CHTTPClient L297 Parse DNS used time = 0 02-06 15:59:20.432 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 QCFuncLog L256 ----------------ConnectServer Value is 00000000 start. 02-06 15:59:21.258 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 QCFuncLog L274 ----------------ConnectServer leave! rc = 0. Used Time: 826 02-06 15:59:21.506 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 CHTTPClient L1085 CHTTPClient RecHeader Error:-2147483635 02-06 15:59:21.506 21273-31180/com.pili.pldroid.playerdemo I/@@@QCLOG: Info TAB1B1920 CHTTPIO2 L117 Open https://zy.512wx.com/ppvod/56557035B66963414D9B6371C317CF54.m3u8. Length is 9223372036854775807. Used Time 1078. 02-06 15:59:32.275 21273-31214/com.pili.pldroid.playerdemo W/@@@QCLOG: Warn TAB072920 CHTTPClient L1471 select read buffer is timeout count 21, socket maybe disconnect

zshbleaker commented 6 years ago

网络超时了

Vashon commented 6 years ago

@zshbleaker 嗯嗯,问题是超时后播放器并不回调 onError 接口,这样没办法做后续的处理。