Author Topic: Adding a logo in JwPlayer  (Read 1001 times)

0 Members and 1 Guest are viewing this topic.

Offline dani001

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
    • View Profile
Adding a logo in JwPlayer
« on: January 09, 2010, 04:34:17 PM »
Hey,Everyone i wanted to add a logo in my jwplayer ... please help

That's  my youtube code =

Code: [Select]
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="450" height="320">
      <param name="movie" value="player-viral.swf" />
      <param name="allowfullscreen" value="true" />
      <param name="allowscriptaccess" value="always" />
      <param name="flashvars" value="file=http://www.youtube.com/v/{if $video[video].file eq""}{$videoid}{else}{$video[video].file}{/if}" />
      <embed
         type="application/x-shockwave-flash"
         id="player2"
         name="player2"
         src="player-viral.swf"
         width="450"
         height="320"
         allowscriptaccess="always"
         allowfullscreen="true"
         flashvars="file=http://www.youtube.com/v/{if $video[video].file eq""}{$videoid}{else}{$video[video].file}{/if}"/>
     
   </object>

How can i place a logo in this code Thanks in advance

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: Adding a logo in JwPlayer
« Reply #1 on: January 09, 2010, 07:26:09 PM »
Code: [Select]
<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="450" height="320">
      <param name="movie" value="player-viral.swf" />
      <param name="allowfullscreen" value="true" />
      <param name="allowscriptaccess" value="always" />
      <param name="flashvars" value="file=http://www.youtube.com/v/{if $video[video].file eq""}{$videoid}{else}{$video[video].file}{/if}" />
      <embed
         type="application/x-shockwave-flash"
         id="player2"
         name="player2"
         src="player-viral.swf"
         width="450"
         height="320"
         allowscriptaccess="always"
         allowfullscreen="true"
         flashvars="&logo=http://www.site.com/test.png &file=http://www.youtube.com/v/{if $video[video].file eq""}{$videoid}{else}{$video[video].file}{/if}"/>

I Think its something like that
     
   </object>

Offline Chris (krissy)

  • Project Leader
  • Sr phpd Member
  • *****
  • Posts: 219
  • Karma: 1000
    • View Profile
    • PHPDirector
Re: Adding a logo in JwPlayer
« Reply #2 on: January 10, 2010, 02:23:07 AM »
Btw, don't pm me dani001. I'm not on the development team really.

Offline Shave.

  • Development Team
  • Full phpd Member
  • *******
  • Posts: 80
  • Karma: 0
    • View Profile
    • PHPD Mods
Re: Adding a logo in JwPlayer
« Reply #3 on: January 17, 2010, 09:09:09 PM »
Heres the way I have got it coded.

Code: [Select]
{if $vidtype eq "YouTube"}


<script type="text/javascript" src="/swfobject.js"></script>
<div id="player"><a href="http://get.adobe.com/flashplayer">
  <h2>Hello, you either have JavaScript <br />turned off or an old version of Adobe's Flash Player. Get the latest Flash player. </h2>
</a></div>
<script type="text/javascript">
var so = new SWFObject('/player-viral.swf','mpl','700','370','8');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');

so.addVariable('autostart','true');
so.addVariable('height','370');
so.addVariable('width','700');
so.addVariable('logo','http://www.askshave.com/templates/askshave/images/video-logo.png');
so.addVariable('file','file=http://www.youtube.com/v/{if $video[video].file eq



""}{$videoid}{else}{$video[video].file}{/if}&autoplay=1&amp;logo=http://www.askshave.com/templates/askshave/images/video-logo.png');
so.addVariable('id','6213');
so.addVariable('searchbar','false');
so.addVariable('showdownload','true');
so.write('player');
</script>

ofcourse change the logo link from my logo to yours.

Offline orton

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: Adding a logo in JwPlayer
« Reply #4 on: April 20, 2010, 07:05:18 AM »
Hi
We feed JWplayer with an external playlist, and have an external button to shuffle this play list. I would like to move this button into the JWplayer control bar itself.I'm not a developer, I'm a designer - but, thanks to a link found on the JWplayer support forum I have been able to add a custom button to the control bar - via the skin.

However, I have a problem in getting the button to work. Speaking with the developer I need to provide an ExternalInterface function which will take the name of a javascript function (e.g. setShuffleFunction('window.toggleButton') ), and then call the javascript function with true/false (depending on the button state) when the button is clicked. I've spent hours looking in forums, and on Google and am unable to find an answer. Are you able to advise me? Thank you for your time.
----------------------------------------------------------------
daybeds , adjustable bed