{ "id": "65554", "key": "TIMOB-4136", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-02-13T11:07:49.000+0000", "created": "2011-05-18T14:53:38.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "15155", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "84163", "key": "TIMOB-6823", "fields": { "summary": "NBC, Video - Passing in an HLS manifest URL causes the video player to fail and displays a 'Video View' alert dialog.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T19:20:50.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h1. Problem\r\nThe \"error\" event of a Ti.Media.VideoPlayer doesn't fire on Android.\r\n\r\nh2. Expected Behavior\r\n\"error\" should be called, and the alert dialog should not appear by its own volition.\r\n\r\nh2. Sample Code\r\nThe following code attempts to play a video that does not exist; this results in an alert dialog popping up saying \"Video View // Unknown error\". The \"error\" event is never fired on the VideoPlayer we created.\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({ backgroundColor: '#fff' });\r\nwin.open();\r\n\r\nvar video = Ti.Media.createVideoPlayer({\r\n url: 'file://sdcard/iDoNotExist.mp4'\r\n});\r\nvideo.addEventListener('error', function(evt) {\r\n Ti.API.error('**** ERROR! **** ' + JSON.stringify(evt));\r\n});\r\nvideo.play();\r\n{code}\r\n\r\nh2. Trace Log\r\n{code}\r\n\r\nD/KrollContext(12424): (kroll$1: app://app.js) [46,154] Running evaluated script: file:///android_asset/Resources/app.js\r\nD/dalvikvm(12424): GC_FOR_MALLOC freed 5219 objects / 336648 bytes in 28ms\r\nD/dalvikvm( 2532): GC_EXTERNAL_ALLOC freed 8589 objects / 453176 bytes in 76ms\r\nI/ActivityManager( 2449): Starting activity: Intent { cmp=com.dawson.playgroundmobile/ti.modules.titanium.media.TiVideoActivity (has extras) }\r\nI/TiRootActivity(12424): (main) [0,0] checkpoint, on root activity resume. context = org.appcelerator.titanium.TiContext@4833fff8\r\nW/TiAnalyticsSvc(12424): (Thread-10) [44,44] Analytics Service Started\r\nE/TiVideoActivity(12424): (main) [42,86] exiting onCreate\r\nI/@@@@@@@@@@(12424): (main) [1,87] setting size: 480x800\r\nI/@@@@@@@@@@(12424): (main) [20,107] setting size: 480x800\r\nI/copybit ( 2449): [createPP] fimc version : 50 9c\r\nV/VideoView(12424): reset duration to -1 in openVideo\r\nE/OsclDirectFileIO( 2351): [LargeFileSupport] OsclDirectFileIO::OpenFileOrSharedFd Error = -1\r\nE/MediaPlayer(12424): message received msg=200, ext1=1, ext2=26\r\nW/MediaPlayer(12424): info/warning (1, 26)\r\nE/MediaPlayer(12424): callback application\r\nE/MediaPlayer(12424): back from callback\r\nE/PlayerDriver( 2351): Command PLAYER_SET_DATA_SOURCE completed with an error or info -4\r\nE/MediaPlayer(12424): message received msg=100, ext1=-4, ext2=-4\r\nE/MediaPlayer(12424): error (-4, -4)\r\nE/MediaPlayer(12424): callback application\r\nE/MediaPlayer(12424): back from callback\r\nW/PlayerDriver( 2351): PVMFInfoErrorHandlingComplete\r\nI/ActivityManager( 2449): Displayed activity com.dawson.playgroundmobile/ti.modules.titanium.media.TiVideoActivity: 245 ms (total 1087 ms)\r\nI/MediaPlayer(12424): Info (1,26)\r\nE/MediaPlayer(12424): Error (-4,-4)\r\nD/VideoView(12424): Error: -4,-4\r\nI/TiAnalyticsSvc(12424): (Thread-10) [227,334] Sending 1 analytics events.\r\n{code}\r\n\r\nh2. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-197698 http://appc.me/c/APP-584886", "attachment": [], "flagged": false, "summary": "Android: VideoPlayer Doesn't Fire \"error\" Event, Shows Alert Dialog Instead", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": "BROKEN on Android Device (Samsung Epic 4G) 2.2", "comment": { "comments": [ { "id": "176327", "author": { "name": "markusb79", "key": "markusb79", "displayName": "Markus Braasch", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Having the same issue on Android 2.3 (Google Nexus One). Would be great if this could be fixed soon.\r\n\r\nThanks for all you do,\r\nMarkus", "updateAuthor": { "name": "markusb79", "key": "markusb79", "displayName": "Markus Braasch", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-16T07:14:10.000+0000", "updated": "2011-12-16T07:14:10.000+0000" }, { "id": "182928", "author": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is fixed in 1.8.1 as a result of another ticket.", "updateAuthor": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-13T11:06:45.000+0000", "updated": "2012-02-13T11:06:45.000+0000" }, { "id": "411324", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T19:20:50.000+0000", "updated": "2017-03-10T19:20:50.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }