{ "id": "99063", "key": "TIMOB-10414", "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": null, "resolutiondate": null, "created": "2012-08-13T00:47:39.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-ios070112" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:20.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "App crashes when the videoPlayer is restarted.\r\nThis is not a regression.It occurs since 2.1.0.GA\r\n\r\nSteps to Reproduce:\r\n\r\n1. Install the app on device and launch it.\r\n2. Click on Start Video label.\r\n3. Then click on done button in the videoplayer.\r\n4. again click on Start video label. \r\n5. Repeat Step 3 and 4 until the simulator exits.(approximately 3 to 4 times)\r\n\r\nActual Result:\r\nafter step 4: The video does not show up and generates the logs attached.\r\nAfter Step 5: The app crashes.\r\n\r\nExpected Result:\r\nAfter Step 4: The video should start playing again.\r\n\r\napp.js\r\n{code}\r\nwin = Titanium.UI.createWindow({\r\ntitle:'Test'\r\n});\r\nvar label = Ti.UI.createLabel({\r\ntop: 30,\r\nwidth:100,\r\nheight:30,\r\ntext: 'start video',\r\nbackgroundColor:'white'\r\n});\r\nwin.add(label);\r\nlabel.addEventListener('singletap', function(e){\r\nactiveMovie = Titanium.Media.createVideoPlayer({\r\n width: 640/4, //if the aspect is not video default, then you'll get an exception\r\n height: 360/4, //if the aspect is not video default, then you'll get an exception\r\n fullscreen: true, //this one must be true, or the video must be resized for the exception\r\n autoplay: false,\r\n url: 'movie.mp4',\r\n backgroundColor:'#000',\r\n movieControlMode:Ti.Media.VIDEO_CONTROL_DEFAULT,\r\n scalingMode:Ti.Media.VIDEO_SCALING_ASPECT_FIT\r\n});\r\nwin.add(activeMovie);\r\nactiveMovie.addEventListener('complete', function(e){\r\n Ti.API.info('movie finished playing');\r\n if (activeMovie.playing == true) {\r\n Ti.API.info('movie is playing');\r\n activeMovie.stop();\r\n } else {\r\n Ti.API.info('movie is stopped');\r\n }\r\n activeMovie.fullscreen = false;\r\n win.remove(activeMovie);\r\n Ti.API.info('movie onComplete finished');\r\n});\r\nactiveMovie.play();\r\n});\r\nwin.open();\r\n\r\n{code}\r\n", "attachment": [ { "id": "30448", "filename": "log.rtf", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-08-13T00:47:39.000+0000", "size": 1349, "mimeType": "text/rtf" } ], "flagged": false, "summary": "iOS : VideoPlayer - App crashes when the videoplayer is restarted.", "creator": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Tested with Titanium SDK: 2.1.1.GA\r\nTested with Titanium Studio: 2.1.1.201207271312\r\nDevice Details: iOS Simulator (5.1)", "comment": { "comments": [ { "id": "246831", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "After step 4 it plays only audio but not video.It works fine only after third tapping on label, but there is no crashing.\nTested with:\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-10T08:54:21.000+0000", "updated": "2013-04-10T08:54:21.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }