on one of my websites we were using the video module but we want to switch to cck + embedded media field (video files are hosted on a different server). the point is that our videos are all ogg files and the only file formats supported by emfield are wmv, swf, flv, mov and rm.

is there any way to have ogg files supported as custom URL file formats?
this is critical for all websites committed to free software and free formats.

thank you

Comments

alex ua’s picture

Priority: Critical » Normal
Status: Active » Postponed

Changing this to normal priority, and postponing until after we do the D6 port.

benced’s picture

Version: 5.x-1.0 » 5.x-1.2
Status: Postponed » Needs review

Here's a quick fix, not ideal but works...

(All references to lines below are to zzz_custom_url.inc, v 1.3 as packed in version 5.x-1.2 located at
emfield/contrib/video_cck/providers/zzz_custom_url.inc)

Lines 4 to 6

Replace with

function _video_cck_zzz_custom_url_default_types() {
return array('wmv', 'wma', 'swf', 'flv', 'mov', 'rm', 'ogg');
}

Add this new line somewhere between line 27 and line 32

    'ogg' => t('Ogg Theora (ogg)'),

And between lines 124 and 125 add

case 'ogg':
return '<!--[if !IE]>--> <object classid="java:com.fluendo.player.Cortado.class" type="application/x-java-applet" archive="http://www.anarchotv2point0.org/drupal5-dev/sites/all/modules/video/cortado.jar" width="400" height="300" > <!--<![endif]--> <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0-windows-i586.cab" width="400" height="300" > <param name="code" value="com.fluendo.player.Cortado" /> <!--[if !IE]>--> </object> <!--<![endif]--> <!-- IE and Konqueror browser need the archive param --> <param name="archive" value="http://www.anarchotv2point0.org/drupal5-dev/sites/all/modules/video/cortado.jar" /> <param name="url" value="'. $url .'"/> <param name="local" value="false" /> <param name="keepaspect" value="true" /> <param name="video" value="true" /> <param name="audio" value="true" /> <param name="seekable" value="false" /> <param name="bufferSize" value="200" /> </object>';
alex ua’s picture

Version: 5.x-1.2 » 6.x-1.x-dev

I'm moving this to 6.x-1.x-dev, since that's the current dev version. My big question is: does the default emfield player work with ogg files?

alex ua’s picture

Status: Needs review » Needs work

And marking as code needs work because there's no patch.

robloach’s picture

I don't like having "http://www.anarchotv2point0.org/drupal5-dev/sites/all/modules/video/cort..." in there. Would be wicked to get this in for the audio field as well.

benced’s picture

yeah... code defo needs work...

Currently it only supports files that are uploaded on the site where the cortado code is stored...

So can't videos from external websites

Few things I'm going to try and do

1/ Get the cortado code signed (which is supposed to then allow external websites videos to be played)
2/ Try this player - http://vpip.org/
3/ Try a drupal implementation of this - http://metavid.org/w/index.php/Mv_embed

benced’s picture

Code now works at least on my site....

Placed a signed copy of the cortado.jar in place of the old one and it now works...

Have also moved a copy of this file to http://www.anarchotv2point0.org/cortado.jar which will be kept permanently accessible

The embed code needs some tweaking as, for me, the audio cut out after a while on the videos i've tried because it needs to be allowed to buffer for longer on my connection.

I've also tried out adding one of those time location bar things to the bottom of the player but in order to do this you need to set the duration in the code

See here for more info about the embed code options

https://code.fluendo.com/flumotion/trac/browser/cortado/trunk/README

For Audio stuff...

Audio player info here http://www.jcraft.com/jorbis/

I will be adding this to my site eventually also...

Here's a quick embed code for the ogg audio clips that you might want to try

<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        width="600" height="35" align="center"
        codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
  <PARAM NAME="java_codebase" VALUE="http://www.jcraft.com/jorbis/player/">
  <PARAM NAME="java_code" VALUE="JOrbisPlayer.class">
  <PARAM NAME="archive" VALUE="JOrbisPlayer-0.0.17-rsa.jar">
  <PARAM NAME="jorbis.player.play.0" VALUE="'. $url .'">
  <PARAM NAME="jorbis.player.icestats" VALUE="no">
  <PARAM NAME="jorbis.player.playonstartup" VALUE="yes">
  <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
  <COMMENT>

    <EMBED type="application/x-java-applet;version=1.3"
           width="600" height="35"
           java_codebase="http://www.jcraft.com/jorbis/player/"
           java_code="JOrbisPlayer.class"
           archive="JOrbisPlayer-0.0.17-rsa.jar"
           jorbis.player.play.0="'. $url .'"
           jorbis.player.icestats="no"
           jorbis.player.playonstartup="yes"
           pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html">
    <NOEMBED>
  </COMMENT>
    No J2SE plugin support.
    </NOEMBED>
    </EMBED>
</OBJECT>

I've never made a proper patch before but will try and have a go at it...

Sborsody’s picture

Subscribing