ActionScript 3.0 :: Add Components To Play Video Using It?
May 4, 2009I have a video thats been loaded dynamically with actionscript. I have 3 playback controls got from the components menu, play stop and pause. [code]...
View 4 RepliesI have a video thats been loaded dynamically with actionscript. I have 3 playback controls got from the components menu, play stop and pause. [code]...
View 4 RepliesI need to play preview video first, before starts play any other video. I am using jw player
View 1 RepliesI have an FLV file, provided by the videographer. I put in a folder for the web. By looking at my other FLV files, they have support files included (a SWF for the skin, and a SWF for the player, along with an HTML page where it is embedded on).So, as this FLV file did not have these support files, I have copied and pasted the others to go with my new FLV. What else do I need to do to make it play on the HTML page on the web?I checked the code on the HTML page, and it merely calls up one of the SWFs so should be OK with that.Do I need the videographer to give me a FLA where the movie was imported to, or is this not necessary? I'm wondering if I need the FLA so that I can re-define the content path? Is this the only thing I need to get all components to work together and play in the browser?
View 1 RepliesI have been trying for days to write my own custom NCManager class that allows us to connect to a Limelight stream. We have to issue a NetCOnnect.call() that has the command "FCSubscribe" and the stream name. I've written a 100% custom player(url...) (have to register!) but what I want to to resolve that player with the video-on-demand player(url...) into a single Flash project.I want to allow our Graphics guys (aka Flash developers) to be able to use the standard Adobe FLVPlayback components and skins and also be able to p lay back files, streaming content and Limelight content. To this end I thought that writing a custom NCManager class would be the way to go.
I have 99.9% succeeded: my class gets the connectToURL(),connects to Limelight, subscribes and all is well but I am really really stuck now on how to tell the FLVPlayback component that it .can start playing back now that the stream is connected.FLVPlayback and VideoPlayer parts appear to be AS2 and I cannot call the rtmpStatusInfo() function on the VideoPlayer part to tell it that it is good to go.I am so close I can taste it: If I create a NetStream object and play() it, I can hear the content to I know that if I could only get the FLVPlayback / VideoPlayer dynamic duo to playback then the job would be done.
I have attached the code, warts and all in the hope that either somebody has done this before or can tell me what I have misunderstood about the internal state-machine / FSM logistics that VideoPlayer et al implement.By reading the source code and my debugging statements I can see that I have maneuvered it towards the ultimate goal of playback but I don't know how to make that final step.
PS: I *know* that reconnect() is non-functional but if I uncomment the call all it does is go around the loop again; the real problem is I cannot tell the VideoPlayer that it can play (via rtmpStatusInfo) the data etc
PPS: The meta-data related stuff *only* gets called if I uncomment the NetStream code; this was to check that I had a valid playback stream, which I do at that point.
I am working on this project I am doing for my video player application. Everything works except the list component which is supposed to be filled dynamically by xml labels.
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?
Do you know any flex component with the functionality such as horizontally collapsible window or panel I found arc90, but it folds vertically.
View 1 RepliesI am created a dynamically adding a VBox, that contains two images. Into a Custom Component that is derived from UIComponent. The problem is the Vbox that contains the two image is only a really tiny size. I would like the VBox stretch to the size of the two images. This is how I am creating the Vbox....
[Code]...
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.
Is it bad practice/design to nest components inside components using Flex 4? Should I simply be creating components and inserting them into my main application as below, or doesn't it matter?
<com:MyComp1>
<com:MyComp2>
<com:MyComp3>
[code]....
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 Replieshow i can use actionscript component code in mmxl components,as in actionscript components we use classes ,but in mmxl component we can not use classes function, so how i can use actionscript component code in mmxl component
[Code]...
but i cant use this code in mmxl components how i can use public class DialogTitle extends HBox implements IBindingClient in mmxl component code,what are the way to use it,sorry i am newbie if it is silly question
view 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 RepliesI can view my flv.video that's called when I test my movie locally. When I put my files up on another server I can't get my FLV video to play. I do get the component skin to show with the scrub bar moving like an old "barber pole" (horizontally) but no FLV plays. I think I've tried everything to get this to work. I must be missing something.[URL]..
View 3 Replies