lang 5 жил өмнө
parent
commit
91816f13c4
1 өөрчлөгдсөн 5 нэмэгдсэн , 5 устгасан
  1. 5 5
      Controller/TestApi.py

+ 5 - 5
Controller/TestApi.py

@@ -112,7 +112,7 @@ class testView(View):
         with open('local.txt', 'wb') as f:
             f.write(resp['Body'].read())
 
-
+    #获取播放列表
     def do_test_query_vod_list(self, userID, ip, request_dict, response):
         uid = 'GZL2PEFJPLY7W6BG111A'
         channel = 2
@@ -153,12 +153,12 @@ class testView(View):
             'sec': 12})
         return response.json(0, vod_play_list)
 
+    #生成m3u8列表
     def do_sign_play_m3u8(self, request_dict, response):
         uid = 'GZL2PEFJPLY7W6BG111A'
         channel = 2
-        storeTime = 1590485548
-        sec = 11
-        fg = 3
+        storeTime = 1591344070
+        fg = 6
         bucket__region = 'ap-northeast-1'
         bucket_name = 'azvod1'
         aws_access_key_id = 'AKIA2E67UIMD45Y3HL53'
@@ -189,7 +189,7 @@ class testView(View):
             #     format(uid=uid, channel=channel, time=vod['time'])
             playlist_entries.append({
                 'name': response_url,
-                'duration': 4,
+                'duration': 10,
             })
         playlist = PlaylistGenerator(playlist_entries).generate()
         response = HttpResponse(playlist)