{"action":"created","issue":{"url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/330","repository_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android","labels_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/330/labels{/name}","comments_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/330/comments","events_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/330/events","html_url":"https://github.com/googlecast/CastCompanionLibrary-android/issues/330","id":170407058,"number":330,"title":"Is caption selection broken?","user":{"login":"mathiasi","id":2315801,"avatar_url":"https://avatars.githubusercontent.com/u/2315801?v=3","gravatar_id":"","url":"https://api.github.com/users/mathiasi","html_url":"https://github.com/mathiasi","followers_url":"https://api.github.com/users/mathiasi/followers","following_url":"https://api.github.com/users/mathiasi/following{/other_user}","gists_url":"https://api.github.com/users/mathiasi/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasi/subscriptions","organizations_url":"https://api.github.com/users/mathiasi/orgs","repos_url":"https://api.github.com/users/mathiasi/repos","events_url":"https://api.github.com/users/mathiasi/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-10T12:40:32Z","updated_at":"2016-08-10T21:37:25Z","closed_at":null,"body":"I feel like I have tried everything now so I need to reach out for some help.\r\nI have tried to get captions to work but with no luck so far. I can get it to display the CC-selection icon and it displays my registered caption but when I select it and press OK, nothing shows up and when I open up the selection dialog again, the selection is back on \"None\".\r\nThis is the console output from once I hit OK in the dialog:\r\n```\r\n08-10 14:19:27.558 3579-3579/com.example.mathias.cast_subtitles_test I/ViewRootImpl: ViewRoot's Touch Event : ACTION_DOWN\r\n08-10 14:19:27.602 3579-3579/com.example.mathias.cast_subtitles_test I/ViewRootImpl: ViewRoot's Touch Event : ACTION_UP\r\n08-10 14:19:27.632 3579-3719/com.example.mathias.cast_subtitles_test E/Surface: getSlotFromBufferLocked: unknown buffer: 0x964ed410\r\n08-10 14:19:27.646 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastManager: [v2.8.2] Setting track result was successful? true\r\n08-10 14:19:27.663 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastManager: [v2.8.2] RemoteMediaPlayer::onStatusUpdated() is reached\r\n08-10 14:19:27.663 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastManager: [v2.8.2] onRemoteMediaPlayerStatusUpdated() reached\r\n08-10 14:19:27.663 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastManager: [v2.8.2] onQueueUpdated() reached\r\n08-10 14:19:27.663 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastManager: [v2.8.2] Queue Items size: 1, Item: com.google.android.gms.cast.MediaQueueItem@d961ab5, Repeat Mode: 0, Shuffle: false\r\n08-10 14:19:27.664 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastManager: [v2.8.2] onRemoteMediaPlayerStatusUpdated(): Player status = paused\r\n08-10 14:19:27.668 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastManager: [v2.8.2] startNotificationService()\r\n08-10 14:19:27.670 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastManager: [v2.8.2] updateMiniControllersVisibility() reached with visibility: true\r\n08-10 14:19:27.671 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastControlle: [v2.8.2] updatePlayerStatus(), state: 3\r\n08-10 14:19:27.672 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastManager: [v2.8.2] RemoteMediaPlayer::onMetadataUpdated() is reached\r\n08-10 14:19:27.672 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastManager: [v2.8.2] onRemoteMediaPlayerMetadataUpdated() reached\r\n08-10 14:19:27.786 3579-3590/com.example.mathias.cast_subtitles_test I/art: Background partial concurrent mark sweep GC freed 19894(830KB) AllocSpace objects, 11(8MB) LOS objects, 40% free, 37MB/62MB, paused 414us total 112.825ms\r\n08-10 14:19:27.870 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastNotificat: [v2.8.2] onStartCommand\r\n08-10 14:19:27.870 3579-3579/com.example.mathias.cast_subtitles_test D/ccl_VideoCastNotificat: [v2.8.2] onStartCommand(): Action: ACTION_VISIBILITY false\r\n```\r\n\r\nThe \"Setting track result was successful? true\" seems to me that there is something going on but nothing shows up on the screen and the option reverts back.\r\nI'm using the default receiver application but I have also tried with a custom (just a clone of the default) so that I could see debug messages, but nothing shows up in the log.\r\nI know that lots of people run into issues with CORS, but I have checked that my captions file (a VTT file) complies with CORS. I have manually edited the player.html and added the VTT file as a track and it shows up just fine.\r\n\r\nI'm working on a blank app so most of the code is contained the Main activity which can be seen here: https://gist.github.com/mathiasi/620cf4c60c93201910abde46cb740fb5 but the full project can be found here:\r\n[Cast-Subtitles-Test.zip](https://github.com/googlecast/CastCompanionLibrary-android/files/411036/Cast-Subtitles-Test.zip)\r\n\r\nI hope someone has a suggestion to what could be wrong because right now I'm at a state of despair of how to proceed.\r\n\r\n-Thanks!\r\n"},"comment":{"url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/comments/239012646","html_url":"https://github.com/googlecast/CastCompanionLibrary-android/issues/330#issuecomment-239012646","issue_url":"https://api.github.com/repos/googlecast/CastCompanionLibrary-android/issues/330","id":239012646,"user":{"login":"naddaf","id":355366,"avatar_url":"https://avatars.githubusercontent.com/u/355366?v=3","gravatar_id":"","url":"https://api.github.com/users/naddaf","html_url":"https://github.com/naddaf","followers_url":"https://api.github.com/users/naddaf/followers","following_url":"https://api.github.com/users/naddaf/following{/other_user}","gists_url":"https://api.github.com/users/naddaf/gists{/gist_id}","starred_url":"https://api.github.com/users/naddaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naddaf/subscriptions","organizations_url":"https://api.github.com/users/naddaf/orgs","repos_url":"https://api.github.com/users/naddaf/repos","events_url":"https://api.github.com/users/naddaf/events{/privacy}","received_events_url":"https://api.github.com/users/naddaf/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T21:37:25Z","updated_at":"2016-08-10T21:37:25Z","body":"Did you try the CastVideos-android (v2) app?"}}
{"actor":{"display_login":"naddaf"}}