1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    16
    Vote Rating
    0
    CedDcode is on a distinguished road

      0  

    Default Unanswered: video into a carousel doesn't work

    Unanswered: video into a carousel doesn't work


    Hello,

    I have problems with a carousel which contains videos and images:

    First : When I swipe to a video I listen to the sound of my video but I don't see it , I see only the image (posterUrl). I must tap to see the video however "autoResume" and "autoPause" is true.

    Second: When I come back on my video (previously launched ) , it's black and there is no sound anymore.

    Any idea ?

    Cédric

  2. #2
    Sencha User
    Join Date
    Aug 2012
    Posts
    16
    Vote Rating
    0
    CedDcode is on a distinguished road

      0  

    Default


    nobody ?

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    409
    Vote Rating
    18
    Answers
    18
    digeridoopoo will become famous soon enough

      0  

    Default have you tried...

    have you tried...


    When you say swipe to a video is this what happens the first time you view the video or after when you come back to it? What format is the video in? Is it a local video or youtube?

    I have heard of some problems with videos in carousels. Have you tried dynamically adding and removing the video using component query, listening out for the activeitemchange event?

    I have had some success completely removing the video by setting the html to "" (i.e nothing) after an activeitemchange. Then adding it again once the carousel page appears.


  4. #4
    Sencha User
    Join Date
    Aug 2012
    Posts
    16
    Vote Rating
    0
    CedDcode is on a distinguished road

      0  

    Default


    Hello ,

    thanks for you reply
    It happens when I come back to the video.
    In fact, I have a solution :

    I have increased the buffer size with the méthode "setBufferSize" of carousel, but I guess there is a best solution.

    Cédric

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Location
    London
    Posts
    409
    Vote Rating
    18
    Answers
    18
    digeridoopoo will become famous soon enough

      0  

    Default Take a look here...

    Take a look here...


    See how you go....but if you are still having problems you could try removing the video on carousel swipe like this (if the item in the carousel has an id of video):

    Code:
    Ext.getCmp('video').setHtml('')
    ....and then you can add it back like this on return


    Code:
    Ext.getCmp('video').setHtml('/resources/video/video.mp4')
    This worked for me when I had problems with video in a carousel...

    :-)

Thread Participants: 1