{"action":"closed","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/4191","repository_url":"https://api.github.com/repos/google/ExoPlayer","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/4191/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/4191/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/4191/events","html_url":"https://github.com/google/ExoPlayer/issues/4191","id":318469233,"number":4191,"title":"Text Track not available in track info","user":{"login":"justinthomas-syncbak","id":12717254,"avatar_url":"https://avatars3.githubusercontent.com/u/12717254?v=4","gravatar_id":"","url":"https://api.github.com/users/justinthomas-syncbak","html_url":"https://github.com/justinthomas-syncbak","followers_url":"https://api.github.com/users/justinthomas-syncbak/followers","following_url":"https://api.github.com/users/justinthomas-syncbak/following{/other_user}","gists_url":"https://api.github.com/users/justinthomas-syncbak/gists{/gist_id}","starred_url":"https://api.github.com/users/justinthomas-syncbak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinthomas-syncbak/subscriptions","organizations_url":"https://api.github.com/users/justinthomas-syncbak/orgs","repos_url":"https://api.github.com/users/justinthomas-syncbak/repos","events_url":"https://api.github.com/users/justinthomas-syncbak/events{/privacy}","received_events_url":"https://api.github.com/users/justinthomas-syncbak/received_events","type":"User","site_admin":false},"labels":[{"id":214717009,"url":"https://api.github.com/repos/google/ExoPlayer/labels/need%20more%20info","name":"need more info","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"ojw28","id":7881572,"avatar_url":"https://avatars1.githubusercontent.com/u/7881572?v=4","gravatar_id":"","url":"https://api.github.com/users/ojw28","html_url":"https://github.com/ojw28","followers_url":"https://api.github.com/users/ojw28/followers","following_url":"https://api.github.com/users/ojw28/following{/other_user}","gists_url":"https://api.github.com/users/ojw28/gists{/gist_id}","starred_url":"https://api.github.com/users/ojw28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojw28/subscriptions","organizations_url":"https://api.github.com/users/ojw28/orgs","repos_url":"https://api.github.com/users/ojw28/repos","events_url":"https://api.github.com/users/ojw28/events{/privacy}","received_events_url":"https://api.github.com/users/ojw28/received_events","type":"User","site_admin":false},"assignees":[{"login":"ojw28","id":7881572,"avatar_url":"https://avatars1.githubusercontent.com/u/7881572?v=4","gravatar_id":"","url":"https://api.github.com/users/ojw28","html_url":"https://github.com/ojw28","followers_url":"https://api.github.com/users/ojw28/followers","following_url":"https://api.github.com/users/ojw28/following{/other_user}","gists_url":"https://api.github.com/users/ojw28/gists{/gist_id}","starred_url":"https://api.github.com/users/ojw28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojw28/subscriptions","organizations_url":"https://api.github.com/users/ojw28/orgs","repos_url":"https://api.github.com/users/ojw28/repos","events_url":"https://api.github.com/users/ojw28/events{/privacy}","received_events_url":"https://api.github.com/users/ojw28/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-04-27T16:17:04Z","updated_at":"2018-04-30T15:43:06Z","closed_at":"2018-04-30T15:43:06Z","author_association":"NONE","body":"I recently upgraded to 2.7.3, from 2.6.1, and noticed that setting a track override seems to have changed.  I was able to accomplish this on 2.6.1 using the following code to enable the text track, CEA-608 in TS:\r\n\r\n```kotlin\r\nval mapping = contentTrackSelector.currentMappedTrackInfo\r\n        if (mapping != null) {\r\n            val rendererIndex = (0 until mapping.length).firstOrNull { player.getRendererType(it) == C.TRACK_TYPE_TEXT }\r\n            rendererIndex ?: return\r\n            val trackGroups = mapping.getTrackGroups(rendererIndex)\r\n            if (trackGroups.length > 0) {\r\n                if (enable) {\r\n                    //We currently only support a single text so it will always be the first group and track available to the text renderer\r\n                    contentTrackSelector.setSelectionOverride(\r\n                        rendererIndex,\r\n                        trackGroups,\r\n                        MappingTrackSelector.SelectionOverride(FIXED_TRACK_FACTORY, 0, 0)\r\n                    )\r\n                } else {\r\n                    contentTrackSelector.clearSelectionOverride(rendererIndex, trackGroups)\r\n                }\r\n            }\r\n        }\r\n```\r\n\r\nWhen looking at the track info, I noticed that it only shows video and audio tracks available.  I decided to load it up in the  Exoplayer demo project and when looking at the exact same stream, it shows a cea-608 track is available.  I have no way of providing a stream as short lived tokens are generated for the master playlist and have not control over it.\r\n\r\nI'm genuinely confused as to what about this functionality has changed and how to update my code to use it correctly. \r\n\r\nPlayer initialization code:\r\n```kotlin\r\n    private val contentBandwidthMeter = DefaultBandwidthMeter()\r\n    private val contentVideoTrackSelectionFactory = AdaptiveTrackSelection.Factory(contentBandwidthMeter)\r\n    private val contentTrackSelector = DefaultTrackSelector(contentVideoTrackSelectionFactory)\r\n\r\n    val player = ExoPlayerFactory.newSimpleInstance(ctx, contentTrackSelector)\r\n```"}}
{"actor":{"display_login":"justinthomas-syncbak"}}