Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3222] VideoPlayer .play() causes multiple videos to end and fire 'complete' event

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-09-04T10:52:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterPat O'Callaghan
AssigneeNeeraj Gupta
Created2011-04-15T03:39:50.000+0000
Updated2017-03-09T23:00:45.000+0000

Description

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

I have a file with a function which can be called to create a Video Player view (see a simple test case in this http://pastie.org/1604596">pastie). In my main window, I create two of these video views, each with different videos and data. When I start playing one of the videos, pause it, and then go and play the other video it causes both to 'complete'. The click event to start the second video fires, but once video.play() is called in the callback, the 'complete' event on both videos is fired causing both to end.

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

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

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

Thanks,

Pat

Comments

  1. Junaid Younus 2012-09-04

    This is a help desk question, please open a ticket for this in our support portal or ask in our Q&A section. Ticket marked as invalid as it's inappropriate and the sample code doesn't seem to run.
  2. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source