{"action":"created","issue":{"url":"https://api.github.com/repos/google/shaka-player/issues/693","repository_url":"https://api.github.com/repos/google/shaka-player","labels_url":"https://api.github.com/repos/google/shaka-player/issues/693/labels{/name}","comments_url":"https://api.github.com/repos/google/shaka-player/issues/693/comments","events_url":"https://api.github.com/repos/google/shaka-player/issues/693/events","html_url":"https://github.com/google/shaka-player/issues/693","id":206992785,"number":693,"title":"change audio track force clear of video buffer","user":{"login":"rounce","id":438341,"avatar_url":"https://avatars.githubusercontent.com/u/438341?v=3","gravatar_id":"","url":"https://api.github.com/users/rounce","html_url":"https://github.com/rounce","followers_url":"https://api.github.com/users/rounce/followers","following_url":"https://api.github.com/users/rounce/following{/other_user}","gists_url":"https://api.github.com/users/rounce/gists{/gist_id}","starred_url":"https://api.github.com/users/rounce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rounce/subscriptions","organizations_url":"https://api.github.com/users/rounce/orgs","repos_url":"https://api.github.com/users/rounce/repos","events_url":"https://api.github.com/users/rounce/events{/privacy}","received_events_url":"https://api.github.com/users/rounce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-11T16:57:56Z","updated_at":"2017-02-13T17:21:38Z","closed_at":null,"body":"When I change audio track via selectVariantTrack(track, true) shaka player clear audio AND video buffer\r\n\r\naudio:\r\n    at shaka.media.StreamingEngine.clearBuffer_ (shaka-player/lib/media/streaming_engine.js:1762:5)\r\n    at shaka.media.StreamingEngine.switch (shaka-player/lib/media/streaming_engine.js:530:12)\r\n    at shaka.Player.deferredSwitch_ (js/shaka-player/lib/player.js:1714:35)\r\n    at shaka.Player.selectVariantTrack (js/shaka-player/lib/player.js:1125:8)\r\n\r\nthen video:\r\n    at shaka.media.StreamingEngine.clearBuffer_ (streaming_engine.js:1762)\r\n    at shaka.media.StreamingEngine.seeked (streaming_engine.js:604)\r\n    at shaka.Player.onSeek_ (player.js:1891)\r\n    at shaka.media.Playhead.onSeeking_ (playhead.js:514)"},"comment":{"url":"https://api.github.com/repos/google/shaka-player/issues/comments/279459576","html_url":"https://github.com/google/shaka-player/issues/693#issuecomment-279459576","issue_url":"https://api.github.com/repos/google/shaka-player/issues/693","id":279459576,"user":{"login":"TheModMaker","id":2141118,"avatar_url":"https://avatars.githubusercontent.com/u/2141118?v=3","gravatar_id":"","url":"https://api.github.com/users/TheModMaker","html_url":"https://github.com/TheModMaker","followers_url":"https://api.github.com/users/TheModMaker/followers","following_url":"https://api.github.com/users/TheModMaker/following{/other_user}","gists_url":"https://api.github.com/users/TheModMaker/gists{/gist_id}","starred_url":"https://api.github.com/users/TheModMaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheModMaker/subscriptions","organizations_url":"https://api.github.com/users/TheModMaker/orgs","repos_url":"https://api.github.com/users/TheModMaker/repos","events_url":"https://api.github.com/users/TheModMaker/events{/privacy}","received_events_url":"https://api.github.com/users/TheModMaker/received_events","type":"User","site_admin":false},"created_at":"2017-02-13T17:21:38Z","updated_at":"2017-02-13T17:21:38Z","body":"A variant track represents a pair of both audio and video.  So when you switch to a different variant, you are changing both audio and video streams, so we clear both buffers.  In v2.1 (latest `master`), you can no longer select individual audio and video tracks, you can only select an audio/video pair."}}
{"actor":{"display_login":"TheModMaker"}}