ActionScript 1/2 :: Play A Video If Metadata Is Not Available?
Jan 21, 2010is it possible to play a video if metadata is not available with the particular video file.
View 1 Repliesis it possible to play a video if metadata is not available with the particular video file.
View 1 RepliesI am trying to load a video (~ 1 hour long). Everything works fine except that thonMetaData is never firing.
ActionScript Code:
var customClient:Object = new Object();
customClient.onMetaData = onMetaData;
[code].....
I am using Flash Media Server 3 hosted by Influxis.I use to upload flash videos (flv) to view from our company website, which uses Flowplayer.I got a new video which is F4V, but this video is little wierd, It plays well but the duration shows as 3:00:00 (3 hours) which is actually 11minutes 30 seconds.
[Code]...
I'm creating a video player in an environment where stream.bytesTotal isn't available. I need to use the duration metadata encoded in flv files to extrapolate for things such as the play progress, and the time display.
The problem is when loading an flv the metadata, including the duration, fails to be accessed 2 out of 3 times. Here is the function that iterates through the metadata object
[Code]...
I found out that I could only get the metadata of the 1st video I clicked. How does metadata works? It could only load once before the video ends?
Here's some example what I'm doing
//will be adding new video when this function is called
public function set newVideo():void
{
videoProperties();
[Code].....
I tried to load all the metadata at once, but seems like it needs the video to be play only it will manage to get the metadata.
I have over 1200 videos in our catalog that were somehow transcoded with a missing duration, assigning it a value of 0 - the data rate is also 0. How do I determine the video duration by another means, with just the .flv file as a resource.
View 0 RepliesI have a FLV player using netstream. I am using metaData to grab the video duration and time. It will grab the total duration time, but I want it to countdown to zero, like iTunes. Basically, the time will play and the duration will countdown to zero at the end of the video. I thought that I could take (duration) - (time played) but it's not working.
[Code]...
I'm having a bit of an issue with a video player I'm building out. I THINK that it might be the encoding process on the backend that's causing this, but I can't be sure. Basically, when loading an .flv from a server, the NetStatus events and onMetaData received doesn't fire until the video is 100% loaded. This is causing some pretty major issues including not being able to play the video until it's fully downloaded (and these videos could be 20 minutes long for all I know).
View 0 RepliesAll this code works properly, however when I include the part which controls the video resize metadata the scrubber stops working... (see the section between the ">>> <<<").
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(2);
ns.onStatus = function(info) {
[Code] .....
I need to play preview video first, before starts play any other video. I am using jw player
View 1 RepliesThe stop button plays as expected. The play/pause button plays as expected. The issue is when you press pause which will cause the play button to appear, then press stop. the video automatically plays and it shouldn't. I have bolded the control button script for convenience.
[Code]...
the player uses a VideoDisplay and i set the source like videoDisplay.source = "sourceStringURL"
and the vid doesn't play until it's fully loaded
Why does my swf's skin referenced by a simple component FLA work locally but NOT live? There's no AS3 in the component FLA. It's just a one-layer component referenced to the the FLV. When I test locally, IN FLASH CS4 ONLY, and click on "Animalia - Verse From the Zoo" the FLV and skin load and the video (source FLV - "Sequence01.flv") plays. But the same thing live only loads the swf for the FLV file area but NO SKIN. Try it yourself, please:Has anyone had this problem and knows the solution? All files are in the SAME FOLDER on the web server. I've tried every URL and path combination I can think of on the website. I've tried referencing the whole URL.
Yet whatever path combination I try, either nothing happens, or I just get the FLV box but no skin. Which is what's happening now. Publish settings are set to Flash Player 10 for all files. And I've tried the component SWF WITH and WITHOUT the fl.video package (import fl.video.*. No difference. Why does the skin load and play locally but not live? It's all AS3. No AS2. And it does not seem to be a "publish settings" issue as far as I can see. The relevant code in my API is:
var AnimalFLVLoader:Loader = new Loader();
AnimalFLVLoader.contentLoaderInfo.addEventListener (MouseEvent.MOUSE_DOWN,fAnimaliaVOn);
Animalia2.addEventListener(MouseEvent.MOUSE_DOWN, fAnimaliaVOn);
[code].....
I have a project where I am bringing in one video with a cue point at the very end with the name of "End." I'm trying to have the next video play when the first video reaches that cue point. I keep getting this error: 1046: Type was not found or was not a compile-time constant: MetadataEvent. Here is the relevant code I believe:
[Code].....
I am wanting to play a number of movie clips and flash produced video clips. On the main timeline I have a frame for each clip I want to play. In that frame is a flash movie that contains the video that I have embedded onto the timeline for the movie. The filesize for this project is massive and I am struggling to work on the file. I want to be able to play the video files with the playback component in each of the frames where the video was.
[Code]...
I was wondering how I can delay (2 seconds) a video to play in a Flash Video Player? I know one way is for me to add blank frames but I would like to know some other options.
View 2 RepliesHow can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?
This is my code:
Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
[code]....
I have created my first flash video and wish to allow the visitors to play the movie themselves instead of having the movie play automatically also have a stop or pause button too.
View 2 RepliesI want to play smooth streaming video from IIS using the flash video player like e.g. jw flash player instead of silverlight player?Which video format should I use in this case? Can flash then play e.g a video via smooth streming encoded with microsoft encoder?Do you know some alternative video players, that combines flash and silverlight functionality (selected per java script) to use with flash and silverlight?
View 1 RepliesHow can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?
This is my code:
Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var desc:Array = new Array();
[Code]....
I would like to refine my code to play the first video when it is on the last item of the xml. So far, the code
Actionscript Code:
setupvideo(_global.file[i + 1],i + 1); _root.iinfo.tag.tagTxt.htmlText = _global.info[i + 1];
[code]....
I have 1 flv with only 12 seconds of audio. another flv that is 10 seconds with only video another flv that is 2 seconds with only video Lets assume both video files are as long as my audio file. Which actionscript commands should I look further into to: 1. play audio simultaneously with video 2. play the 2 second video smoothly/seamlessly after the 10 second video is over as if it were a 12 second vide 3. if my audio or video were mp3/wma instead of flv would I run into trouble 4. I imagine a flash media server would be mandatory if my videos were other formats like avi/mpg and had to encode on the fly
View 1 RepliesI need to play the 3 video files in a video player. The files should execute one after the other in the flash video player and the files will be allocated dynamically from database.
View 1 RepliesI want to play FLV video in a flash video player, and at the end of the buffering I want to access the data (video data, or buffered file) so I can manipulate it. For exemple in a ByteArray format so I can save it to local disk... With the NetStream and NetConnection I can play the video without problem, but I can't find a way to access the data. using the URLStream, I can download the video file [URL], and I can access the data I want but I can't play it?
Is there a way to play the URLStream, or to get data from the NetStream?
Or may be, I can access the cache of the browser to get the bufferd data played by NetStream?
I just updated to CS5 - I'm working on a custom video player. It works fine embedded in a web page both locally and on the network. It works fine in the debug player. However, when I test it in the authoring player I get a NetStream.Play.StreamNotFound error and no video. I have tried setting the Local Playback Security publish settings to both local and network - doesn't find the video either way.
It used to run fine in CS4 in the authoring environment.
i want to know if it is possible to play a video via flash player, when the video is located on different server's mysql. for example: i want to play video on [URL] which(video) is located in [URL] mysql
View 1 Repliesview my video: http://media.*************.com/v/test/video_player.html
After clicking the play button, the video starts to load, but won't play until it fully loads. I would like the video to start playing as it is loading.
I'm working on a Flash file here and am having a bit of trouble getting it to do what I'd like. Basically, the file has 3 sections:1) The main content and a Play button (I've got this made and working)2) The video itself that plays when you click the play button (I've also go this taken care of)3) After the video plays, I need to to go to another frame or scene that is different from the first.Is there a way to do this? I've been Googling for a while now but I keep coming up empty.
View 3 RepliesContinue to struggle getting my video to work online. I've worked with the Component Inspector now to get the path problem solved.Now the HTML file plays from my jump drive and from any hard drive. I used Dreamweaver to load up the folder with everything in it (works greatoff both the jump and different configurations of hard drive so I believe the pathproblem is solved). It still won't play though. I must be missing something...driving me nuts (Flash Pro CS4).[URL]
View 1 RepliesI have created a DVD, in Encore, with links to PDFs. Of course, when they click on the link to the PDF, it tells them to play the disc in their DVD-ROM player. For the computer side of the disc, I have created a Flash file that looks exactly like the DVD menus, except it will open the PDFs. When I put the DVD into a computer, it always opens the DVD video first. I would like it to open the Flash exe, first. Opening the DVD video will probably confuse the user since it will tell them to play the DVD in a computer DVD-ROM player, which they already are playing it from the PC. I have an Autostart file. Is there something else that I need to do, to get the Flash to play first, or is this a setting on the computer?
View 2 Replies