I also tried changing line 33 to  
 currentState = "VideoState" 
so that button toggles  between video and image.

And it still works fine.

Maurice 

-----Message d'origine-----
De : Maurice Amsellem [mailto:[email protected]] 
Envoyé : dimanche 25 mai 2014 18:54
À : [email protected]
Objet : RE: Problem with videoPLayer on Android when changing States

I have just installed and tried the attached project on an iPad :

- when changing the device orientation while video is playing, video go on 
playing
- when clicking on "change orientation button", the video does not appear, but 
this is expected, because the state logic switches because ImageState and 
carState.

I suggest you run your app in debug mode and try understand what's happening so 
that you can fix it.

Maurice

-----Message d'origine-----
De : Phil [mailto:[email protected]] Envoyé : dimanche 25 mai 2014 13:36 
À : [email protected] Objet : Re: Problem with videoPLayer on Android when 
changing States

I don't currently have a developers account with Apple to test it, as I need a 
certificate.

I will need one soon, so might get one shortly to test on an iPad.

I'm about to try to use a popup for the video to see if I can get round the 
problem that way.
If it works it would be a solution.

Phil.

Sent from my iPad

> On 25 May 2014, at 11:38, Maurice Amsellem <[email protected]> 
> wrote:
> 
> Does the issue also happen on iOS, or only Android ?
> 
> Maurice
> 
> -----Message d'origine-----
> De : Philip Medlam [mailto:[email protected]] Envoyé : dimanche
> 25 mai 2014 09:57 À : [email protected] Objet : Re: Problem with 
> videoPLayer on Android when changing States
> 
> Thanks for the thought.
> I have tried this and also maunually starting and stopping the video via the 
> videoPlayer controls, but the same frozen video problem persists.
> 
> The player is still running, as the sound can be heard and the scrubber is 
> moving.
> 
> Somtimes (but not always), when I move the video forward/back via the 
> scrubber bar, the video works again, but this is inconsistant.
> 
> Thanks again,
> 
> Phil.
> 
> 
>> On Sun, May 25, 2014 at 12:44 AM, piotrz <[email protected]> wrote:
>> 
>> Hi Philip,
>> 
>> Maybe this is some kind of issue. I had quite similar problems and I 
>> did something stupid but it helps.
>> When you change your states try to play() and immediate stop() your 
>> video see if it help.
>> 
>> myVid.play();
>> myVid.stop();
>> 
>> Piotr
>> 
>> 
>> 
>> -----
>> Apache Flex Committer
>> [email protected]
>> --
>> View this message in context:
>> http://apache-flex-users.2333346.n4.nabble.com/Problem-with-videoPLay
>> e r-on-Android-when-changing-States-tp6602p6603.html
>> Sent from the Apache Flex Users mailing list archive at Nabble.com.
> 
> 
> 
> --
> Philip Medlam

Reply via email to