Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to stream media using flash applet

Status
Not open for further replies.

JASONE25

Technical User
Jun 23, 2005
54
NL
Hi experts. I be happy if some one explain to me how i can stream media using flash applet. I have seen website that they use appplet such as :

Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"[/URL] width="171" height="30">
        <param name="movie" value="loadomid.swf">
        <param name="quality" value="high">
        <embed src="loadomid.swf" quality="high" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL] type="application/x-shockwave-flash" width="171" height="30"></embed></object></td>

could any explain me how i can stream my own media like this .I could not find any tutorial to teach me since i do not know the seach term.Thanks
 
Thanks for u reply.Well some AVI/.mov files and may be mp3.Thanks
 
mp3 is easy:
Code:
my_sound = new Sound();
my_sound.loadSound("url",true); //true means stream
my_sound.setVolume(100); //100 is max
my_sound.start(); //start playback
put that on a frame in the actions panel on the timeline.

Not to sure about how to stream video.

Regards,

Martin

Computing Help And Info:
 
my_sound.start(); //start playback

When loading a "streaming" sound, it starts on it's own when enough has buffered (5 seconds...), thus using the above is useless until the file is cached.

Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
Hi Jasone,
The code you've included in your original post is merely used to embed an SWF file into the HTML of your web page.
Streaming video media such as .avi and .mov files through flash is not possible instead Flash uses its own format called FlashVideo or .FLV to get around problems with file size and codec issues.
FLV's can only be streamed using Flash Communication Server technology but this is expensive and requires a dedicated server with this software installed.
There is, however another way. In recent releases of Flash (MX2K4) 'progressive download' is now available which can be run from any web server. This offers the same benefits as FLV streaming media but without the need for FCS.

To stream video files through Flash you will have to import them into flash and then export them using the Sorenson spark plugin to FLV format whilst ensuring that the file sizes are suitable for streaming over the net.
Alternatively I use Sorenson's own stand-alone app called 'Squeeze' which offers the same FLV export features as Flash with arguably more control over the output file.
Once your videos have been converted they will be displayed through the 'Media Display Component'.

For a good example of FLV in action and the possiblities it offers, have a look at Macromedia's own Video Gallery at:
and for ideas of how to use FLV creatively definitely look at Vodafone's much acclaimed Future Vision site:
paying special attention to the wrist band communicator.

Flash also offers a breakdown of its Video Gallery for your reference purposes.

There's a lot of info. here for you to look over and research but check it out and see about FLV and the possibilities it offers developers for creative communication in a cross-browser compatible environment.

Hope this was of help,
DigiPencil. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top