1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    35
    Vote Rating
    0
    I3D is on a distinguished road

      0  

    Default End of Movie Transition

    End of Movie Transition


    Hi Guys

    How can i initiate a transition to another scene when ever a video ends playing? is there a way to catch that?

    Best

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

      0  

    Default


    I haven't tried this myself, but this might work:

    You can set a start action for the scene with the video to custom js.
    Give the video a css id (e.g. "funVideo")

    then you can do something like this in for the start action js

    Code:
    //not tested code
    var video = document.querySelector("#funVideo video");
    
    //psudo code
    if we haven't set up the listener before
        attach event listener for "ended" to the video element 
             callback function: 
                   controller.goToNextScene();

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    35
    Vote Rating
    0
    I3D is on a distinguished road

      0  

    Default


    Thanks arnebech

    I do have a problem with the video Auto play, once i select the auto play on the video it start from the beginning of the site even though the video is the last scene. How can i target the video play through code? same approach as targeting the end? does it need a listener?

    thanks

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

      0  

    Default


    Again, this is untested, but here is my best guess.

    Turn off auto play.
    In the custom js start action I talked about in my previous post, you could do something like this:

    Code:
    var video = ... //same as previous code
    
    video.play();

  5. #5
    Sencha User
    Join Date
    Oct 2011
    Posts
    35
    Vote Rating
    0
    I3D is on a distinguished road

      0  

    Default


    Thanks arne

    cheers

  6. #6
    Sencha User
    Join Date
    Oct 2011
    Posts
    35
    Vote Rating
    0
    I3D is on a distinguished road

      0  

    Default


    Hi Arne

    Adding the event listener is giving me an "'undefined' is not a function" error! any idea how to solve this.

    actually the querySelector gives a NULL when adding the event listener, and getElement gives an UNDEFINED!

    thanks

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

      0  

    Default


    Are you giving the video element a css id?

    cssid.png


    Code:
    //this should work as a start action for the scene
    var video = document.querySelector("#funVideo video");
    video.play();

  8. #8
    Sencha User
    Join Date
    Oct 2011
    Posts
    35
    Vote Rating
    0
    I3D is on a distinguished road

      0  

    Default


    Hi ArneThanks for the help, the video worked last night, i tested the same approach on the audio first and when it didn't work i thought the same holds true for the video, but the video part worked.question, do you offer and paid support options for Sencha Animate?

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

      0  

    Default


    No, we don't offer regular paid support at this point. However, we try to respond to forum questions.

  10. #10
    Sencha User
    Join Date
    Oct 2011
    Posts
    35
    Vote Rating
    0
    I3D is on a distinguished road

      0  

    Default


    I understand, problem for us is that we're at the other part of the earth (Australia) and the time differento get a responce is not on our favor. Thanks

Thread Participants: 1

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