changing m3u8 file dynamically during runtime (iOS)
Does anyone know if I can change a m3u8 file dynamically during runtime of the app?
The scenario is as follows:
lets say i have multiple .ts files ready to play in a sequence, for example 1.ts , 2.ts , 3.ts etc...
Now during run time, i want to change the order to 1.ts , 3.ts and only then 2.ts.
Is this possible?
Thanks,
ios http-live-streaming
add a comment |
Does anyone know if I can change a m3u8 file dynamically during runtime of the app?
The scenario is as follows:
lets say i have multiple .ts files ready to play in a sequence, for example 1.ts , 2.ts , 3.ts etc...
Now during run time, i want to change the order to 1.ts , 3.ts and only then 2.ts.
Is this possible?
Thanks,
ios http-live-streaming
add a comment |
Does anyone know if I can change a m3u8 file dynamically during runtime of the app?
The scenario is as follows:
lets say i have multiple .ts files ready to play in a sequence, for example 1.ts , 2.ts , 3.ts etc...
Now during run time, i want to change the order to 1.ts , 3.ts and only then 2.ts.
Is this possible?
Thanks,
ios http-live-streaming
Does anyone know if I can change a m3u8 file dynamically during runtime of the app?
The scenario is as follows:
lets say i have multiple .ts files ready to play in a sequence, for example 1.ts , 2.ts , 3.ts etc...
Now during run time, i want to change the order to 1.ts , 3.ts and only then 2.ts.
Is this possible?
Thanks,
ios http-live-streaming
ios http-live-streaming
asked May 15 '11 at 11:09
orrkoorrko
4815
4815
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The answer is in the HLS standard (August 2017):
The server MUST NOT change the Media Playlist file, except to:
o Append lines to it (Section 6.2.1).
o Remove Media Segment URIs from the Playlist in the order that they
appear, along with any tags that apply only to those segments
(Section 6.2.2).
o Increment the value of the EXT-X-MEDIA-SEQUENCE or EXT-X-
DISCONTINUITY-SEQUENCE tags (Section 6.2.2).
o Add an EXT-X-ENDLIST tag to the Playlist (Section 6.2.1).
Note the standard draft (circa 2012) from the original answer was slightly different:
The server MUST NOT change the Playlist file, except to:
Append lines to it (Section 6.2.1).
Remove media URIs from the Playlist in the order that they appear,
along with any tags that apply only to those media URIs
(Section 6.2.2).
Increment the value of the EXT-X-MEDIA-SEQUENCE tag
(Section 6.2.2).
Add or remove EXT-X-STREAM-INF tags or EXT-X-I-FRAME-STREAM-INF
tags (Section 6.2.4). Note that clients are not required to
reload variant Playlist files, so changing them may not have
immediate effect.
Add an EXT-X-ENDLIST tag to the Playlist (Section 6.2.1).
All in all, what you aim at is not supported by the protocol.
Anyway it's rather pointless as segments may correlate between themselves in order (has common key-frames).
1
+1 for correct answer full of references from the standard.
– Till
Jan 8 '12 at 10:03
1
@Daniel Bauke Here is an update to your (correct) answer. My intent is just to provide updated pointers. The result looks like a new answer, but it's not! Thank you for the original answer, by the way.
– Eric Platon
Nov 13 '18 at 5:11
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f6008011%2fchanging-m3u8-file-dynamically-during-runtime-ios%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The answer is in the HLS standard (August 2017):
The server MUST NOT change the Media Playlist file, except to:
o Append lines to it (Section 6.2.1).
o Remove Media Segment URIs from the Playlist in the order that they
appear, along with any tags that apply only to those segments
(Section 6.2.2).
o Increment the value of the EXT-X-MEDIA-SEQUENCE or EXT-X-
DISCONTINUITY-SEQUENCE tags (Section 6.2.2).
o Add an EXT-X-ENDLIST tag to the Playlist (Section 6.2.1).
Note the standard draft (circa 2012) from the original answer was slightly different:
The server MUST NOT change the Playlist file, except to:
Append lines to it (Section 6.2.1).
Remove media URIs from the Playlist in the order that they appear,
along with any tags that apply only to those media URIs
(Section 6.2.2).
Increment the value of the EXT-X-MEDIA-SEQUENCE tag
(Section 6.2.2).
Add or remove EXT-X-STREAM-INF tags or EXT-X-I-FRAME-STREAM-INF
tags (Section 6.2.4). Note that clients are not required to
reload variant Playlist files, so changing them may not have
immediate effect.
Add an EXT-X-ENDLIST tag to the Playlist (Section 6.2.1).
All in all, what you aim at is not supported by the protocol.
Anyway it's rather pointless as segments may correlate between themselves in order (has common key-frames).
1
+1 for correct answer full of references from the standard.
– Till
Jan 8 '12 at 10:03
1
@Daniel Bauke Here is an update to your (correct) answer. My intent is just to provide updated pointers. The result looks like a new answer, but it's not! Thank you for the original answer, by the way.
– Eric Platon
Nov 13 '18 at 5:11
add a comment |
The answer is in the HLS standard (August 2017):
The server MUST NOT change the Media Playlist file, except to:
o Append lines to it (Section 6.2.1).
o Remove Media Segment URIs from the Playlist in the order that they
appear, along with any tags that apply only to those segments
(Section 6.2.2).
o Increment the value of the EXT-X-MEDIA-SEQUENCE or EXT-X-
DISCONTINUITY-SEQUENCE tags (Section 6.2.2).
o Add an EXT-X-ENDLIST tag to the Playlist (Section 6.2.1).
Note the standard draft (circa 2012) from the original answer was slightly different:
The server MUST NOT change the Playlist file, except to:
Append lines to it (Section 6.2.1).
Remove media URIs from the Playlist in the order that they appear,
along with any tags that apply only to those media URIs
(Section 6.2.2).
Increment the value of the EXT-X-MEDIA-SEQUENCE tag
(Section 6.2.2).
Add or remove EXT-X-STREAM-INF tags or EXT-X-I-FRAME-STREAM-INF
tags (Section 6.2.4). Note that clients are not required to
reload variant Playlist files, so changing them may not have
immediate effect.
Add an EXT-X-ENDLIST tag to the Playlist (Section 6.2.1).
All in all, what you aim at is not supported by the protocol.
Anyway it's rather pointless as segments may correlate between themselves in order (has common key-frames).
1
+1 for correct answer full of references from the standard.
– Till
Jan 8 '12 at 10:03
1
@Daniel Bauke Here is an update to your (correct) answer. My intent is just to provide updated pointers. The result looks like a new answer, but it's not! Thank you for the original answer, by the way.
– Eric Platon
Nov 13 '18 at 5:11
add a comment |
The answer is in the HLS standard (August 2017):
The server MUST NOT change the Media Playlist file, except to:
o Append lines to it (Section 6.2.1).
o Remove Media Segment URIs from the Playlist in the order that they
appear, along with any tags that apply only to those segments
(Section 6.2.2).
o Increment the value of the EXT-X-MEDIA-SEQUENCE or EXT-X-
DISCONTINUITY-SEQUENCE tags (Section 6.2.2).
o Add an EXT-X-ENDLIST tag to the Playlist (Section 6.2.1).
Note the standard draft (circa 2012) from the original answer was slightly different:
The server MUST NOT change the Playlist file, except to:
Append lines to it (Section 6.2.1).
Remove media URIs from the Playlist in the order that they appear,
along with any tags that apply only to those media URIs
(Section 6.2.2).
Increment the value of the EXT-X-MEDIA-SEQUENCE tag
(Section 6.2.2).
Add or remove EXT-X-STREAM-INF tags or EXT-X-I-FRAME-STREAM-INF
tags (Section 6.2.4). Note that clients are not required to
reload variant Playlist files, so changing them may not have
immediate effect.
Add an EXT-X-ENDLIST tag to the Playlist (Section 6.2.1).
All in all, what you aim at is not supported by the protocol.
Anyway it's rather pointless as segments may correlate between themselves in order (has common key-frames).
The answer is in the HLS standard (August 2017):
The server MUST NOT change the Media Playlist file, except to:
o Append lines to it (Section 6.2.1).
o Remove Media Segment URIs from the Playlist in the order that they
appear, along with any tags that apply only to those segments
(Section 6.2.2).
o Increment the value of the EXT-X-MEDIA-SEQUENCE or EXT-X-
DISCONTINUITY-SEQUENCE tags (Section 6.2.2).
o Add an EXT-X-ENDLIST tag to the Playlist (Section 6.2.1).
Note the standard draft (circa 2012) from the original answer was slightly different:
The server MUST NOT change the Playlist file, except to:
Append lines to it (Section 6.2.1).
Remove media URIs from the Playlist in the order that they appear,
along with any tags that apply only to those media URIs
(Section 6.2.2).
Increment the value of the EXT-X-MEDIA-SEQUENCE tag
(Section 6.2.2).
Add or remove EXT-X-STREAM-INF tags or EXT-X-I-FRAME-STREAM-INF
tags (Section 6.2.4). Note that clients are not required to
reload variant Playlist files, so changing them may not have
immediate effect.
Add an EXT-X-ENDLIST tag to the Playlist (Section 6.2.1).
All in all, what you aim at is not supported by the protocol.
Anyway it's rather pointless as segments may correlate between themselves in order (has common key-frames).
edited Nov 13 '18 at 5:10
Eric Platon
6,18653041
6,18653041
answered Jan 8 '12 at 9:42
Daniel BaukeDaniel Bauke
9501022
9501022
1
+1 for correct answer full of references from the standard.
– Till
Jan 8 '12 at 10:03
1
@Daniel Bauke Here is an update to your (correct) answer. My intent is just to provide updated pointers. The result looks like a new answer, but it's not! Thank you for the original answer, by the way.
– Eric Platon
Nov 13 '18 at 5:11
add a comment |
1
+1 for correct answer full of references from the standard.
– Till
Jan 8 '12 at 10:03
1
@Daniel Bauke Here is an update to your (correct) answer. My intent is just to provide updated pointers. The result looks like a new answer, but it's not! Thank you for the original answer, by the way.
– Eric Platon
Nov 13 '18 at 5:11
1
1
+1 for correct answer full of references from the standard.
– Till
Jan 8 '12 at 10:03
+1 for correct answer full of references from the standard.
– Till
Jan 8 '12 at 10:03
1
1
@Daniel Bauke Here is an update to your (correct) answer. My intent is just to provide updated pointers. The result looks like a new answer, but it's not! Thank you for the original answer, by the way.
– Eric Platon
Nov 13 '18 at 5:11
@Daniel Bauke Here is an update to your (correct) answer. My intent is just to provide updated pointers. The result looks like a new answer, but it's not! Thank you for the original answer, by the way.
– Eric Platon
Nov 13 '18 at 5:11
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f6008011%2fchanging-m3u8-file-dynamically-during-runtime-ios%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown