mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-25 15:07:21 +00:00
Fix playback of LBRY streams.
This commit is contained in:
parent
c1a2aef8e3
commit
44607bf429
@ -71,17 +71,21 @@ export default {
|
||||
|
||||
const MseSupport = window.MediaSource !== undefined;
|
||||
|
||||
const lbry = this.video.videoStreams.filter(stream => stream.quality === "LBRY")[0];
|
||||
|
||||
var uri;
|
||||
|
||||
if (this.video.livestream) {
|
||||
uri = this.video.hls;
|
||||
} else if (this.video.audioStreams.length > 0 && MseSupport) {
|
||||
} else if (this.video.audioStreams.length > 0 && !lbry && MseSupport) {
|
||||
const dash = require("@/utils/DashUtils.js").default.generate_dash_file_from_formats(
|
||||
streams,
|
||||
this.video.duration,
|
||||
);
|
||||
|
||||
uri = "data:application/dash+xml;charset=utf-8;base64," + btoa(dash);
|
||||
} else if (lbry) {
|
||||
uri = lbry.url;
|
||||
} else {
|
||||
uri = this.video.videoStreams.filter(stream => stream.codec == null).slice(-1)[0].url;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user