Download & Extend

Youtube video with JWPlayer + Custom skin

Project:Embedded Media Field
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

just to share with those who's using JW Player for their Youtube video and wanted to use their own skin instead of the default one.

file: emfield/contrib/emvideo/providers/youtube.inc
line: 475

change to:

PS: remember to change '/path_to_your_skin' to your actual path. e.g. /player/skin.swf

Comments

#1

I don't see that line of code in that file. Line 475 has something else on it. Can you post the whole code here with the changes? Thanks

#2

it was version 'youtube.inc,v 1.1.2.40 2009/10/05 19:05:10' that i'm using.

    else if ($use_flv) {
      $flashvars = drupal_query_string_encode($flashvars);
      $output = <<<FLV
        <div id="$div_id"><embed src="$url" width="$width" height="$height" allowscriptaccess="always" allowfullscreen="$fullscreen_value" flashvars="$flashvars&skin=/player/skin.swf" /></div>
FLV;
    }

#3

Status:active» fixed

Firstly, *NEVER* modify the include file itself; it's a theme function (theme_emvideo_youtube_flash), which you can override normally (see http://drupal.org/theme-guide/6). Secondly, if you use the FLV Media Player module in conjunction with this, you can also set a profile to use, where you can control the skin administratively, as well as other options. Just set up a profile in FLV Media Player, then go to the Emfield adminstration page and select the "FLV Media Player Profile" from the drop-down near the top of the page.

#4

Aaron, thanks.

I am using SWFTools which doesn't integrate with Emfield nicely to use the skin. But the FLV Media Player seems interesting, will check it out.

#5

The FLV Media Player also uses SWF Object (in fact is dependent on it), so your solution will be compatible.

#6

subscribe for http://drupal.org/node/604860#comment-2156894 as the easiest solve

#7

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#8

Very happy with this profile integration!

nobody click here