diff --git a/ios/include/qcMsg.h b/ios/include/qcMsg.h index 1242b15..2d6a0ad 100644 --- a/ios/include/qcMsg.h +++ b/ios/include/qcMsg.h @@ -100,7 +100,7 @@ #define QC_MSG_PLAY_CLOSE_FAILED 0x16000004 #define QC_MSG_PLAY_SEEK_DONE 0x16000005 #define QC_MSG_PLAY_SEEK_FAILED 0x16000006 -#define QC_MSG_PLAY_COMPLETE 0x16000007 +#define QC_MSG_PLAY_COMPLETE 0x16000007 // the param is int *. 0 is normal ,1 is error. #define QC_MSG_PLAY_STATUS 0x16000008 #define QC_MSG_PLAY_DURATION 0x16000009 #define QC_MSG_PLAY_OPEN_START 0x1600000A diff --git a/ios/lib/libqcPlayEng.a b/ios/lib/libqcPlayEng.a index f0b3f61..1b27ed7 100644 Binary files a/ios/lib/libqcPlayEng.a and b/ios/lib/libqcPlayEng.a differ diff --git a/ios/sample/TestCode/ViewController.mm b/ios/sample/TestCode/ViewController.mm index 2aff3ad..69b2135 100644 --- a/ios/sample/TestCode/ViewController.mm +++ b/ios/sample/TestCode/ViewController.mm @@ -117,7 +117,7 @@ - (void)onPlayerEvent:(int)nID withParam:(void*)pParam } else if(nID == QC_MSG_SNKV_FIRST_FRAME) { - NSLog(@"[EVT]First video frame rendered, %x\n", nID); + NSLog(@"[EVT]First video frame rendered\n"); } } @@ -224,9 +224,10 @@ -(void)prepareURL [_urlList addObject:@"rtmp://live.hkstv.hk.lxdns.com/live/hks"]; [_urlList addObject:@"http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"]; + [_urlList addObject:@"rtmp://183.146.213.65/live/hks?domain=live.hkstv.hk.lxdns.com"]; -#if 1 - [_urlList addObject:@"http://live1-cloud.itouchtv.cn/recordings/z1.touchtv-1.59fbcdaea3d5ec7f14564584/179b5bd6ce990b8a8ebd141b091419ac.mp4"]; +#if 0 + [_urlList addObject:@"http://pili-live-hdl.duimian.cn/loovee/doll_top.flv"]; [_urlList addObject:@"http://114.55.127.142:80/g17614640s0t1510127320465SI1u4754539i1.flv"]; [_urlList addObject:@"rtmp://pili-publish.wangliangliang.qiniuts.com/wangliangliang-piliwork/57e2234275b62535c30003a7"]; [_urlList addObject:@"https://ofmw8vyd3.qnssl.com/1461562925fetch/111.mp4"]; @@ -537,7 +538,7 @@ -(IBAction)onStop:(id)sender return; int useTime = [self getSysTime]; - NSLog(@"+Stop"); + NSLog(@"+Stop[KPI]"); [((UIButton*)sender) setTitle:@"START" forState:UIControlStateNormal]; @@ -553,7 +554,7 @@ -(IBAction)onStop:(id)sender [_sliderPosition setValue:0.0]; [_tableViewStreamInfo removeFromSuperview]; _tableViewStreamInfo = nil; - NSLog(@"-Stop, %d", [self getSysTime]-useTime); + NSLog(@"-Stop[KPI], %d\n\n", [self getSysTime]-useTime); } - (IBAction)onPositionChangeBegin:(id)sender @@ -629,6 +630,7 @@ -(void)onAppActive:(BOOL)active -(IBAction)onFullScreen:(id)sender { + //return [self onStop:_btnStart]; if(!_isFullScreen) { _isFullScreen = YES;