-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support multiple audio/subtitle playlists and export generateSid…
…xKey (#123)
- Loading branch information
1 parent
f0da2cc
commit f7105d8
Showing
12 changed files
with
3,754 additions
and
2,485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
export const parsedManifest = { | ||
allowCache: true, | ||
discontinuityStarts: [], | ||
segments: [], | ||
endList: true, | ||
mediaGroups: { | ||
'AUDIO': { | ||
audio: { | ||
en: { | ||
language: 'en', | ||
autoselect: true, | ||
default: true, | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': '0', | ||
'BANDWIDTH': 130803, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1, | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs' | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 60, | ||
segments: [], | ||
mediaSequence: 1, | ||
sidx: { | ||
uri: 'http://example.com/audio_en_2c_128k_aac.mp4', | ||
resolvedUri: 'http://example.com/audio_en_2c_128k_aac.mp4', | ||
byterange: { | ||
length: 224, | ||
offset: 786 | ||
}, | ||
map: { | ||
uri: '', | ||
resolvedUri: 'http://example.com/audio_en_2c_128k_aac.mp4', | ||
byterange: { | ||
length: 786, | ||
offset: 0 | ||
} | ||
}, | ||
duration: 60, | ||
timeline: 0, | ||
number: 0 | ||
} | ||
} | ||
], | ||
uri: '' | ||
}, | ||
es: { | ||
language: 'es', | ||
autoselect: true, | ||
default: false, | ||
playlists: [ | ||
{ | ||
attributes: { | ||
'NAME': '1', | ||
'BANDWIDTH': 130405, | ||
'CODECS': 'mp4a.40.2', | ||
'PROGRAM-ID': 1, | ||
'AUDIO': 'audio', | ||
'SUBTITLES': 'subs' | ||
}, | ||
uri: '', | ||
endList: true, | ||
timeline: 0, | ||
resolvedUri: '', | ||
targetDuration: 60, | ||
segments: [], | ||
mediaSequence: 1, | ||
sidx: { | ||
uri: 'http://example.com/audio_es_2c_128k_aac.mp4', | ||
resolvedUri: 'http://example.com/audio_es_2c_128k_aac.mp4', | ||
byterange: { | ||
length: 224, | ||
offset: 786 | ||
}, | ||
map: { | ||
uri: '', | ||
resolvedUri: 'http://example.com/audio_es_2c_128k_aac.mp4', | ||
byterange: { | ||
length: 786, | ||
offset: 0 | ||
} | ||
}, | ||
duration: 60, | ||
timeline: 0, | ||
number: 0 | ||
} | ||
} | ||
], | ||
uri: '' | ||
} | ||
} | ||
}, | ||
'VIDEO': {}, | ||
'CLOSED-CAPTIONS': {}, | ||
'SUBTITLES': {} | ||
}, | ||
uri: '', | ||
duration: 60, | ||
playlists: [] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!--Generated with https://github.com/google/shaka-packager version v2.4.1-c731217-release--> | ||
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" minBufferTime="PT2S" type="static" mediaPresentationDuration="PT60S"> | ||
<Period id="0"> | ||
<AdaptationSet id="0" contentType="audio" lang="en" subsegmentAlignment="true"> | ||
<Representation id="0" bandwidth="130803" codecs="mp4a.40.2" mimeType="audio/mp4" audioSamplingRate="48000"> | ||
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/> | ||
<BaseURL>http://example.com/audio_en_2c_128k_aac.mp4</BaseURL> | ||
<SegmentBase indexRange="786-1009" timescale="48000"> | ||
<Initialization range="0-785"/> | ||
</SegmentBase> | ||
</Representation> | ||
</AdaptationSet> | ||
<AdaptationSet id="1" contentType="audio" lang="es" subsegmentAlignment="true"> | ||
<Representation id="1" bandwidth="130405" codecs="mp4a.40.2" mimeType="audio/mp4" audioSamplingRate="48000"> | ||
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/> | ||
<BaseURL>http://example.com/audio_es_2c_128k_aac.mp4</BaseURL> | ||
<SegmentBase indexRange="786-1009" timescale="48000"> | ||
<Initialization range="0-785"/> | ||
</SegmentBase> | ||
</Representation> | ||
</AdaptationSet> | ||
|
||
</Period> | ||
</MPD> |
Oops, something went wrong.