Simplify export and filter manifests from dash generation.

This commit is contained in:
Kavin
2023-03-02 14:18:53 +00:00
parent bf0fb000e3
commit acff16a8d4
2 changed files with 183 additions and 179 deletions

View File

@@ -283,9 +283,10 @@ export default {
mime = "application/x-mpegURL";
} else if (this.video.audioStreams.length > 0 && !lbry && MseSupport) {
if (!this.video.dash) {
const dash = (
await import("@/utils/DashUtils.js").then(mod => mod.default)
).generate_dash_file_from_formats(streams, this.video.duration);
const dash = (await import("../utils/DashUtils.js")).generate_dash_file_from_formats(
streams,
this.video.duration,
);
uri = "data:application/dash+xml;charset=utf-8;base64," + btoa(dash);
} else {