JWPlayer Embedding on other Site

edited April 2015 in Customizations
Hi,

I have done my jwplayer setup on play.phtml but video image not loading on video player.

And what code add in embed.phtml? that visitors embed jwplayer not default one.

Hope you understand.

Please answer.

Comments

  • edited April 2015
    can't post code here :(
  • Yes you can. Just place code in these tags:

    <code></code>
  • edited April 2015
    I have done play.phtml file and player working fine on cloudy DOT mn but when add below code in emebed.phtml so i got no player or sometime JWplayer site redirect only.


    <div id="player">Loading the player ...</div>
    <script type="text/javascript">
    jwplayer("player").setup({
    flashplayer: "/jwplayer/player.swf",
    file: "<?=$config->h264Url?>/<?=$video->filename?>.mp4",
    height: 337,
    width: 600
    });
    </script>


    Added this in header as well:
    <script type="text/javascript" src="/js/jwplayer.js"></script>

    please tell me what i should do that people can embed my code and get jwplayer on their site.
  • Where is the file jwplayer.js located?
  • In js/jwplayer.js
  • edited April 2015
    Ok, so if it's in the js folder of your theme, then the url you posted above is incorrect. It should be:

    <?=$this->options->themeUrl?>/js/jwplayer.js
  • <script type="text/javascript" src="<?=$this->options->themeUrl?>/js/jwplayer.js"></script>

    Is above code is correct?
  • <script type="text/javascript" src="<?=$this->options->themeUrl?>/js/jwplayer.js"></script>

    Is above code is correct?
  • That looks better.
  • After adding this code embedding shows like attached file and when i click on play so it move me on jwplayer site.
    vfHLrxq.jpg
    892 x 385 - 26K
  • this is the big logo showing on the whole player. how to make it small?
This discussion has been closed.