{ "id": "91326", "key": "TIMOB-9114", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-07-27T21:08:29.000+0000", "created": "2012-05-04T04:22:46.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-27T21:08:29.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": "The sample video (http://assets.appcelerator.com.s3.amazonaws.com/video/media.m4v) can be played if it's online but can't be played if it's in resources folder. Playback starts with audio only and stops when the controls disappear. MediaControlStyle does not matter.\r\n\r\nI also tried some videos encoded with various default profiles available with handbrake. They can't be played.\r\nIf I create a java application and play them from sdcard there is no problem with playback.\r\n\r\nRelated Code:\r\n{code:title=timob.js|borderStyle=solid}\r\nvar v = Ti.Media.createVideoPlayer({\r\n top : 2,\r\n autoplay : false,\r\n});\r\nb2 = Ti.UI.createButton({\r\n\ttitle: 'start local',\r\n\tbottom: 50,\r\n\twidth: 200,\r\n\theight: 40\r\n});\r\n\r\nb2.addEventListener('click', function() {\r\n\tfile = 'media.mp4';\r\n\tv.url = file;\r\n\tv.play();\r\n});\r\n{code}\r\n\r\nRelated Java Code: \r\n{code:title=sample.java|borderStyle=solid}\r\npublic void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.main);\r\n mVideoView = (VideoView) findViewById(R.id.videoView1);\r\n private String path = Environment.getExternalStorageDirectory().getPath() + \"/VIDEO/f1-1.mp4\";\r\n mVideoView.setVideoPath(path);\r\n mVideoView.setMediaController(new MediaController(this));\r\n mVideoView.requestFocus();\r\n mVideoView.start();\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Mobile video doesn't play", "creator": { "name": "fsniper", "key": "fsniper", "displayName": "Onur YALAZI", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fsniper", "key": "fsniper", "displayName": "Onur YALAZI", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Eken T01 7\" android 4.0.3 and 9.7\" T05A android 4.0.3 tablet", "comment": { "comments": [ { "id": "193701", "author": { "name": "fsniper", "key": "fsniper", "displayName": "Onur YALAZI", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm using Titanium mobile sdk 2.0.1-GA2", "updateAuthor": { "name": "fsniper", "key": "fsniper", "displayName": "Onur YALAZI", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-04T04:24:49.000+0000", "updated": "2012-05-04T04:24:49.000+0000" }, { "id": "193702", "author": { "name": "fsniper", "key": "fsniper", "displayName": "Onur YALAZI", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The same code plays well with Galaxy SII android 2.3.6", "updateAuthor": { "name": "fsniper", "key": "fsniper", "displayName": "Onur YALAZI", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-04T04:25:58.000+0000", "updated": "2012-05-04T04:25:58.000+0000" }, { "id": "193877", "author": { "name": "fsniper", "key": "fsniper", "displayName": "Onur YALAZI", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Seems like Timob has a problem on android 4.0.3 and video files stored in Resources.", "updateAuthor": { "name": "fsniper", "key": "fsniper", "displayName": "Onur YALAZI", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-05T07:19:13.000+0000", "updated": "2012-05-05T07:19:13.000+0000" }, { "id": "194580", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Moved to the appropriate section.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-05-11T15:28:31.000+0000", "updated": "2012-05-11T15:28:31.000+0000" }, { "id": "424988", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-27T21:08:29.000+0000", "updated": "2017-07-27T21:08:29.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }