File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1358,7 +1358,7 @@ def test_rsa_client():
13581358
13591359
13601360def test_live_channel ():
1361- print ( "create live channel..." )
1361+ """测试rtmp推流功能"""
13621362 livechannel_config = {
13631363 'Description' : 'cos python sdk test' ,
13641364 'Switch' : 'Enabled' ,
@@ -1445,6 +1445,7 @@ def test_live_channel():
14451445 client .delete_live_channel (Bucket = test_bucket , ChannelName = ch_name )
14461446
14471447 print ("post vod playlist" )
1448+ '''playlist不以.m3u8结尾'''
14481449 try :
14491450 client .post_vod_playlist (
14501451 Bucket = test_bucket ,
@@ -1453,7 +1454,9 @@ def test_live_channel():
14531454 StartTime = int (time .time ()) - 10000 ,
14541455 EndTime = int (time .time ()))
14551456 except Exception as e :
1456- print_error_msg (e )
1457+ pass
1458+
1459+ '''starttime大于endtimne'''
14571460 try :
14581461 client .post_vod_playlist (
14591462 Bucket = test_bucket ,
@@ -1462,7 +1465,7 @@ def test_live_channel():
14621465 StartTime = 10 ,
14631466 EndTime = 9 )
14641467 except Exception as e :
1465- print_error_msg ( e )
1468+ pass
14661469
14671470 client .post_vod_playlist (
14681471 Bucket = test_bucket ,
You can’t perform that action at this time.
0 commit comments