{"action":"created","issue":{"url":"https://api.github.com/repos/NateWickstrom/aes-exo/issues/1","labels_url":"https://api.github.com/repos/NateWickstrom/aes-exo/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/NateWickstrom/aes-exo/issues/1/comments","events_url":"https://api.github.com/repos/NateWickstrom/aes-exo/issues/1/events","html_url":"https://github.com/NateWickstrom/aes-exo/issues/1","id":123292732,"number":1,"title":"Playing encrypted mp4 file","user":{"login":"AlirezaGhanbarinia","id":15226836,"avatar_url":"https://avatars.githubusercontent.com/u/15226836?v=3","gravatar_id":"","url":"https://api.github.com/users/AlirezaGhanbarinia","html_url":"https://github.com/AlirezaGhanbarinia","followers_url":"https://api.github.com/users/AlirezaGhanbarinia/followers","following_url":"https://api.github.com/users/AlirezaGhanbarinia/following{/other_user}","gists_url":"https://api.github.com/users/AlirezaGhanbarinia/gists{/gist_id}","starred_url":"https://api.github.com/users/AlirezaGhanbarinia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlirezaGhanbarinia/subscriptions","organizations_url":"https://api.github.com/users/AlirezaGhanbarinia/orgs","repos_url":"https://api.github.com/users/AlirezaGhanbarinia/repos","events_url":"https://api.github.com/users/AlirezaGhanbarinia/events{/privacy}","received_events_url":"https://api.github.com/users/AlirezaGhanbarinia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-21T14:51:18Z","updated_at":"2016-01-12T09:25:40Z","closed_at":null,"body":"Hi,\r\nFirst, thanks for your awesome tool.\r\n\r\nActually, I'm trying to play an encrypted local mp4 file with the codes provided below.\r\nUnfortunately, its not working and Exo can not play the video.\r\nWould you please help me on this matter?\r\nAppreciate any help.\r\n\r\n,,,\r\n\r\n         Allocator allocator = new DefaultAllocator(BUFFER_SEGMENT_SIZE);\r\n\r\n        // Build the video and audio renderers.\r\n        DefaultBandwidthMeter bandwidthMeter = new DefaultBandwidthMeter(player.getMainHandler(), null);\r\n        DataSource dataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);\r\n\r\n\r\n        Aes128DataSource aes128DataSource = new Aes128DataSource(dataSource, AES_KEY, AES_IV);\r\n\r\n\r\n        ExtractorSampleSource sampleSource = new ExtractorSampleSource(uri, aes128DataSource, allocator, BUFFER_SEGMENT_COUNT * BUFFER_SEGMENT_SIZE);\r\n        MediaCodecVideoTrackRenderer videoRenderer = new MediaCodecVideoTrackRenderer(context, sampleSource, MediaCodec.VIDEO_SCALING_MODE_SCALE_TO_FIT, 5000, player.getMainHandler(), player, 50);\r\n        MediaCodecAudioTrackRenderer audioRenderer = new MediaCodecAudioTrackRenderer(sampleSource, null, true, player.getMainHandler(), player, AudioCapabilities.getCapabilities(context));\r\n        TrackRenderer textRenderer = new TextTrackRenderer(sampleSource, player, player.getMainHandler().getLooper());\r\n\r\n        // Invoke the callback.\r\n        TrackRenderer[] renderers = new TrackRenderer[ClassExoPlayer.RENDERER_COUNT];\r\n        renderers[ClassExoPlayer.TYPE_VIDEO] = videoRenderer;\r\n        renderers[ClassExoPlayer.TYPE_AUDIO] = audioRenderer;\r\n        renderers[ClassExoPlayer.TYPE_TEXT] = textRenderer;\r\n        player.onRenderers(renderers, bandwidthMeter);\r\n\r\n,,,"},"comment":{"url":"https://api.github.com/repos/NateWickstrom/aes-exo/issues/comments/170849618","html_url":"https://github.com/NateWickstrom/aes-exo/issues/1#issuecomment-170849618","issue_url":"https://api.github.com/repos/NateWickstrom/aes-exo/issues/1","id":170849618,"user":{"login":"AlirezaGhanbarinia","id":15226836,"avatar_url":"https://avatars.githubusercontent.com/u/15226836?v=3","gravatar_id":"","url":"https://api.github.com/users/AlirezaGhanbarinia","html_url":"https://github.com/AlirezaGhanbarinia","followers_url":"https://api.github.com/users/AlirezaGhanbarinia/followers","following_url":"https://api.github.com/users/AlirezaGhanbarinia/following{/other_user}","gists_url":"https://api.github.com/users/AlirezaGhanbarinia/gists{/gist_id}","starred_url":"https://api.github.com/users/AlirezaGhanbarinia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlirezaGhanbarinia/subscriptions","organizations_url":"https://api.github.com/users/AlirezaGhanbarinia/orgs","repos_url":"https://api.github.com/users/AlirezaGhanbarinia/repos","events_url":"https://api.github.com/users/AlirezaGhanbarinia/events{/privacy}","received_events_url":"https://api.github.com/users/AlirezaGhanbarinia/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T09:25:40Z","updated_at":"2016-01-12T09:25:40Z","body":"Yes its not possible, when I try without IV, Aes128DataSource  crashes while decrypting."}}