Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 095efd2

Browse files
committed
Updated comment
1 parent 32f9a75 commit 095efd2

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

src/electron/livemeapi.js

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -318,27 +318,21 @@ class LiveMe {
318318
return endedAt * 1000
319319
}
320320

321+
322+
323+
321324
// Helper function intended to choose the correct video source.
322325
//
323326
// @returns string: M3U8 URL of the replay/live video OR
324327
// an empty string if the replay is being generated/was deleted
325328
//
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.
326333
pickProperVideoSource(videoInfo, preferLiveFlv) {
327334
let properSource
328335

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`.
342336
switch (+videoInfo.status) {
343337
case 0:
344338
// User is live

0 commit comments

Comments
 (0)