Video link code not pulling the the video from my server

dipzeen's Avatar

dipzeen

30 Apr, 2020 08:43 PM

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 = $('<video> <source src = URL : ' + `https://www.bftchurch.org/images/> `+ '</video>' );
});

a class="rsImg" href="1st witness.png" data-rsvideo="First testimony.mp4">
                        <div class="rsTmb">
                          <h5>Bro. Jackson's</h5>
                          <span>First Witness</span>
                        </div>
                      </a>

  1. Support Staff 1 Posted by Dmitry Semenov on 01 May, 2020 06:43 AM

    Dmitry Semenov's Avatar

    Hello,

    I do not quite understand what do you do in this part:

    '<video> <source src = URL : ' + `https://www.bftchurch.org/images/> `+ '</video>'
    

    you probably need something like:

    slider.ev.on('rsOnCreateVideoElement', function(e, url) {
                slider.videoObj = $('<video><source src="https://www.bftchurch.org/images/'+url+'" type="video/mp4"></video>');
        });
    
  2. 2 Posted by dipzeen on 02 May, 2020 02:33 PM

    dipzeen's Avatar

    Thanks Dmitry for your prompt response. really appreciate

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

Generic

? 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