1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    1
    Vote Rating
    0
    bobo2013 is on a distinguished road

      0  

    Default Video pause and play again...

    Video pause and play again...


    Hello,

    I have a video on the scene 1 . I would like to be able to pause this video when I go to the scene 2 and start it again (at the moment when it paused ) when I come back to the scene 1. Is it possible?
    Thank you for your help.
    Boris.

  2. #2
    Sencha User arnebech's Avatar
    Join Date
    Jun 2010
    Posts
    498
    Vote Rating
    10
    arnebech will become famous soon enough

      0  

    Default


    This should be possible in most browser (probably not on iOS).

    So what I would do is:

    At the start action of the first scene I'd add the following custom JS
    Code:
    //note that you need to give the video an id of "myVideo" in Animator
    var videoContainer = controller.getElementById('myVideo');
    var videoEl = videoContainer.querySelector('video');
    videoEl.play();
    Then at the start action of the second scene I'd add the following custom JS
    Code:
    var videoContainer = controller.getElementById('myVideo');
    var videoEl = videoContainer.querySelector('video');
    videoEl.pause();

  3. #3
    Banned
    Join Date
    May 2013
    Posts
    1
    Vote Rating
    0
    jony_blue is on a distinguished road

      0  

    Default thanks

    thanks


    i need thanks you !

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi