From d16e9973480f57f9de7920799ac0fecf00ce8ee2 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 23 Nov 2021 12:42:21 +0530 Subject: [PATCH] Inline a bunch of things --- src/tools/DashUtils.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/tools/DashUtils.js b/src/tools/DashUtils.js index fdc1f86..a225684 100644 --- a/src/tools/DashUtils.js +++ b/src/tools/DashUtils.js @@ -8,7 +8,7 @@ const DashUtils = { return xml.json2xml(generatedJSON) }, generate_xmljs_json_from_data (VideoFormatArray, VideoLength) { - const convertJSON = { + return { declaration: { attributes: { version: '1.0', @@ -36,7 +36,6 @@ const DashUtils = { } ] } - return convertJSON }, generate_adaptation_set (VideoFormatArray) { const adaptationSets = [] @@ -92,7 +91,7 @@ const DashUtils = { return adaptationSets }, generate_representation_audio (Format) { - const representation = { + return { type: 'element', name: 'Representation', attributes: { @@ -137,10 +136,9 @@ const DashUtils = { } ] } - return representation }, generate_representation_video (Format) { - const representation = { + return { type: 'element', name: 'Representation', attributes: { @@ -181,7 +179,6 @@ const DashUtils = { } ] } - return representation } }