jwplayer - custom video player

manuelden's Avatar


03 Sep, 2012 05:14 PM

Hi Dimtry,

I just wanted to ask if you have some advices on how to implement jwplayer videoplayer on royalslider? I have tried the "Adding support for third-party video player" article with no luck.... this is the standard embed method for jwplayer:

<div id="container">Loading the player ...</div>

<script type="text/javascript">
        flashplayer: "/jwplayer/player.swf",
        file: "/uploads/video.mp4",
        height: 270,
        width: 480

thanks in advance!


  1. Support Staff 1 Posted by Dmytro Semenov on 05 Sep, 2012 05:16 AM

    Dmytro Semenov's Avatar


    From http://help.dimsemenov.com/kb/royalslider-javascript-api/adding-sup... article, based on your code:

    slider.ev.on('rsOnCreateVideoElement', function(e, url) {
            // url - path to video from data-rsVideo attribute
            // slider.videoObj - jQuery object that holds video HTML code
            // slider.videoObj must be IFRAME, VIDEO or EMBED element, or have class rsVideoObj
            slider.videoObj = $('<div id="video-container">Loading the player ...</div>');
            setTimeout(function() {
                    flashplayer: "/jwplayer/player.swf",
                    file: url,
                    height: 270,
                    width: 480
            }, 100);


  2. 2 Posted by pullus313 on 07 Dec, 2012 03:56 PM

    pullus313's Avatar

    Is it possible to autoplay videos on slide-in using JW player and royal slider?

  3. Support Staff 3 Posted by Dmytro Semenov on 08 Dec, 2012 02:11 PM

    Dmytro Semenov's Avatar


    You may use RoyalSlider playVideo public method to implement this. http://dimsemenov.com/plugins/royal-slider/documentation/#api


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac