javascript in posts (for specific forum)
#21
Alright, this got me a little bit further to a solution. With the new if's posted above the player keeps working correctly in Firefox (no white video area to the left of the video which happend with the older if code), but when using IE 7 with flash 10 it still 'loads' a white square with the "movie not loaded..." if you right click Confused
Reply
#22
I've been spending some hours trying to get this thing to work, but IE keeps refusing. This is what I get referred to at other websites: http://code.google.com/p/swfobject/wiki/documentation

What I understand is this (from "How to embed Flash Player content using SWFObject static publishing"), it should look something like this:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420"><param name="movie" value="myContent.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420">
<!--<![endif]-->
<p>Alternative content</p>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
I tried implementing this basic idea in the code I use, both with the "if" parts quoted from the code.google page and both the "if" code posted above by Tom. So it looks something like this:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="400" height="300">
<param name="movie" value="player.swf" />
<param name="quality" value="high" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="file=http://www.arma2.nl/data/videos/trailer1.flv" />
<!--[if IE]>
<object type="application/x-shockwave-flash" width="400" height="300"><param name="movie" value="player.swf" />
<param name="quality" value="high" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="file=http://www.arma2.nl/data/videos/trailer1.flv" />
</object>
<!--<![endif]-->
<embed src="http://www.tangodown.nl/global/mediaplayer/player.swf" quality="high" allowfullscreen="true" allowscriptaccess="always" flashvars="file=http://www.arma2.nl/data/videos/trailer1.flv" width="400" height="300" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
<!--[if IE]>
</object>
<!--<![endif]-->
</object>

But it still doesn't work in IE. I tried several combinations but for some reason I can't manage to build it correctly Sad Any other ideas?
Reply
#23
(02-07-2009, 07:14 PM)zoog Wrote:
(02-07-2009, 07:07 PM)Doobie Wrote: Why not just use this plugin to allow embedded videos in post. http://community.mybboard.net/thread-43339.html
Because I'm hosting the videos on my own account. I don't want to use a 3rd party for the video hosting.

If you enable the players (are the first ones in vlink_sites.php and are not enabled, you can stream whatever you want). Toungue If you don't know how to so it let me know and I will do it for you.
Reply
#24
I don't understand. As I understand that plugin can import from video websites which already have their own player. Can I use that plugin to load .flv files that or on my own webserver and play it with a player that is also installed there?
EDIT:
I think it shouldn't be so hard to get such a popular player viewable in both IE en FF. I don't understand why it's so hard... Sad

Personally I'd prefer to steer away from Plugins because many videos will be used as content for several websites which will be taken from the forum and displayed within the websites. With simple MyCode I can prevent problems when new versions of MyBB are released and the plugin is not optimized for the new version (breakin a lot of content on several websites).
Reply
#25
(02-28-2009, 10:47 AM)zoog Wrote: I don't understand. As I understand that plugin can import from video websites which already have their own player. Can I use that plugin to load .flv files that or on my own webserver and play it with a player that is also installed there?

Yes it what I was saying, You can play (but only from the domain that forum is installed) whatever video and audio file.
Will play: .flv, .swf, .mov, .ram/rm, .wmv/.wma, .avi and whatever divx files.

For your second post, the plugin will be updated, and MyBB has to change too much for the plugin not to work. The revision 0.1 of the plugin works very well with MyBB 1.2 you will miss some of the features (like max number of the video files) but will do what you want to do.
Reply
#26
Does it also work on add-on domains? The video files are located on different add-on domains which use the same hosting account. But the url to the specific video file varies.

I installed 0_9_1 to see how it works and to test it, but can't seem to find any documentation on how, when it is installed, you can show a video. What should I do to test a video on my own hosting account (.flv)?
Edit: nevermind, I found out that in my code, the part that IE uses, the player.swf wasn't correctly located. Only the FF & other browsers part was located to the correct player file.

It works now Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)