Okay
  Public Ticket #310377
Embed JWplayer code in home slider
Closed

Comments

  • Gert-Jan started the conversation

    Hello,

    for performance reasons i like to embed videos on the home slider with something like this:

    [jwplayer file="rtmp://s180tovbyhtf26.cloudfront.net/cfx/st/mp4:BAlookupShortPromo.mp4" autostart="true"]

    I like to add 6 slides with 6 different movies but don't want to use the formats build in the theme. 

    So I added it in home slider embedded code but its not showing on my homepage. It's black nothing else.

    If I put it somewhere else on the page the movie is running ok.

    Could you give me an idea if this works?

  •  8,406
    Tahir replied

    Hey!

    Try adding it in the Nectar Slider Caption area which parses shortcodes as well. 

    Thanks 


    ThemeNectar Support Team 

  • Gert-Jan replied

    Hi,

    ok its in the caption area, and i see this code in the source..but it is not playing

    <div class='jwplayer' id='jwplayer-0'></div><script type='text/javascript'>if(typeof(jQuery)=="function"){(function($){$.fn.fitVids=function(){}})(jQuery)};jwplayer('jwplayer-0').setup({"autostart":true,"file":"rtmp://s180tovbyhtf26.cloudfront.net/cfx/st/mp4:BAlookupShortPromo.mp4"});
    </script>

    if i put it in a textblock its playing

    <div class='jwplayer' id='jwplayer-0'></div><script type='text/javascript'>if(typeof(jQuery)=="function"){(function($){$.fn.fitVids=function(){}})(jQuery)};jwplayer('jwplayer-0').setup({"autostart":true,"file":"rtmp://s180tovbyhtf26.cloudfront.net/cfx/st/mp4:BAlookupShortPromo.mp4"});
    </script>

    i dont fill any of the fields in webm/mp4/ogv/ in the nectar slider, looks like its trying to load some of those. the "loading icon" is spinning.
  • Gert-Jan replied

    Hello Support,

    any idea on the above issue?

  •   Tahir replied privately