Playlist operations not recognized as functions

Comments

1 comment

  • Avatar
    Piotr Niebylski

    Hello Edward,

    Thank you for your question.

     

    To be able to access currentIndex() method you need to access it on a returned object like so:

    var vplayer = cloudinary.videoPlayer('doc-player', {
        playlistWidget: {
            direction:'horizontal',
            total:2
        },
        showJumpControls:true,
        showLogo:false,
        secure:true
    });

    vplayer.playlist(playlist, playlistOptions)

    vplayer.playlist().currentIndex(0);

    So in this example playlist method does not have any vars specified and then it will accept any underlying methods.

    All supported methods for a playlist object can be found here.

     

    Best regards,

    Piotr.

    1
    Comment actions Permalink

Please sign in to leave a comment.