Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-12-2007, 10:48 AM   #1
cyril85
Registered User
 
Join Date: Nov 2007
Posts: 27
Default Anybody please help me...

I am not able to spot the end of a video file other than flv.I used the following code.But that too not working..(videoObject is a video object dragged from library...)


videoObject.onStatus = function(o:Object)
{
if ( o.level )
{
trace( "Video Status Msg (" + o.level + "): " + o.code );
}
else
{
trace( "Video Status Error: " + o.code );
}
}
videoObject.play("scrolling_panel.flv");





anybody please help me....
cyril85 is offline   Reply With Quote
Old 11-12-2007, 11:25 AM   #2
mastermind81
Master Mind
 
mastermind81's Avatar
 
Join Date: Apr 2007
Location: Pakistan
Posts: 158
Default

use FLVPlayback --- there is alot of help available on net also on this form
mastermind81 is offline   Reply With Quote
Old 11-13-2007, 05:33 AM   #3
cyril85
Registered User
 
Join Date: Nov 2007
Posts: 27
Default Please help....

I need to use Vedio.play..Anybody please help me to spot the end of a video file....


Thanks a lot..
cyril85 is offline   Reply With Quote
Old 11-19-2007, 06:44 AM   #4
cyril85
Registered User
 
Join Date: Nov 2007
Posts: 27
Default am not able to spot the end of a video file other than flv

I am not able to spot the end of a video file other than flv.I used the following code.But that too not working..(videoObject is a video object dragged from library... and gave the name videoObject )


videoObject.onStatus = function(o:Object)
{
if ( o.level )
{
trace( "Video Status Msg (" + o.level + "): " + o.code );
}
else
{
trace( "Video Status Error: " + o.code );
}
}
videoObject.play("scrolling_panel.flv");





Can anybody solve this.??????!!!!
cyril85 is offline   Reply With Quote
Old 11-19-2007, 12:48 PM   #5
mastermind81
Master Mind
 
mastermind81's Avatar
 
Join Date: Apr 2007
Location: Pakistan
Posts: 158
Default

place ur fla here which will help us to find this issue
mastermind81 is offline   Reply With Quote
Old 11-19-2007, 01:14 PM   #6
xxneon
Super Moderator
 
xxneon's Avatar
 
Join Date: Dec 2006
Location: Amish Country, PA
Posts: 8,570
Send a message via ICQ to xxneon Send a message via AIM to xxneon Send a message via MSN to xxneon Send a message via Skype™ to xxneon
Default

if your using NetStream / NetConnection / Video object for playing your flv's ... you ussually get all the info from the NetStream .. not the Video object..

var nc = new NetConnection();
nc.connect(null);
var ns = new NetStream(nc);
videoObject.attachVideo(ns);
ns.onMetaData = function(obj){...};
ns.onStatus = function(obj){...};

http://livedocs.adobe.com/flash/8/ma...=00002553.html - Docs on NetStream

but all this info is found in Flash Help as well..
__________________
Always optimizing...
xxneon is offline   Reply With Quote
Old 11-20-2007, 06:02 AM   #7
cyril85
Registered User
 
Join Date: Nov 2007
Posts: 27
Default I need to use video.play()

I cannot use netstream since i want to play all device supported formats other than flv.Actually my problem is i am not able to spot the end of a video file which i am playing.I tried to get the status using onStatus.But that too not working.I am placing the fla file with this post.


Thanks to all who has visited my post...thanx a lot...
Attached Files
File Type: zip localvideo.zip (5.6 KB, 212 views)
cyril85 is offline   Reply With Quote
Old 11-20-2007, 01:20 PM   #8
xxneon
Super Moderator
 
xxneon's Avatar
 
Join Date: Dec 2006
Location: Amish Country, PA
Posts: 8,570
Send a message via ICQ to xxneon Send a message via AIM to xxneon Send a message via MSN to xxneon Send a message via Skype™ to xxneon
Default

are you trying to load the 3gp file using the pre-release of the flash player??

becuase as of right now .. Beta Update 3 is the only version that i found can run other file formats other then FLV.. and it also says you use the NetStream api to do it..

http://www.kaourantin.net/2007/08/wh...on-web_20.html
Quote:
You can load and play .mp4,.m4v,.m4a,.mov and .3gp files using the same NetStream API you use to load FLV files now.
__________________
Always optimizing...
xxneon is offline   Reply With Quote
Old 11-22-2007, 06:31 AM   #9
cyril85
Registered User
 
Join Date: Nov 2007
Posts: 27
Default please help me..

I cannot use netStream for some reasons..Please help me how to find the end of a video file using video.play()
cyril85 is offline   Reply With Quote
Old 11-22-2007, 03:44 PM   #10
xxneon
Super Moderator
 
xxneon's Avatar
 
Join Date: Dec 2006
Location: Amish Country, PA
Posts: 8,570
Send a message via ICQ to xxneon Send a message via AIM to xxneon Send a message via MSN to xxneon Send a message via Skype™ to xxneon
Default

the video object doesnt have that kind of functionality.. if you look at flash help on the video object there is only a couple methods and fewer properties..

the only way to do this is with the new Beta version of flash player 9.. the current stable version of Flash Player 9 doesnt have the built in support for other video formats.. hence your issue if your not using the newest beta player.
__________________
Always optimizing...
xxneon 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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FLV file stops playing video and sound Enfilade ActionScript 2.0 7 09-07-2007 08:50 PM
flv player won't even try to load video until after a minute danee987 Flash 8 General Questions 4 08-15-2007 10:03 PM
actionscript to go to next scene after playing flv file luoar ActionScript 2.0 2 05-03-2007 01:19 PM
PLaying a video from an XML file ladyb314 ActionScript 2.0 2 04-03-2007 06:14 PM
Some Flash Video Converter Tools Compare terry117 Detention 7 05-18-2006 02:08 AM


All times are GMT. The time now is 05:05 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.