This repository was archived by the owner on Aug 23, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -318,27 +318,21 @@ class LiveMe {
318
318
return endedAt * 1000
319
319
}
320
320
321
+
322
+
323
+
321
324
// Helper function intended to choose the correct video source.
322
325
//
323
326
// @returns string: M3U8 URL of the replay/live video OR
324
327
// an empty string if the replay is being generated/was deleted
325
328
//
329
+ // -------------- DEPRECIATED BY THECODER ON 12-15-2021 ---------------------
330
+ // This function is no longer viable, replays now return empty source and
331
+ // hlsvideosource when directly queried even when the URL can be obtained
332
+ // other ways.
326
333
pickProperVideoSource ( videoInfo , preferLiveFlv ) {
327
334
let properSource
328
335
329
- // We should use `hlsvideosource` if it's a live video (except for the
330
- // internal video player).
331
- // We should use `videosource` if it's a replay.
332
- //
333
- // This ensures we're always getting the URL of a M3U8 file and never
334
- // of a FLV stream.
335
- //
336
- // However, `videosource` will be empty if the replay is 30+ days older.
337
- // That's because replays older than 30 days are marked as "Expired"
338
- // in the official app and can't be watched (through the app).
339
- //
340
- // Since we're not the official app, we can ignore that, because the
341
- // replay URL will still be available through `hlsvideosource`.
342
336
switch ( + videoInfo . status ) {
343
337
case 0 :
344
338
// User is live
You can’t perform that action at this time.
0 commit comments