ImediaseeUvaultCDNInfluxis
FlashComGuru
 
 

  Active Topics    Memberlist    Search    Help
  Register  Login
Tutorial follow ups
 Flashcomguru Forums | Tutorial follow ups
Subject Topic: Using VideoPlayback without simpleConnect Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
stoem
Big Kahuna
Big Kahuna
Avatar
stoem == Stefan

Joined: 05 January 2004
Location: United Kingdom
Posts: 1079
Posted: 19 March 2004 at 17:18 | IP Logged Quote stoem

post any questions about this tutorial here

__________________
Flashcomguru.com
Back to Top View stoem's Profile Search for other posts by stoem Visit stoem's Homepage
 
str_kani
Flashcom Newbie
Flashcom Newbie
Avatar

Joined: 29 June 2004
Location: India
Posts: 8
Posted: 24 August 2004 at 11:29 | IP Logged Quote str_kani

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 View str_kani's Profile Search for other posts by str_kani
 
XDude
Flashcom Newbie
Flashcom Newbie


Joined: 24 November 2004
Location: Canada
Posts: 5
Posted: 25 November 2004 at 15:53 | IP Logged Quote XDude

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 View XDude's Profile Search for other posts by XDude
 
whee1206
Flashcom Newbie
Flashcom Newbie


Joined: 18 February 2005
Location: United States
Posts: 3
Posted: 18 February 2005 at 16:43 | IP Logged Quote whee1206

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 View whee1206's Profile Search for other posts by whee1206
 
XDude
Flashcom Newbie
Flashcom Newbie


Joined: 24 November 2004
Location: Canada
Posts: 5
Posted: 18 February 2005 at 17:15 | IP Logged Quote XDude

I ended up just making my own from scratch. :)


pff... components... :P
Back to Top View XDude's Profile Search for other posts by XDude
 
whee1206
Flashcom Newbie
Flashcom Newbie


Joined: 18 February 2005
Location: United States
Posts: 3
Posted: 18 February 2005 at 18:20 | IP Logged Quote whee1206

XDude

did you ever get your streaming video to work using this tutorial?
Back to Top View whee1206's Profile Search for other posts by whee1206
 
XDude
Flashcom Newbie
Flashcom Newbie


Joined: 24 November 2004
Location: Canada
Posts: 5
Posted: 18 February 2005 at 18:24 | IP Logged Quote XDude

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 View XDude's Profile Search for other posts by XDude
 
whee1206
Flashcom Newbie
Flashcom Newbie


Joined: 18 February 2005
Location: United States
Posts: 3
Posted: 18 February 2005 at 19:39 | IP Logged Quote whee1206

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 View whee1206's Profile Search for other posts by whee1206
 
XDude
Flashcom Newbie
Flashcom Newbie


Joined: 24 November 2004
Location: Canada
Posts: 5
Posted: 18 February 2005 at 20:28 | IP Logged Quote XDude

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 View XDude's Profile Search for other posts by XDude
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.6
Copyright ©2001-2003 Web Wiz Guide


   all contents © Flashcomguru.com - Flash® is a trademark of Adobe® 1995-2007