{ "id": "63854", "key": "TIMOB-3222", "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": "2012-09-04T10:52:09.000+0000", "created": "2011-04-15T03:39:50.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "20519", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:00:45.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": "{html}

Hi,
\nI'm building an iPad app using Titanium 1.6.0 (it was also the same\nin 1.5.1) with the 4.2 iPhone SDK.

\n

I have a file with a function which can be called to create a\nVideo Player view (see a simple test case in this pastie). In my main window, I\ncreate two of these video views, each with different videos and\ndata. When I start playing one of the videos, pause it, and then go\nand play the other video it causes both to 'complete'. The click\nevent to start the second video fires, but once video.play() is\ncalled in the callback, the 'complete' event on both videos is\nfired causing both to end.

\n

I thought it may have something to do with my variable\nreferences pointing to the same video object but that isn't the\ncase as I can log separate data from each of the videos in their\nrespective 'complete' event listeners.

\n

Expected Behaviour: You should be able to pause one video, go to\nanother video and press play and it will play straight away, while\nthe original video retains it's last played position.

\n

Any ideas or thoughts on this? Is this a bug in Titanium? Do\nmultiple videos need to be in their own window rather than multiple\nviews in one window?

\n

Thanks,

\n

Pat

{html}", "attachment": [], "flagged": false, "summary": "VideoPlayer .play() causes multiple videos to end and fire 'complete' event", "creator": { "name": "pato'callaghan", "key": "pato'callaghan", "displayName": "Pat O'Callaghan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pato'callaghan", "key": "pato'callaghan", "displayName": "Pat O'Callaghan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "217453", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "This is a help desk question, please open a ticket for this in our support portal or ask in our Q&A section. \r\n\r\nTicket marked as invalid as it's inappropriate and the sample code doesn't seem to run.", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-09-04T10:52:09.000+0000", "updated": "2012-09-04T10:52:09.000+0000" }, { "id": "410891", "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:00:45.000+0000", "updated": "2017-03-09T23:00:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }