{ "id": "84143", "key": "TIMOB-6812", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-12-21T10:13:36.000+0000", "created": "2011-12-21T07:08:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:40:15.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": "h3.Problem\r\nVideoPlayer does not play the video.\r\n\r\nh3.REGRESSION - works fine with SDK 1.7.5\r\n\r\nh3.Reproducible Steps\r\n1. Run the code from above\r\n\r\nh3.Sample Code\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\nvar android = (Titanium.Platform.name == 'android');\r\nvar options = {\r\n\tcontentURL:'movie.mp4',\r\n\tbackgroundColor:'#111',\r\n\tscalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL,\r\n\tmediaControlStyle: Titanium.Media.VIDEO_CONTROL_DEFAULT\r\n};\r\n\r\nvar activeMovie = Titanium.Media.createVideoPlayer(options);\r\n\r\nactiveMovie.addEventListener('complete',function()\r\n{\r\n\tvar dlg = Titanium.UI.createAlertDialog({title:'Movie', message:'Completed!'});\r\n\tdlg.show();\r\n});\r\n\r\n\r\n\r\nwin.addEventListener('close', function() {\r\n\tactiveMovie.stop();\r\n});\r\n\r\nwin.open();\r\nactiveMovie.play();\r\n{code}\r\nThe Video file has been attached.\r\n\r\nh3.Logs from Samsung Device\r\n{code}\r\n12-21 09:07:40.700: V/AudioFlinger(94): Track constructor name 4100, calling thread 175\r\n12-21 09:07:40.710: V/AudioFlinger(94): start(4100), calling thread 175\r\n12-21 09:07:40.710: V/AudioFlinger(94): ? => ACTIVE (4100) on thread 0x29980\r\n12-21 09:07:40.710: V/AudioPolicyManager(94): startOutput() output 1, stream 1\r\n12-21 09:07:40.710: E/AudioPolicyManagerBase(94): unknown stream type\r\n12-21 09:07:40.710: E/AudioPolicyManagerBase(94): unknown stream type\r\n12-21 09:07:40.710: E/AudioPolicyManagerBase(94): unknown stream type\r\n12-21 09:07:40.710: V/AudioPolicyManager(94): getDeviceForStrategy() from cache strategy 0, device 2\r\n12-21 09:07:40.710: V/AudioPolicyManager(94): getNewDevice() selected device 2\r\n12-21 09:07:40.710: V/AudioPolicyManager(94): setOutputDevice() output 1 device 2 force 0 delayMs 0\r\n12-21 09:07:40.710: V/AudioPolicyManager(94): setOutputDevice() setting same device 2 or null device for output 1\r\n12-21 09:07:40.710: V/AudioFlinger(94): mWaitWorkCV.broadcast\r\n12-21 09:07:40.710: V/AudioFlinger(94): MixerThread 0xbb38 TID 151 waking up\r\n12-21 09:07:40.710: V/AudioPolicyManager(94): releaseOutput() 1\r\n12-21 09:07:40.710: V/AudioFlinger(94): remove track (4099) and delete from mixer\r\n12-21 09:07:40.710: V/AudioFlinger(94): PlaybackThread::Track destructor\r\n12-21 09:07:40.710: I/ActivityManager(175): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.appcelerator.video/.VideoActivity }\r\n12-21 09:07:40.760: I/Launcher(259): onPause()\r\n12-21 09:07:40.760: V/AudioHardwareMSM72XX(94): open driver\r\n12-21 09:07:40.760: V/AudioHardwareMSM72XX(94): get config\r\n12-21 09:07:40.760: V/AudioHardwareMSM72XX(94): set config\r\n12-21 09:07:40.760: V/AudioHardwareMSM72XX(94): buffer_size: 4800\r\n12-21 09:07:40.760: V/AudioHardwareMSM72XX(94): buffer_count: 2\r\n12-21 09:07:40.760: V/AudioHardwareMSM72XX(94): channel_count: 2\r\n12-21 09:07:40.760: V/AudioHardwareMSM72XX(94): sample_rate: 44100\r\n12-21 09:07:40.830: W/ActivityManager(175): Trying to launch com.appcelerator.video/.VideoActivity\r\n12-21 09:07:40.840: W/TiApplication(23158): (main) [6835,8473] activity stack is emtpy, unable to get current activity\r\n12-21 09:07:40.840: I/TiRootActivity(23158): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n12-21 09:07:40.900: I/Launcher(259): onWindowFocusChanged(false)\r\n12-21 09:07:40.900: D/Launcher(259): setWallpaperDimension() called\r\n12-21 09:07:40.900: D/Launcher(259): USE_NON_SCROLLABLE_IMAGE_WALLPAPER is true\r\n12-21 09:07:40.900: D/Launcher(259): It's image wallpaper. suggestDesiredDimensions(-1,-1)\r\n12-21 09:07:40.930: W/AudioFlinger(94): write blocked for 167 msecs, 224 delayed writes, thread 0xbb38\r\n12-21 09:07:40.940: W/TiApplication(23158): (main) [100,100] activity stack is emtpy, unable to get current activity\r\n12-21 09:07:40.940: W/TiApplication(23158): (main) [1,101] activity stack is emtpy, unable to get current activity\r\n12-21 09:07:40.940: W/TiApplication(23158): (main) [0,101] activity stack is emtpy, unable to get current activity\r\n12-21 09:07:41.100: W/TiApplication(23158): (KrollRuntimeThread) [159,260] Registering module with name already in use.\r\n12-21 09:07:41.100: E/TiApplication(23158): (KrollRuntimeThread) [1,261] APP PROXY: ti.modules.titanium.app.AppModule@49dd2858\r\n12-21 09:07:41.150: W/TypeConverter(23158): jsValueToJavaObject returning null\r\n12-21 09:07:41.201: V/AudioFlinger(94): getNextBuffer() no more data for track 4100 on thread 0xbb38\r\n12-21 09:07:41.201: V/AudioFlinger(94): stop(4100), calling thread 175\r\n12-21 09:07:41.201: V/AudioFlinger(94): (> STOPPED) => STOPPED (4100) on thread 0xbb38\r\n12-21 09:07:41.201: V/AudioPolicyManager(94): stopOutput() output 1, stream 1\r\n12-21 09:07:41.201: E/AudioPolicyManagerBase(94): unknown stream type\r\n12-21 09:07:41.201: E/AudioPolicyManagerBase(94): unknown stream type\r\n12-21 09:07:41.201: E/AudioPolicyManagerBase(94): unknown stream type\r\n12-21 09:07:41.201: E/AudioPolicyManagerBase(94): unknown stream type\r\n12-21 09:07:41.201: V/AudioPolicyManager(94): getNewDevice() selected device 0\r\n12-21 09:07:41.201: V/AudioPolicyManager(94): setOutputDevice() output 1 device 0 force 0 delayMs 150\r\n12-21 09:07:41.201: V/AudioPolicyManager(94): setOutputDevice() setting same device 0 or null device for output 1\r\n12-21 09:07:41.220: I/TiRootActivity(23158): (main) [0,0] checkpoint, on root activity resume. activity = com.appcelerator.video.VideoActivity@49def740\r\n12-21 09:07:41.220: W/VideoPlayerProxy(23158): (main) [4,4] Player action ignored; player has not been created.\r\n12-21 09:07:41.220: V/AudioFlinger(94): TrackBase::reset\r\n12-21 09:07:41.270: I/ActivityManager(175): Displayed activity com.appcelerator.video/.VideoActivity: 442 ms (total 442 ms)\r\n12-21 09:07:41.280: I/ActivityThread(23158): queueIdle\r\n12-21 09:07:41.280: V/ActivityThread(23158): Reporting idle of ActivityRecord{49e0b140 token=android.os.BinderProxy@49df3fe0 {com.appcelerator.video/com.appcelerator.video.VideoActivity}} finished=false\r\n12-21 09:07:41.280: W/ActivityNative(23158): send ACTIVITY_IDLE_TRANSACTION\r\n12-21 09:07:41.280: W/ActivityNative(175): RCV ACTIVITY_IDLE_TRANSACTION\r\n12-21 09:07:44.210: V/AudioFlinger(94): Audio hardware entering standby, mixer 0xbb38, mSuspended 0\r\n\r\n{code}", "attachment": [ { "id": "24799", "filename": "movie.mp4", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-21T07:08:36.000+0000", "size": 2549211, "mimeType": "video/mp4" } ], "flagged": false, "summary": "Android: VideoPlayer does not play the video", "creator": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Simulator with Android 2.2, 2.3.3\r\nAndroid Devices: Samsung Galaxy Fit with Android 2.2.1\r\nMobile SDK: 1.8.0.RC3 (V8 & Rhino) , 1.9.0.v20111220191633 (V8 & Rhino)", "comment": { "comments": [ { "id": "176840", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "You need to either add the {{activeMovie}} to the window (or any other view on the window) or set {{fullscreen:true}} to display it fullscreen instead of in a view.\r\n\r\nThe Release Candidate release notes explain this under the \"Android Changes\" section: http://developer.appcelerator.com/apidoc/mobile/1.8.0.1.RC2/changelog.html", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-12-21T10:13:36.000+0000", "updated": "2011-12-21T10:13:36.000+0000" }, { "id": "411095", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:40:15.000+0000", "updated": "2017-03-09T23:40:15.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }