1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    12
    Vote Rating
    0
    handemmet is on a distinguished road

      0  

    Default Looping video

    Looping video


    Hi

    Is it possible to loop a video in a scene??
    I placed an action at the end of the scene to 'restart' but the video doesn't loop.
    I tried adding '50' to the iterations on the video element but still nothing.

    Can anybody help me??

    E

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

      0  

    Default


    If you want to a loop a video when it ends, you could do something like this for the custom JS start action of the scene. Make sure you video id is "my-video-id" or matches that in the code.

    Code:
    if (!this.videoListener) {
        
        //so we only call this once
        this.videoListener = true;
        
        var videoContainer = controller.getElementById('my-video-id');
        var videoElement = videoContainer.querySelector('video');
        
        videoElement.addEventListener('ended',function(){
            videoElement.play();
        },false);
        
    }

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

      0  

    Default


    works great! thanks for the tip Arne

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..."