Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make HLS first audio track AUTOSELECT=NO #1531

Open
stereoshoots opened this issue Jun 25, 2024 · 1 comment
Open

Make HLS first audio track AUTOSELECT=NO #1531

stereoshoots opened this issue Jun 25, 2024 · 1 comment

Comments

@stereoshoots
Copy link

Hi.

iOS and tvOS native players incorrectly handle the situation where there are two tracks in the same language (for example: regular and 5.1 sound). I'm looking for a way to remove the default track from the manifest to solve this problem.

I've found this in m3u8_builder.c:

is_default = tracks[media_type]->media_info.tags.is_default;
if (is_default < 0)
{
    is_default = adaptation_set == first_adaptation_set;
}

if (is_default)
{
    p = vod_copy(p, M3U8_EXT_MEDIA_DEFAULT, sizeof(M3U8_EXT_MEDIA_DEFAULT) - 1);
}
else
{
    p = vod_copy(p, M3U8_EXT_MEDIA_NON_DEFAULT, sizeof(M3U8_EXT_MEDIA_NON_DEFAULT) - 1);
}

Where does media_info.tags.is_default comes from and how do i set it?

@erankor
Copy link
Contributor

erankor commented Jun 28, 2024

it comes from the default field on the sequence object in the mapping JSON - https://github.com/kaltura/nginx-vod-module/?tab=readme-ov-file#sequence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants