{"action":"created","issue":{"url":"https://api.github.com/repos/video-dev/hls.js/issues/1491","repository_url":"https://api.github.com/repos/video-dev/hls.js","labels_url":"https://api.github.com/repos/video-dev/hls.js/issues/1491/labels{/name}","comments_url":"https://api.github.com/repos/video-dev/hls.js/issues/1491/comments","events_url":"https://api.github.com/repos/video-dev/hls.js/issues/1491/events","html_url":"https://github.com/video-dev/hls.js/issues/1491","id":286984987,"number":1491,"title":"Feature request: fMP4/Sample-AES decryption support","user":{"login":"awakenedguy","id":11871342,"avatar_url":"https://avatars3.githubusercontent.com/u/11871342?v=4","gravatar_id":"","url":"https://api.github.com/users/awakenedguy","html_url":"https://github.com/awakenedguy","followers_url":"https://api.github.com/users/awakenedguy/followers","following_url":"https://api.github.com/users/awakenedguy/following{/other_user}","gists_url":"https://api.github.com/users/awakenedguy/gists{/gist_id}","starred_url":"https://api.github.com/users/awakenedguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awakenedguy/subscriptions","organizations_url":"https://api.github.com/users/awakenedguy/orgs","repos_url":"https://api.github.com/users/awakenedguy/repos","events_url":"https://api.github.com/users/awakenedguy/events{/privacy}","received_events_url":"https://api.github.com/users/awakenedguy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2018-01-09T06:40:13Z","updated_at":"2018-02-18T22:54:57Z","closed_at":"2018-01-12T15:21:59Z","author_association":"NONE","body":"- [x ] The stream has correct Access-Control-Allow-Origin headers (CORS)\r\n- [x ] There are no network errors such as 404s in the browser console when trying to play the stream\r\n- [x ] The issue observed is not already reported by searching on Github under https://github.com/video-dev/hls.js/issues\r\n- [x ] The issue occurs in the latest reference client on http://video-dev.github.io/hls.js/demo and not just on my page\r\n* Link to playable M3U8 file: \r\n[playable unencrypted stream link packaged with Bento4](https://video-8f60.kxcdn.com/demo_Bento4_unencrypted/master.m3u8), [demo](https://video-dev.github.io/hls.js/demo/?src=https%3A%2F%2Fvideo-8f60.kxcdn.com%2Fdemo_Bento4_unencrypted%2Fmaster.m3u8&enableStreaming=true&autoRecoverError=true&enableWorker=true&dumpfMP4=false&levelCapping=-1&defaultAudioCodec=undefined)\r\n[unplayable Sample-AES stream link packaged with Bento4](https://video-8f60.kxcdn.com/demo_Bento4_Sample-AES/master.m3u8), [demo](https://video-dev.github.io/hls.js/demo/?src=https%3A%2F%2Fvideo-8f60.kxcdn.com%2Fdemo_Bento4_Sample-AES%2Fmaster.m3u8&enableStreaming=true&autoRecoverError=true&enableWorker=true&dumpfMP4=false&levelCapping=-1&defaultAudioCodec=undefined)\r\n[playable unencrypted stream link packaged with Shaka packager](https://video-8f60.kxcdn.com/demo_Shaka_unencrypted/master.m3u8), [demo](https://video-dev.github.io/hls.js/demo/?src=https%3A%2F%2Fvideo-8f60.kxcdn.com%2Fdemo_Shaka_unencrypted%2Fmaster.m3u8&enableStreaming=true&autoRecoverError=true&enableWorker=true&dumpfMP4=false&levelCapping=-1&defaultAudioCodec=undefined)\r\n[unplayable Sample-AES stream link packaged with Shaka packager](https://video-8f60.kxcdn.com/demo_Shaka_Sample-AES/master.m3u8), [demo](https://video-dev.github.io/hls.js/demo/?src=https%3A%2F%2Fvideo-8f60.kxcdn.com%2Fdemo_Shaka_Sample-AES%2Fmaster.m3u8&enableStreaming=true&autoRecoverError=true&enableWorker=true&dumpfMP4=false&levelCapping=-1&defaultAudioCodec=undefined)\r\n* Hls.js version: 0.8.9\r\n* Browser name/version: 63.0.3239.132 (official 64bit build)\r\n* OS name/version: Windows 10 Pro N x64 [Version 10.0.15063]\r\n\r\n##### Steps to reproduce\r\nPlayback Sample-AES encrypted streams\r\n\r\n##### Expected behavior\r\nPlays fine, just as unencrypted version\r\n\r\n##### Actual behavior\r\nPlayback of the Bento4 packaged Sample-AES version fails with an error code:\r\n`The video could not be loaded, either because the server or network failed or because the format is not supported - CHUNK_DEMUXER_ERROR_APPEND_FAILED: Append: stream parsing failed. Data size=847 append_window_start=0 append_window_end=inf`\r\n\r\nPlayback of the Sample-AES version packaged with Shaka packager fails with an error code:\r\n`The video could not be loaded, either because the server or network failed or because the format is not supported - CHUNK_DEMUXER_ERROR_APPEND_FAILED: Append: stream parsing failed. Data size=952 append_window_start=0 append_window_end=inf`\r\n\r\nIt seems that Sample-AES encrypted streams produced by Shaka Packager play fine in other players, as confirmed [here](https://github.com/google/shaka-packager/issues/258#issuecomment-353994899).\r\n\r\nApparently hls.js [seems to successfully read](https://github.com/video-dev/hls.js/pull/997) Sample-AES encrypted content produced by Kaltura NGINX-based MP4 Repackager, though I did not try this packager, as apparently it is not available as a standalone packager.\r\n\r\nUntil this is fixed, [previously declared Sample-AES support](https://github.com/video-dev/hls.js/issues/173) on the main page should normally be declared partial.\r\n  "},"comment":{"url":"https://api.github.com/repos/video-dev/hls.js/issues/comments/366555737","html_url":"https://github.com/video-dev/hls.js/issues/1491#issuecomment-366555737","issue_url":"https://api.github.com/repos/video-dev/hls.js/issues/1491","id":366555737,"user":{"login":"sumitdipsite2005","id":2804004,"avatar_url":"https://avatars0.githubusercontent.com/u/2804004?v=4","gravatar_id":"","url":"https://api.github.com/users/sumitdipsite2005","html_url":"https://github.com/sumitdipsite2005","followers_url":"https://api.github.com/users/sumitdipsite2005/followers","following_url":"https://api.github.com/users/sumitdipsite2005/following{/other_user}","gists_url":"https://api.github.com/users/sumitdipsite2005/gists{/gist_id}","starred_url":"https://api.github.com/users/sumitdipsite2005/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumitdipsite2005/subscriptions","organizations_url":"https://api.github.com/users/sumitdipsite2005/orgs","repos_url":"https://api.github.com/users/sumitdipsite2005/repos","events_url":"https://api.github.com/users/sumitdipsite2005/events{/privacy}","received_events_url":"https://api.github.com/users/sumitdipsite2005/received_events","type":"User","site_admin":false},"created_at":"2018-02-18T22:54:57Z","updated_at":"2018-02-18T22:54:57Z","author_association":"NONE","body":"Thanks for the reply. Well i have subscription and can run the video on the website but unable to download it to my pc/mac. Any way to do so? Or is it a no go and i should stop wasting my effort?"}}
{"actor":{"display_login":"sumitdipsite2005"}}