| Author |
|
stoem Big Kahuna

stoem == Stefan
Joined: 05 January 2004 Location: United Kingdom Posts: 1079
|
| Posted: 19 March 2004 at 17:18 | IP Logged
|
|
|
post any questions about this tutorial here
__________________ Flashcomguru.com
|
| Back to Top |
|
| |
str_kani Flashcom Newbie


Joined: 29 June 2004 Location: India Posts: 8
|
| Posted: 24 August 2004 at 11:29 | IP Logged
|
|
|
hi,
This tutorial was useful,How can I auto play the video.
-kani
__________________ Best regards,
Kani.
Something is better than nothing.
Keep giving ideas to others.
|
| Back to Top |
|
| |
XDude Flashcom Newbie

Joined: 24 November 2004 Location: Canada Posts: 5
|
| Posted: 25 November 2004 at 15:53 | IP Logged
|
|
|
Okay, it's time for some stupid questions!
Quote:
| In the parameters for this component delete the entry 'video' from the Default Stream Name. Even though when we set the video later in Actionscript deleting this isn't important yet just good practice. |
|
|
When does the tutorial do this? In the "myConn.connect" line?
Quote:
| NOTE: because we are using a component we will need to include the main.asc file that has "load ("components.asc"); |
|
|
I don't have a "main.asc" file anywhere on my machine, but I do have a "components.asc" - is the above bold text missing a quotation mark at the end, or...?!
"Include" - what does this mean: copy the file to a certain folder or use #include?
Edited by XDude on 25 November 2004 at 15:54
|
| Back to Top |
|
| |
whee1206 Flashcom Newbie

Joined: 18 February 2005 Location: United States Posts: 3
|
| Posted: 18 February 2005 at 16:43 | IP Logged
|
|
|
I need a little help. I followed the tutorial and my swf seems to be
connecting to the server. It will load the first frame of my flv video into
the VideoPlayback but that is it. It won't play the video. Any ideas about
what I might be doing wrong?
|
| Back to Top |
|
| |
XDude Flashcom Newbie

Joined: 24 November 2004 Location: Canada Posts: 5
|
| Posted: 18 February 2005 at 17:15 | IP Logged
|
|
|
I ended up just making my own from scratch. :)
pff... components... :P
|
| Back to Top |
|
| |
whee1206 Flashcom Newbie

Joined: 18 February 2005 Location: United States Posts: 3
|
| Posted: 18 February 2005 at 18:20 | IP Logged
|
|
|
XDude
did you ever get your streaming video to work using this tutorial?
|
| Back to Top |
|
| |
XDude Flashcom Newbie

Joined: 24 November 2004 Location: Canada Posts: 5
|
| Posted: 18 February 2005 at 18:24 | IP Logged
|
|
|
Nope! Asked my questions, got no replies... Made my own. :)
(And if you want the source code - I'm sorry, but I don't think my company would like that.)
|
| Back to Top |
|
| |
whee1206 Flashcom Newbie

Joined: 18 February 2005 Location: United States Posts: 3
|
| Posted: 18 February 2005 at 19:39 | IP Logged
|
|
|
If you can't let me see your source code, do you know of any good
tutorials for how to get my first streaming video working?
Any suggestions would be helpful. Thanks.
|
| Back to Top |
|
| |
XDude Flashcom Newbie

Joined: 24 November 2004 Location: Canada Posts: 5
|
| Posted: 18 February 2005 at 20:28 | IP Logged
|
|
|
Aww poop. During my search, I only bookmarked 2 pages... :(
BUT!
Here's the code from an earlier-version test of mine. Put the following on frame 1 of your main timeline:
Code:
// Create a NetConnection instance:
var conn_nc:NetConnection = new NetConnection();
// Create a local streaming connection:
conn_nc.connect(null);
// Create a NetStream instance
var stream_ns:NetStream = new NetStream(conn_nc);
// Retrieve meta data
stream_ns.onMetaData = function(obj) {
output = "stream_ns ::: onMetaData"+newline;
output = output+"duration: "+obj.duration+newline;
output = output+"videodatarate: "+obj.videodatarate+newline;
output = output+"audiodatarate: "+obj.audiodatarate+newline;
output = output+"----------------------------------------------";
};
// Attach the NetStream video feed to the Video object:
my_video.attachVideo(stream_ns);
// Begin playing
stream_ns.play("test.flv");
stop(); |
|
|
Create a dynamic text field (multiline) on the stage, with the variable name output.
Create a new Video (in the Library) and drag it on the stage, giving it the instance name my_video.
Make sure you have a test.flv in the appropriate folder.
Voila!
|
| Back to Top |
|
| |