Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Hybrid View

  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