News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SM2 RC3 - Embed video player for MP4

Started by metro, January 23, 2011, 10:52:03 PM

Previous topic - Next topic

metro

If I want to  embed a youtube I just use a mod that can find the player and video in the URL. For wimp.com they have an Embed code and form many news sources you can just just copy the Object or Embed code and put it between two HTML tags

But often I have a MP4 video I have saved or perhaps a FLV file or a SWF - for SWF I have a player I use but not for MP4 or FLV - actually some players work but do not have a switch to turn off auto start which is not good for a forum as y9ou do not want ti to play every time a topic loads.

Anyway I did searches and cannot find a player listed here but am sure tons of people use a standard MP4 or FLV player to embed in the forum.

I do not need anything fancy - only a switch to set to not play automatically and a full screeen button.  The Free player FLOW works well but think it does nto have a way to turn off autostart - or if ti does it is only for SWF and not MP4.

Here is and example of a free FLV player that works great but no switch


[html]<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="640" height="375" id="FlvPlayer" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="movie" value="http://flvplayer.com/free-flv-player/FlvPlayer.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="000000" />
<param name="FlashVars" value="flvpFolderLocation=http://flvplayer.com/free-flv-player/flvplayer/&flvpVideoSource=http://YOUR ADDRESS/video/hangski.flv&flvpWidth=640&flvpHeight=375&flvpInitVolume=50&flvpTurnOnCorners=true&flvpBgColor=000000"
<embed src="http://flvplayer.com/free-flv-player/FlvPlayer.swf" flashvars="flvpFolderLocation=http://flvplayer.com/free-flv-player/flvplayer/&flvpVideoSource=http://YOUR ADRESS HERE /video/hangski.flv&flvpWidth=640&flvpHeight=375&flvpInitVolume=50&flvpTurnOnCorners=true&flvpBgColor=000000" quality="high" bgcolor="000000" width="640" height="375" name="FlvPlayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
</object>
            [/html]


So if someone can post the switch to make this on not auto start and or post other codes for players to play MP4 and FLV files. -

We can make this a permanent answer if we get one - or if there is already a topic I missed please let me know as everyone should have the simple code to post their own videos easily.

Thanks a lot

ARG01

To keep it from auto plating try changing this line:
<param name="FlashVars" value="flvpFolderLocation=http://flvplayer.com/free-flv-player/flvplayer/&flvpVideoSource=http://YOUR ADDRESS/video/hangski.flv&flvpWidth=640&flvpHeight=375&flvpInitVolume=50&flvpTurnOnCorners=true&flvpBgColor=000000"
<embed src="http://flvplayer.com/free-flv-player/FlvPlayer.swf" flashvars="flvpFolderLocation=http://flvplayer.com/free-flv-player/flvplayer/&flvpVideoSource=http://YOUR ADRESS HERE /video/hangski.flv&flvpWidth=640&flvpHeight=375&flvpInitVolume=50&flvpTurnOnCorners=true&flvpBgColor=000000" quality="high" bgcolor="000000" width="640" height="375" name="FlvPlayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />


To this:
<param name="FlashVars" value="flvpFolderLocation=http://flvplayer.com/free-flv-player/flvplayer/&flvpVideoSource=http://YOUR ADDRESS/video/hangski.flv&flvpWidth=640&flvpHeight=375&flvpInitVolume=50&flvpTurnOnCorners=true&flvpBgColor=000000"
<embed src="http://flvplayer.com/free-flv-player/FlvPlayer.swf" flashvars="flvpFolderLocation=http://flvplayer.com/free-flv-player/flvplayer/&flvpVideoSource=http://YOUR ADRESS HERE /video/hangski.flv&flvpWidth=640&flvpHeight=375&flvpInitVolume=50&flvpTurnOnCorners=true&flvpBgColor=000000" quality="high" bgcolor="000000" width="640" height="375" name="FlvPlayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer&autostart=false" />
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

metro

Thanks  but as far as I see you only added  -- autostart=false to the Adobe flash player lien and this is not adobe but FLV player. For it I have tried all the usual switches in and outside of Object and they do not work.  _ I do see that this player now supports MP4s

I tried this switch as ti is on their website

<param name="autoStartMovie" value="false" /> and
<param name="AutoStart" value="false" />


and outside of parameters I tried 
AutoStart="false" autoStartMovie="false"

I wil write the company as I think that thses switches only work within java script and that will not work in SMF

I am sure there are other players  - just have not found one yet


ARG01

Just a thought. Try this:
<param name="FlashVars" value="flvpFolderLocation=http://flvplayer.com/free-flv-player/flvplayer/&flvpVideoSource=http://YOUR ADDRESS/video/hangski.flv&flvpWidth=640&flvpHeight=375&flvpInitVolume=50&flvpTurnOnCorners=true&flvpBgColor=000000&autostart=false"
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

metro

thanks G1 - if you tried you see it does not stop auto start - I wrote a ticket to the company yesterday so will see if they respond.

They have clear switches for the java script but as far as I know the SMF has not yet advanced enough to  work with javascript - maybe there is an addon I have not seen

ARG01

Must be something else then. I have used FLV players before and the &autostart=false has always worked for me.

Sorry I couldn't help. Good luck.  ;)
No, I will not offer free downloads to Premium DzinerStuido themes. Please stop asking.

metro

The company let me know

"The flvpAutoStartMovie flashvar will only work with the purchased version of FLV Player, not the Free version."

Maybe someone knows of another free player for MP4 that works in SMF?



metro

So the FLVplayer is $65 to have it not auto start - I know about JW player but it uses java

However today I found there is a plugin for it

http://custom.simplemachines.org/mods/index.php?mod=2529


This is great as it ads a code button and you only have to change size if you want and supply the video file address

This is really nice

Adish - (F.L.A.M.E.R)

You can possibly have a look at Aeva or AeMe mod and set it according to your needs.

Do you require any further assistance with this?

metro

Thanks as I said below I found the free JW player plugin and it works great  - for this is is better than Aeva

Adish - (F.L.A.M.E.R)

Great! :) Nice to hear that.

Marking this solved for you.

Advertisement: