flash video player on web page

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Monopoly
Forum Commoner
Posts: 41
Joined: Wed May 21, 2008 1:19 pm

flash video player on web page

Post by Monopoly »

I made a swf animation file with a player , like on youtube and I want to add it to my site , but when I add it with the following code , the are where the player should be turns white while the whole swf file downloads , I expected it to load at first the buttons and then progressivly load the movie (just like on youtube). Is there a solution ??


I add the following

<object classid="clsid:D697CDE7E-AE6D-11cf-96B8-458453540000"
codebase="http://active.macromedia.com/flash4/cab ... on=4,0,0,0"
id="animation name" width="468" height="60">
<param name="movie" value="animationname.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">

<embed name="animationname" src="animationname.swf" quality="high" bgcolor="#FFFFFF"
width="468" height="60"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/dow ... kwaveFlash">
</embed>
</object>
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: flash video player on web page

Post by omniuni »

There is, but it's in Flash, I'm afraid. If you want something simple and fast, like youtube, try Flowplayer, it's open source, and quite awesome.

Otherwise, you'll need to add a "loading..." animation, or somehow tune the SWF to load progressively.

Good Luck!
Monopoly
Forum Commoner
Posts: 41
Joined: Wed May 21, 2008 1:19 pm

Re: flash video player on web page

Post by Monopoly »

hey , thanks for yer' suggestion. I used once to think that flowplayer would be my solution but when I downloaded I got a bunch of some odd files with no reference. Is there any simple tutorial on flowplayer except the one I found on the flowplayer site?
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: flash video player on web page

Post by omniuni »

Code: Select all

<object type="application/x-shockwave-flash" data="FlowPlayer.swf" 
        width="320" height="262" id="FlowPlayer">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="movie" value="FlowPlayer.swf" />
        <param name="quality" value="high" />
        <param name="scale" value="noScale" />
        <param name="wmode" value="transparent" />
        <param name="flashvars" value="config={videoFile: 'content/turner_letter.flv', loop: false, showMenu: false,}" />
</object>
Placing the flowplayer *.swf in the same folder as the one from which you wish to serve the video, the only attributs you should have to change are the size, and the videoFile argument in the Javascript.

The newer tutorials on the Flowplayer website are also pretty good, if you just read through them and follow the directions.
http://flowplayer.org/player/quick-start.html

If you have any other questions, go ahead and post them. I've used flowplayer a decent amount, so hopefully I can help you get it working.

Good Luck,
OmniUni

Image

P.S. I really need to find a good source for emoticons. :(
Post Reply