{"action":"created","issue":{"url":"https://api.github.com/repos/google/shaka-player/issues/1596","repository_url":"https://api.github.com/repos/google/shaka-player","labels_url":"https://api.github.com/repos/google/shaka-player/issues/1596/labels{/name}","comments_url":"https://api.github.com/repos/google/shaka-player/issues/1596/comments","events_url":"https://api.github.com/repos/google/shaka-player/issues/1596/events","html_url":"https://github.com/google/shaka-player/issues/1596","id":362984621,"node_id":"MDU6SXNzdWUzNjI5ODQ2MjE=","number":1596,"title":"External Subtitles file not loading","user":{"login":"cdgriffith","id":3275435,"node_id":"MDQ6VXNlcjMyNzU0MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/3275435?v=4","gravatar_id":"","url":"https://api.github.com/users/cdgriffith","html_url":"https://github.com/cdgriffith","followers_url":"https://api.github.com/users/cdgriffith/followers","following_url":"https://api.github.com/users/cdgriffith/following{/other_user}","gists_url":"https://api.github.com/users/cdgriffith/gists{/gist_id}","starred_url":"https://api.github.com/users/cdgriffith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdgriffith/subscriptions","organizations_url":"https://api.github.com/users/cdgriffith/orgs","repos_url":"https://api.github.com/users/cdgriffith/repos","events_url":"https://api.github.com/users/cdgriffith/events{/privacy}","received_events_url":"https://api.github.com/users/cdgriffith/received_events","type":"User","site_admin":false},"labels":[{"id":573938103,"node_id":"MDU6TGFiZWw1NzM5MzgxMDM=","url":"https://api.github.com/repos/google/shaka-player/labels/needs%20triage","name":"needs triage","color":"b60205","default":false},{"id":402042721,"node_id":"MDU6TGFiZWw0MDIwNDI3MjE=","url":"https://api.github.com/repos/google/shaka-player/labels/waiting%20on%20response","name":"waiting on response","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-23T22:48:44Z","updated_at":"2018-09-25T16:42:30Z","closed_at":null,"author_association":"NONE","body":"**Have you read the [FAQ](https://bit.ly/ShakaFAQ) and checked for duplicate open issues?**:\r\nYes\r\n**What version of Shaka Player are you using?**:\r\n2.4.4, 2.5.0-beta\r\n**Can you reproduce the issue with our latest release version?**:\r\nYes\r\n**Can you reproduce the issue with the latest code from `master`?**:\r\nHave not tried\r\n**Are you using the demo app or your own custom app?**:\r\nCustom\r\n**If custom app, can you reproduce the issue using our demo app?**:\r\nUnsure how\r\n**What browser and OS are you using?**:\r\nChrome 69.0.3497.100 \r\nWindows 10\r\n**What are the manifest and license server URIs?**:\r\nAny\r\n**What did you do?**\r\nAdded subtitle track via addTextTrack, but is not shown or selectable via the UI \r\n\r\n```\r\n    player.load(manifestUri).then(function() {\r\n        player.addTextTrack('/darkroom_timer.vtt', 'eng', 'subtitle', 'text/vtt', '',  'English')\r\n    }).catch(onError);\r\n```\r\n\r\n**What did you expect to happen?**\r\n\r\nWhen hitting the CC button, to have the option of a 'English' subtitle. This works if adding it in the <track> section of the HTML manually. \r\n\r\n**What actually happened?**\r\n\r\nHitting CC only showed the usual 'Shaka Player TextTrack' and selecting it did nothing. \r\n\r\n![shaka](https://user-images.githubusercontent.com/3275435/45933731-5d692800-bf58-11e8-9bfc-a3fa5b71cd8e.png)\r\n\r\n** Additional ** \r\n\r\nI am very new to using this, so it is probably user error, but have tried for a few days to no avail. Any help would be appreciated! \r\n\r\nWebVTT file\r\n\r\n```\r\nWEBVTT\r\n\r\n00:01.000 --> 00:03.000\r\nThis is a custom darkroom timer\r\n\r\n00:04.000 --> 00:07.000\r\nCreated with a raspberry pi\r\n\r\n```\r\n\r\nHTML File \r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <title>Title</title>\r\n    <script src=\"https://cdnjs.cloudflare.com/ajax/libs/shaka-player/2.5.0-beta/shaka-player.compiled.debug.js\" type=\"application/javascript\"></script>\r\n</head>\r\n<body>\r\n<video id=\"video\"\r\n       width=\"640\"\r\n       controls autoplay>\r\n    <!--<track label=\"English\" kind=\"subtitles\" srclang=\"eng\" src=\"/darkroom_timer.vtt\" type=\"text/vtt\" >-->\r\n\r\n</video>\r\n\r\n<script>\r\n  var manifestUri = '/output/stream.mpd';\r\n\r\n  function initApp() {\r\n    shaka.polyfill.installAll();\r\n    if (shaka.Player.isBrowserSupported()) {\r\n      initPlayer();\r\n    } else {\r\n      console.error('Browser not supported!');\r\n    }\r\n  }\r\n\r\n  function initPlayer() {\r\n    var video = document.getElementById('video');\r\n    var player = new shaka.Player(video);\r\n    player.configure({\r\n          drm: {\r\n            clearKeys: {\r\n              '11111111111111111111111111111111': '11111111111111111111111111111111',\r\n            }\r\n          },\r\n          preferredTextLanguage: 'eng',\r\n          preferredAudioLanguage: 'eng',\r\n          streaming: {\r\n            bufferingGoal: 120\r\n          }\r\n        }\r\n    );\r\n    window.player = player;\r\n    player.addEventListener('error', onErrorEvent);\r\n    player.load(manifestUri).then(function() {\r\n        player.addTextTrack('/darkroom_timer.vtt', 'eng', 'subtitle', 'text/vtt', '',  'English')\r\n        console.log('The video has now been loaded!');\r\n    }).catch(onError);\r\n  }\r\n\r\n  function onErrorEvent(event) {\r\n    onError(event.detail);\r\n  }\r\n\r\n  function onError(error) {\r\n    console.error('Error code', error.code, 'object', error);\r\n  }\r\n\r\n  document.addEventListener('DOMContentLoaded', initApp);\r\n\r\n</script>\r\n</body>\r\n</html>\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/google/shaka-player/issues/comments/424416659","html_url":"https://github.com/google/shaka-player/issues/1596#issuecomment-424416659","issue_url":"https://api.github.com/repos/google/shaka-player/issues/1596","id":424416659,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDQxNjY1OQ==","user":{"login":"cdgriffith","id":3275435,"node_id":"MDQ6VXNlcjMyNzU0MzU=","avatar_url":"https://avatars3.githubusercontent.com/u/3275435?v=4","gravatar_id":"","url":"https://api.github.com/users/cdgriffith","html_url":"https://github.com/cdgriffith","followers_url":"https://api.github.com/users/cdgriffith/followers","following_url":"https://api.github.com/users/cdgriffith/following{/other_user}","gists_url":"https://api.github.com/users/cdgriffith/gists{/gist_id}","starred_url":"https://api.github.com/users/cdgriffith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdgriffith/subscriptions","organizations_url":"https://api.github.com/users/cdgriffith/orgs","repos_url":"https://api.github.com/users/cdgriffith/repos","events_url":"https://api.github.com/users/cdgriffith/events{/privacy}","received_events_url":"https://api.github.com/users/cdgriffith/received_events","type":"User","site_admin":false},"created_at":"2018-09-25T16:42:30Z","updated_at":"2018-09-25T16:42:30Z","author_association":"NONE","body":"Sure, everything should be attached in a zip file. I just serve the directory with `python -m http.server` \r\n\r\n[subtitle_error.zip](https://github.com/google/shaka-player/files/2416131/subtitle_error.zip)\r\n"}}
{"actor":{"display_login":"cdgriffith"}}