{ "id": "107470", "key": "TIMOB-12230", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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": [ { "id": "15547", "description": "2013 Sprint 14", "name": "2013 Sprint 14", "archived": true, "released": true, "releaseDate": "2013-07-15" }, { "id": "15548", "description": "2013 Sprint 14 API", "name": "2013 Sprint 14 API", "archived": true, "released": true, "releaseDate": "2013-07-15" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-12T17:03:02.000+0000", "created": "2013-01-07T11:56:02.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "documentation", "notable", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T07:53:14.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": null, "attachment": [ { "id": "41080", "filename": "efencefun.mp4", "author": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-26T22:55:23.000+0000", "size": 4698306, "mimeType": "video/mp4" } ], "flagged": false, "summary": "BlackBerry: Implement important Titanium.Media.VideoPlayer functionality", "creator": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "261645", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/123\r\nMerged.\r\nQuick note, this seems to only be working on BB device, tested on Mac.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-12T17:03:02.000+0000", "updated": "2013-07-12T17:03:02.000+0000" }, { "id": "261647", "author": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We need to document that the video player only works on device. Although some codecs may work it appears common ones, like mp3, mp4 do not work and there does not appear to be BB docs that list the codecs that work on simulator.\n\nhttp://supportforums.blackberry.com/t5/Cascades-Development/MediaPlayer-playing-an-MP3/m-p/1931967/highlight/true#M4251", "updateAuthor": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-12T17:33:13.000+0000", "updated": "2013-07-12T17:33:13.000+0000" }, { "id": "263526", "author": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{code}\r\n\r\nvar vidWin = Titanium.UI.createWindow({\r\n title : 'Video View Demo',\r\n backgroundColor : 'red',\r\n layout: 'vertical'\r\n});\r\n\r\nvar startStopButton = Titanium.UI.createButton({\r\n title:'Start/Stop Streaming',\r\n top:20,\r\n width:300\r\n});\r\n\r\nvar pauseResumeButton = Titanium.UI.createButton({\r\n title:'Pause/Resume Streaming',\r\n top:20,\r\n width:300,\r\n enabled:false\r\n});\r\n\r\nvar videoPlayer = Titanium.Media.createVideoPlayer({\r\n top : 20,\r\n height : 300,\r\n width : 300\r\n});\r\n\r\nvidWin.add(startStopButton);\r\nvidWin.add(pauseResumeButton);\r\n\r\nstartStopButton.addEventListener('click',function() {\r\n // When paused, playing returns false.\r\n // If both are false, playback is stopped.\r\n if (videoPlayer.playing || videoPlayer.paused)\r\n {\r\n videoPlayer.stop();\r\n pauseResumeButton.enabled = false;\r\n videoPlayer.release();\r\n }\r\n else\r\n {\r\n videoPlayer.start();\r\n pauseResumeButton.enabled = true;\r\n }\r\n});\r\n\r\npauseResumeButton.addEventListener('click', function() {\r\n if (videoPlayer.paused) {\r\n videoPlayer.start();\r\n }\r\n else {\r\n videoPlayer.pause();\r\n }\r\n});\r\n\r\nvideoPlayer.addEventListener('progress',function(e) {\r\n Ti.API.info('Time Played: ' + Math.round(e.progress) + ' milliseconds');\r\n});\r\n\r\nvideoPlayer.addEventListener('change',function(e)\r\n{\r\n Ti.API.info('State: ' + e.description + ' (' + e.state + ')');\r\n \r\n // currently blackberry does not support scaling but by hooking this\r\n // change event and getting the actual video dimensions the developer can scale \r\n // or do and boxing that may be necessary\r\n videoPlayer.width = e.videoWidth/2;\r\n videoPlayer.height = e.videoHeight/2;\r\n});\r\n\r\nvideoPlayer.addEventListener('completed',function(e)\r\n{\r\n Ti.API.info('media completed');\r\n});\r\n\r\nvidWin.addEventListener('close',function() {\r\n\r\n videoPlayer.stop();\r\n videoPlayer.release();\r\n});\r\n\r\n\r\nvideoPlayer.url = 'video/efencefun.mp4';\r\nvidWin.add(videoPlayer);\r\nvidWin.open();\r\n\r\n{code}\r\n", "updateAuthor": { "name": "rmcmahon", "key": "rmcmahon", "displayName": "Russell McMahon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-26T23:03:24.000+0000", "updated": "2013-07-26T23:04:22.000+0000" }, { "id": "410240", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T07:53:14.000+0000", "updated": "2017-03-09T07:53:14.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }