Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-05-2005, 04:20 AM   #1
egoldy
Member
 
egoldy's Avatar
 
Join Date: Nov 2004
Posts: 71
Send a message via MSN to egoldy
Default how to create custom flash video(flv) player

how to create custom flash video(flv) player like FI?
who can give me some free tutorials ?

Thanks a lot.
egoldy is offline   Reply With Quote
Old 01-05-2005, 04:45 AM   #2
blob
Registered User
 
blob's Avatar
 
Join Date: Dec 2004
Posts: 22
Default

i don't know what FI is, are you interested in progressive video (downloading file and playing it) or streaming file using flash streaming server, where only playing part gets loaded and whole movie is not stored on user's computer.
blob is offline   Reply With Quote
Old 01-05-2005, 01:36 PM   #3
egoldy
Member
 
egoldy's Avatar
 
Join Date: Nov 2004
Posts: 71
Send a message via MSN to egoldy
Default

FI is http://www.fantasy-interactive.com

please check out.you will know what i mean.
egoldy is offline   Reply With Quote
Old 01-05-2005, 02:16 PM   #4
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

I have no idea where to click to see that video player... Hm...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 01-05-2005, 03:02 PM   #5
devonair
ET3
 
Join Date: May 2004
Location: Sicily
Posts: 332
Default

hey, egoldy,

it would help if you could post what you've tried so far, so folks can see where the difficulty may lie.. In case you've tried nothing, I just copied and pasted this from the help file (always a good place to start):

Quote:
To play back an external FLV file in a Flash document:
1. With the document open in the Flash authoring tool, in the Library panel (Window > Library) select New Video from the Library options menu to create a video object.
2. Drag a video object from the Library panel onto the Stage; this creates a video object instance.
3. With the video object selected on the Stage, in the Property inspector (Window > Properties) enter my_video in the Instance Name text box.
4. Open the Components panel (Window > Development Panels > Components), and drag a TextArea component to the Stage.
5. With the TextArea object selected on the Stage, enter status in the Instance Name text box in the Property inspector.
6. Select Frame 1 in the Timeline, and open the Actions panel (Window > Development Panels > Actions).
7. Add the following code to the Actions panel:
PHP Code:
// Create a NetConnection object
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection
netConn.connect(null);
// Create a NetStream object and define an onStatus() function
var netStream:NetStream = new NetStream(netConn);
netStream.onStatus = function(infoObject) {
  
status_txt.text += "Status (NetStream)" newline;
  
status_txt.text += "Level: "+infoObject.level newline;
  
status_txt.text += "Code: "+infoObject.code newline;
};
// Attach the NetStream video feed to the Video object
my_video.attachVideo(netStream);
// Set the buffer time
netStream.setBufferTime(5);
// Begin playing the FLV file
netStream.play("videoFile.flv"); 
hope that might help get ya started...

d.
devonair is offline   Reply With Quote
Old 01-05-2005, 03:16 PM   #6
kkxpertise
Pooh POwns All.
 
kkxpertise's Avatar
 
Join Date: Sep 2004
Posts: 40
Default

I'd say the same. Did you make your video an flv. yet? lol

Still, for the play and stop buttons, make event handlers that will trigger the NetStream:
for example

playVideo_mc.onPress=function(){
NetStream.play("yourvideo.flv");
}
kkxpertise is offline   Reply With Quote
Old 01-06-2005, 09:26 AM   #7
egoldy
Member
 
egoldy's Avatar
 
Join Date: Nov 2004
Posts: 71
Send a message via MSN to egoldy
Default

hi .
thanks everybody's feedback.

now.here is FI player:
http://www.fantasy-interactive.com/#rr_overview

I have learned the tut from macromedia tuts.and test it on site.here:

http://www.bjhmht.com/videotest/testvideo.html

but I found more problem on it.

how can I add the stream progress bar ,and how can I control the player head like FI.

I use onEnterFrame but it is not works fine.WHY?


my fla :
Attached Files
File Type: zip testvideo.zip (254.0 KB, 5498 views)

Last edited by egoldy; 01-06-2005 at 09:32 AM.
egoldy is offline   Reply With Quote
Old 01-06-2005, 01:14 PM   #8
devonair
ET3
 
Join Date: May 2004
Location: Sicily
Posts: 332
Default

hey, egoldy,

in the help file, look for NetStream.bytesLoaded. If I understand your question correctly, there's an example that's just what you're looking for..

d.
devonair is offline   Reply With Quote
Old 01-06-2005, 03:30 PM   #9
egoldy
Member
 
egoldy's Avatar
 
Join Date: Nov 2004
Posts: 71
Send a message via MSN to egoldy
Default

my english is so bad .

I mean how can i create custom the FLV player like FI flash video player.

for example .
the stream loading progress..
the volume ...
the hight quality, low quality...

I can not find the sample in flash help ..
egoldy is offline   Reply With Quote
Old 01-06-2005, 03:50 PM   #10
Bosworth
~[b{}x]~
 
Bosworth's Avatar
 
Join Date: Oct 2004
Location: Olympia, wa
Posts: 517
Default

if you are using mx 2k4 pro = you may be able to swing the mediaPlayback component - which has many of the features you are looking for built in. (though it has some problems).

I would second the use of the NetStream/NetConnection method. for advanced controls - refer to the NetStream properties in the help section.

b()X
__________________
I dont want the world.
I just want your half.
Bosworth is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:36 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.