Open Shrihari1428 opened 2 weeks ago
I'm afraid your question is asking about a relatively niche use case, and we don't have the capacity to parse and understand all the custom code you've provided.
Currently if there are more video trackgroups than the number of video renderers, all the extra trackgroups are assigned to the firstRenderer alone. ie, when I log
mappedTrackInfo.getTrackGroups(rendererIndex)
i getRenderer 1 Support Track groups 1,5 and 6 Renderer 2 Supports Track Group 2 Renderer 3 Supports Track Group 3 Renderer 4 Supports Track Group 4
In your case, I would expect all renderers to indicate support for all the track groups - so I'm not sure how or why you're limiting the support to a specific mapping - but I recommend you spend some time on understanding this part, because it doesn't seem right.
Hi Everyone,
I am creating an implementation of exoplayer where I have 4 video renderers (created 3 extra). I have modified my DASH manifest in such a way that each adaption set represents a camera angle and one adaptation set for audio. So now I assign each video adaptation set (video trackGroup) to a video renderer. So if there are 6 video adaptation sets, 4 renderers are initialised with 4 adaptation sets initially. Now I want to switch the adaption set associated with a renderer with an adaptation set thats not in use by specifying the trackGroup id and the renderer index . How do I do this?
Below is the implementation of my CustomTrackSelector
Below is my playerManager code.
Currently if there are more video trackgroups than the number of video renderers, all the extra trackgroups are assigned to the firstRenderer alone. ie, when I log
mappedTrackInfo.getTrackGroups(rendererIndex)
i getRenderer 1 Support Track groups 1,5 and 6 Renderer 2 Supports Track Group 2 Renderer 3 Supports Track Group 3 Renderer 4 Supports Track Group 4
With the current implementation I am able to switch the trackGroup between 1,5 and 6 for renderer one alone but I am not able to set trackGroup 5 or 6 to renderer 2, 3 and 4.
Is there a way such that all the renderers support all the track groups so that I can switch between them or is there any way I can switch the trackGroup of a renderer though it does not have the trackGroup assigned to it.
Also, setSelectionOverride is deprecated, but when I use addOverride and perform the switch, all my other renderers stop playing. Is there a way to prevent this from happening with addOverride.
Below is my current addOverride implementation