{ "id": "105554", "key": "TIMOB-11864", "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": [ { "id": "14700", "description": "2012 Sprint 25", "name": "2012 Sprint 25", "archived": true, "released": true, "releaseDate": "2012-12-17" }, { "id": "14784", "description": "2012 Sprint 25 API", "name": "2012 Sprint 25 API", "archived": true, "released": true, "releaseDate": "2012-12-17" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-12-05T02:04:43.000+0000", "created": "2012-11-27T09:47:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-ios100112" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:42: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Video gets freezed if label to start video is doubletapped instead of singletap.\r\nThis is not regression since the issue occurs in 2.1.4GA and 2.1.3GA as well.\r\n\r\nSteps to reproduce:\r\n1. Create an app using the code below.\r\n2. doubletap on 'start video' label.\r\n\r\nActual:\r\nThe video screen goes black and gets freeze.\r\n\r\nExpected:\r\nThe video should play as usual.\r\n\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#fff'\r\n});\r\n\r\n\r\n\t\tvar label = Ti.UI.createLabel({\r\n\t\ttop: 30,\r\n\t\twidth:100,\r\n\t\theight:30,\r\n\t\ttext: 'start video',\r\n\t\tbackgroundColor:'white'\r\n\t\t});\r\n\t\t\r\n\t\twin1.add(label);\r\n\t\t\r\n\t\tlabel.addEventListener('singletap', function(e){\r\n\t\tactiveMovie = Titanium.Media.createVideoPlayer({\r\n\t\t width: 640/4, //if the aspect is not video default, then you'll get an exception\r\n\t\t height: 360/4, //if the aspect is not video default, then you'll get an exception\r\n\t\t fullscreen: true, //this one must be true, or the video must be resized for the exception\r\n\t\t autoplay: false,\r\n\t\t url: 'movie.mp4',\r\n\t\t backgroundColor:'#000',\r\n\t\t movieControlMode:Ti.Media.VIDEO_CONTROL_DEFAULT,\r\n\t\t scalingMode:Ti.Media.VIDEO_SCALING_ASPECT_FIT\r\n\t\t});\r\n\t\t\r\n\t\twin1.add(activeMovie);\r\n\t\t\r\n\t\tactiveMovie.addEventListener('complete', function(e){\r\n\t\t Ti.API.info('movie finished playing');\r\n\t\t if (activeMovie.playing == true) {\r\n\t\t Ti.API.info('movie is playing');\r\n\t\t activeMovie.stop();\r\n\t\t } else {\r\n\t\t Ti.API.info('movie is stopped');\r\n\t\t }\r\n\t\t activeMovie.fullscreen = false;\r\n\t\t win1.remove(activeMovie);\r\n\t\t Ti.API.info('movie onComplete finished');\r\n\t\t});\r\n\t\t\r\n\t\tactiveMovie.play();\r\n\t\t\r\n\t\t});\r\n\t\t\r\n\t\twin1.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Media - Video gets freeze if label (to start video) is doubletapped instead of singletap.", "creator": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.0.0.v20121121161553\r\nStudio: 3.0.0.201211202053\r\nDevice: iPhone4s(v 5.1)\r\nOS: OSX 10.8", "comment": { "comments": [ { "id": "230012", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue here is not with the video player but with eventing.\n\nThe label is listening for `singletap` events. \nSingletap events generally would be fired multiple times if you have not registered for a `doubletap`event. This is the intended behavior.\nIf you have registered for doubletap, then this goes away and singletap will only be invoked when single tap occur.\n\nSolution to this ticket is either use `click` event listener instead of `singletap` or register for `doubletap` on label.\n\nMarking ticket as invalid. \n\nCorrected code with soultion [1|https://raw.github.com/gist/4211444/abbe2137ec9adccec0e3efd3268b7e6fdfcc552d/app.js] , [2|https://raw.github.com/gist/4211452/9e576a5d40fc5fc52c92e77d5bee6695fb2b9108/app.js] ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-05T02:04:27.000+0000", "updated": "2012-12-05T02:04:27.000+0000" }, { "id": "246830", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nSDK: 3.1.0.v20130409124549\r\nStudio:3.1.0.201304011603\r\nDevice: iPad2(v 5.1)\r\nOS: OSX 10.7.5\r\n\r\nVideo doesn't get freeze if 'click' is used instead of 'singletap' or 'doubletap' is handled.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-10T08:51:56.000+0000", "updated": "2013-04-10T08:51:56.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }