Fork me on GitHub

Postnuke Video Module Needed  Bottom

Go to page [-1] 1 - 2 - 3:

  • I have had good results with quicktime player. using an older version of quicktime, not new. i use standard movie capture software(ulead, old stuff), or even import a .swf file into the ulead and convert the thing to an mpeg.

    upload the mpeg to Mediashare and the quicktime handler is there and imbeded into Mediashare with controls. the whole thing operates similar to the videos in utube, except with quiktime player.
    icon_biggrin
  • I've just experimented with this for 5 minutes and for Mediashare the solution to handling FLV files seems to be to change the function getMediaTypes() in pnmedia_flashapi.php to the following:

    Code

    function getMediaTypes()
      {
        return array(
          array('mimeType' => 'application/x-shockwave-flash', 'fileType' => 'swf',  'foundMimeType' => 'application/x-shockwave-flash', 'foundFileType' => 'swf'),
          array('mimeType' => 'application/octet-stream', 'fileType' => 'flv',  'foundMimeType' => 'application/octet-stream', 'foundFileType' => 'flv'));
    }


    and add an entry to the mediashare_mediahandlers table
    which registers mimetype and foundmimetype as "application/octet-stream" and the file extensions as "flv".



    Some initial testing seems to confirm that this works ...

    Hope this helps
    Greetings
    R
  • You also need a player. You could use this one: http://flowplayer.org

    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the Zikula Steering Committee
    Read The Zikulan's Blog "If you want people to RTFM, make a better FM!"
  • I finally found the bug: FLV files must come with the complete URL, not just a relative one, for SWF files this does not matter. This is the code for the Mediashare flash handler "pnmedia_flashapi.php" to enable the player.


    Code

    function getMediaDisplayHtml($url, $width, $height, $id, $args)
      {
        //$width="100px"; $height="100px";
        $widthHtml = ($width == null ? '' : " width=\"$width\"");
        $heightHtml = ($height == null ? '' : " height=\"$height\"");

        return "<!--[literal]--><!--[if !IE]> --><!--[/literal]-->
        (object id=\"ps-media\" width=\"400\" height=\"400\" type=\"application/x-shockwave-flash\" data=\"javascript/mediaplayer.swf\")
        <!--[literal]--><!-- <![endif]--><!--[/literal]-->

        <!--[literal]--><!--[if IE]><!--[/literal]-->
        (object id=\"ps-media\" width=\"400\" height=\"400\"
         classid=\"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000\"
         codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\")
        <param name=\"movie\" value=\"javascript/mediaplayer.swf\"\">
       <!--[literal]--><!--><!----><!--[/literal]-->

        <param name=\"allowfullscreen\" value=\"true\" />
        <param name=\"allowscriptaccess\" value=\"always\" />
        <param name=\"shownavigation\" value=\"true\" />
        <param name=\"flashvars\" value=\"file=https://www.yoursite.com/$url&autostart=true\" />

        (/object)"
    ;
      }

    Please replace the ( ) around the object-tags with < >


    As to make it complete, this is the code at the beginning of "pnmedia_flashapi.php" that enables Mediashare to upload FLV and SWF:


    Code

    function getMediaTypes()
      {
        return array(
          array('mimeType' => 'video/x-flv', 'fileType' => 'flv',
                'foundMimeType' => 'video/x-flv', 'foundFileType' => 'flv'),
          array('mimeType' => 'application/x-shockwave-flash', 'fileType' => 'swf',
                'foundMimeType' => 'application/x-shockwave-flash', 'foundFileType' => 'swf')

          );
      }



    I still don't know how to place this into the code in a way that makes it visible only when the plugin does not exist. Any suggestions?:


    Code

    <p>
                Your browser does not support embedded flash files.
                Please click <a href=\"<!--[$datei.url|pnvarprepfordisplay]-->\">here</a> to download the file you requested.
                <a href=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" title=\"Download Flash Player\" target=\"_blank\">Download Flash Player</a>
        </p>




    edited by: thilowitt, Feb 26, 2008 - 04:54 PM
  • I think that check is usually done by Javascript.

    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the Zikula Steering Committee
    Read The Zikulan's Blog "If you want people to RTFM, make a better FM!"
  • BTW: You can automatically add the base URL with this piece of code:

    Code

    substr(pnGetBaseURL(), 0, -1)


    --
    best regards from Kiel, sailing city

    Steffen Voss

    Member of the Zikula Steering Committee
    Read The Zikulan's Blog "If you want people to RTFM, make a better FM!"

Go to page [-1] 1 - 2 - 3:

This list is based on users active over the last 60 minutes.