{"action":"opened","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/279","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/279/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/279/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/279/events","html_url":"https://github.com/google/ExoPlayer/issues/279","id":56500509,"number":279,"title":"FrameworkSampleSource: How to get codec errors?","user":{"login":"TheNetStriker","id":2478144,"avatar_url":"https://avatars.githubusercontent.com/u/2478144?v=3","gravatar_id":"","url":"https://api.github.com/users/TheNetStriker","html_url":"https://github.com/TheNetStriker","followers_url":"https://api.github.com/users/TheNetStriker/followers","following_url":"https://api.github.com/users/TheNetStriker/following{/other_user}","gists_url":"https://api.github.com/users/TheNetStriker/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNetStriker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNetStriker/subscriptions","organizations_url":"https://api.github.com/users/TheNetStriker/orgs","repos_url":"https://api.github.com/users/TheNetStriker/repos","events_url":"https://api.github.com/users/TheNetStriker/events{/privacy}","received_events_url":"https://api.github.com/users/TheNetStriker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-04T09:18:07Z","updated_at":"2015-02-04T09:18:07Z","closed_at":null,"body":"I've integrated ExpPlayer into my app to play video using the FrameworkSampleSource. Some of my videos (e.g. M2TS videos) cannot be played by the FrameworkSampleSource, but I didn't get any errors on the listeners of ExoPlayer.\r\n\r\nWhen playing M2TS from a file I found out that an ExoPlaybackException is thrown in MediaCodecTrackRenderer in \"doPrepare\". I've changed this so the exeption is also reported via the EventListener.\r\n\r\nBut if I play the same video using an http streaming url the ExoPlaybackException exception is not raised. (The exception is raised later in the M2TSBuffer component) Also the position and the buffer position of the ExoPlayer are > 0. Here are the logs from logcat:\r\n\r\nW/M2TSExtractor﹕ Cannot get last PTS for Audio\r\nD/ExtendedUtils﹕ Try creating ExtendedExtractor\r\nE/QCExtractor﹕ ExtendedExtractor failed to instantiate extractor\r\nE/ExtendedExtractor﹕ Failed to instantiate extractor\r\nD/ExtendedUtils﹕ Couldn't create the extended extractor, return default one\r\nI/OMXClient﹕ Using client-side OMX mux.\r\nI/ACodec﹕ DRC Mode: Dynamic Buffer Mode\r\nI/NuCachedSource2﹕ new range: offset= 2736128\r\nI/NuCachedSource2﹕ ERROR_END_OF_STREAM\r\nE/M2TSBuffer﹕ failed(-1011) in readAt(33404928).\r\nE/M2TSBuffer﹕ mFinalStatus = -1011.\r\n\r\nIs it possible to trigger such errors using the FrameworkSampleSource? I would like to sent an Intent for an external app to play the video if such an error occurs."}}