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.
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Postnuke Video Module Needed
-
**unknown user**
- Rank: Freshman
- Registered: Mar 16, 2002
- Last visit: Mar 10, 2008
- Posts: 68
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.
-
- Rank: Team Member
- Registered: Jan 05, 2003
- Last visit: May 28, 2010
- Posts: 775
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 -
- Rank: Software Foundation
- Registered: Sep 03, 2002
- Last visit: May 09, 2010
- Posts: 909
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!" -
- Rank: Freshman
- Registered: Dec 31, 1969
- Last visit: Apr 13, 2010
- Posts: 62
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 -
- Rank: Software Foundation
- Registered: Sep 03, 2002
- Last visit: May 09, 2010
- Posts: 909
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!" -
- Rank: Software Foundation
- Registered: Sep 03, 2002
- Last visit: May 09, 2010
- Posts: 909
BTW: You can automatically add the base URL with this piece of code:
Code
--
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!"
- Moderated by:
- Support
