|
|
|
@@ -35,6 +35,15 @@ void ff_hls_write_playlist_version(AVIOContext *out, int version) { |
|
|
|
avio_printf(out, "#EXT-X-VERSION:%d\n", version); |
|
|
|
} |
|
|
|
|
|
|
|
void ff_hls_write_audio_rendition(AVIOContext *out, char *agroup, |
|
|
|
char *filename) { |
|
|
|
if (!out || !agroup || !filename) |
|
|
|
return; |
|
|
|
|
|
|
|
avio_printf(out, "#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=\"group_%s\"", agroup); |
|
|
|
avio_printf(out, ",NAME=\"audio_0\",DEFAULT=YES,URI=\"%s\"\n", filename); |
|
|
|
} |
|
|
|
|
|
|
|
void ff_hls_write_stream_info(AVStream *st, AVIOContext *out, |
|
|
|
int bandwidth, char *filename, char *agroup) { |
|
|
|
if (!out || !filename) |
|
|
|
|