Flash - Play A Single NetStream But Show Different Parts Of It On Different Video Objects?
Jan 19, 2011
I have 3D videos encoded with each eye's content side-by-side on each frame. What I want to do is take the left-half and over-lay it on the right-half. (I'll then change with the colors and the overlaying so that someone with blue-cyan 3D glasses can view the video).
I tried to attach a single NetStream to two video objects and offset them, but that only let the stream play on one object.
I'm trying to attach a single NetStream Object to two separate Video objects instead of pulling redundant streams from the server. The expected behavior would be for both Video's to display the same content. However, it seems that the last video I attach the NetStream to is the only Video that will display the content.Has anyone else run into this? I'd rather not go to the inelegant steps of using BitmapData to clone pixels if I don't have to.
I'm using the netstream and video object to play a video in flash. Specifically a mp4 video.
What I'm trying to do is start playing the file from a specific position (Ex. 20seconds).
However with netstreamObject.seek(20) doesn't work unless the stream has been loaded past 20seconds. Is there a way to specify starting to load at 20s? Or any other way of accomplishing this?
I have a project I'm working where I need a single media player to be able to play either audio or video depending on what gets passed (flv or m4a).
PHP Code: ExternalInterface.addCallback("playMedia", playMedia); // The way a/v gets changed is from a dropdown menu in the HTMLvar av:String; / The param that gets passed to my playMedia function which will determine if its audio or video var nc:NetConnection = new NetConnection();nc.connect(null);var ns:NetStream = new NetStream(nc);ns.client(this); [Code] .....
How do I add the audio to the container in such a way that it 'replaces' the video that's in the container? I may want to add a static image as a visual representation.*/ ns.play(av); }}
I want to crop a video and have part of it play somewhere else. Is it possible to do this, possibly by extending Video or MovieClip and changing how it draws?
The 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.
I'm using netstream to show a video in .flv.Over this video I need to show a couple of short animations, and when they play, I need to paus the long video so it doesn't plays in advance in the background.I've got this script to pause the movie:
Code: btnPlay.onRelease = function () { ns.pause(); }
But how do I apply it so that when the timeline hits a certain frame, it calls it. I mean, the user can't really know when to stop to see the animations, so it has to be done at a specific time.
I'm interested in making a stereoscopic player similar to YouTube's 3D Player. The first strategy I tried is having two streams (one for each eye) attached to two video objects, but I noticed that this could lead to problems with them going off sync due to separate buffering issues. So now I'm thinking the way to do it is to encode the two eyes side-by-side into one video, and do some Flash trickery whereby I can take the left side and overlay it with the right side.
I suspect that this is how YouTube does this, because they ask you to upload 3D videos in a side-by-side format in the first place. I don't know how to do that Flash trickery, where I essentially take a video's left-half and overlay it with it's right-half. I tried attaching one stream to two video objects that were offset from each other, but only one of the streams played.
I am trying to build a video player in flash that would be able to play multiple flv's as if it was a single video. I come running to you because I don't really know how to go about doing this. I know how to load in an flv and play it, but I want to load in say 3 flv's and play them, the thing I'm stuck on is, do I need to create multiple net streams?
How can I tell the swf to start loading in the next flv when the first one is 90% loaded...? I see you can play an flv, by passing a url to the play method of the net stream object, but how can i get an flv to be on 'stand by' and load in, and add it when the first flv is at 100% finished playing?
Video broadcast using VLC to flv file. I am using the NetConnection, NetStream and Video to play it in a flash. In Chrome and IE everything works fine, but in Firefox and Opera NetStream often dispatch event NET_STATUS with info.code = NetStream.Buffer.Flush and NetStream.Play.Stop and video is a slowdown.
I'm trying to create an flv player to play a single video from a website. I can't seem to resize the playback window. Altering the width just seems to move the same small window around the screen.
Ideally I'd like it to go full-screen or at least fill the browser window. However, I don't even seem to have basic control at the moment. What am I doing wrong here?
Also, (and maybe this is related), I couldn't import fl.video.* in Flex Builder without placing the component first in my library resource using Flash. Is it possible to bypass this step and import directly in Flex Builder?
I have a movie clip 'Player'.I want to divide the mc into two equal halves p1 and p2 for collision detection (p1 and p2 are joined together physically).i.e. if ball collides with p1, i do something and if ball collides with p2, i do something else.But i dont want to create 2 different players p1 and p2 for that.i want to have something like p1 and p2 are a single movie clip 'Player', but still can be accessed separately.
I'm using OSMF v.95 to handle my video playback. When my streaming videos finish, the following error is triggered:"NetStream.Play.StreamNotFound"I want to be able to re-play the videoor scrub back, but the stream is unusable after that error.I've tested against a few different streams - here is one:
I have created a web application which records users video from webcam and stores.Once the user recorded his video he can previwe it.All the functionalities works good in local but not in internet.In internet when i preview the video it takes long time to play.some times it stops in the middle.Is there any way to play the video smpoothly or show a loading animation when it buffers.
I am using NetStream, NetConnection and Video object to play an mp4 file which is hosted over a web server using http.This is an AIR application and the relevant code is pasted below:
var url:String = <some http url>; connect_nc = new NetConnection(); connect_nc.connect(null);
I used NetStream.play("invalid-live-stream-url") to play an invalid live stream. The other arguments are using default, e.g. start = -2, len = -1.
The menu says that when we use the default "start" and "len" to call "NetStream.play", "Plays the live stream until it is no longer available. If a live stream of the specified name is not found, Flash Player plays a recorded stream until it ends."
However, I do not have a recorded stream on the server that has the same name as the live stream, and I did not get the expected "NetStream.Play.StreamNotFound" error.
I've posted my question on other forum but without success so I couraged myself to ask here too. I've got an application (see image) which consists mainly from two different components. It is media player similar to winamp or so. Two main components are MainPanel and second one Playlist. These contain several other components so MainPanel constains Buttons objects TimeCounter or TrackDescriptionWidnow etc. and Playlist contains AlbumNext AlbumPrev buttons, Display which holds Textfields with names of tracks. So the thing which is most complicated is actually communicatig between some objects. Let's say I click on the track in the Playlist. In fact many objects need data when other one changes its state. When I click NextTrackButton in MainPanel, next songName displayed in the Playlist needs to shine, or if the ShuffleButton is pressed one of the random song will be played. My question is how to communicate between objects that are not in the propagation scope when events occur For example if some object fire an event in the playlist(Component2) only objects that come from Stage through Engine can listen for that event. So objects in MainPanel can not hear dispatched event. I've got many events, many objects listening for some of them, and I ended up with the total mess who is listening for. I register events to my class by public static const EVENT_NAME; and then dispatch it on that occured situtation. I managed to add some events listener to Engine and set bubbling to true, this way Engine can listen for most of the events, but then I have to dispatc new event to the other component to make it listening. Do you know how to communicate properly between differently scoped objects?
I got a bunch of live stream from FMLE, say: "FMLE_channel1", "FMLE_channel2", "FMLE_channel3". And then on the server side, I created several corresponding republished stream called "channel1", "channel2", "channel3".
On periodical basis, we call Stream.get("channel1").play("FMLE_channel1", -1, 10, true) every 10 seconds. Similar things were done on the second channel & third channel.Soon after the above Stream.get("channel1").play() call, I should get the following events in sequence:info :NetStream.Unpublish.Successinfo :NetStream.Publish.Startinfo :NetStream.Play.Resetinfo :NetStream.Play.Start In the above case all are happy. Clients can view channel1, channel2, channel3 well.But then after a while, one of the three channels, in most case it would be channel1, will not be viewable.
With the server trace info, I found that after the Stream.get("channel1").play() call, only the following two events exists:
info :NetStream.Unpublish.Successinfo :NetStream.Publish.Starti.e. I was missing the play.reset and play.start event.I further checked and confirmed that the FMLE was publishing all three channels fine to the server. I was able to view the "FMLE_channel1" from flash clients, but not the republished "channel1". the version is FMS 3.5.0.
How do I make an animation play and pause when I click. Meaning.. I want it to play part the first 10 frames when I click, and then stop. Then when I click again it will play from frame 11 to 20, then I click again it plays 21 to 30.
I have a project where I need to have a video clip play as soon as the SWF starts, and once it's done, the video stops at the end and a prompt to continue appears to transition into another video.I just need to figure out how to handle the video parts of this project, and I need to do this without showing any playback controls on the screan.
Is it possible to have a same Video object ( and perhaps StageVideo) connected to multiple NetStream's objects? It's videoconferencing app, in which all members can speak ( So multiple audio sources) but should not hear themselves (that's why I don't join them in a single stream).
That's what I tried:
ns = new NetStream(nc); ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler); ns.client = this; ns.play(streamName1); ns2 = new NetStream(nc);
Im a beginner at flash video, and have been using the built in FLV component which I can apply actionscript fades to easily. However I don't seem to be able to use them when I use the better method... NetStream. Here is an example fade:
I'm porting in an .flv to Flash for the first time. I created the .flv from an .MP4 using Media Encoder CS5, and then opened a new Actionscript 3 .fla in Flash Professional CS5, clicked File > Import > Import Video. Then selected 'Load external video with playback component'. Everything seems to have imported fine, but when I publish the SWF and import it via Dreamweaver CS5 and preview the page, the video is there, but the controls are not. There's just a white box where the controls should be. Also, the video is out of sync with the audio, which I believe is a problem with Media Encoder, not Flash.
Here are some links:
The page that I'm working on (video at the bottom of the page)
I am building a flash video player with a custom UI, and admittedly I'm not sure exactly what I'm doing. I tried altering a skin, but that always comes out wonky due to whatever coding they use. So I'm altering single video components and putting them in the mc what I want them. It looks great, but the problem is that when video goes to full screen, all of the controls dissappear and I can't figure out how to make them show up. How do I get a movie clip to display on top of the video when it goes to full screen in flash AS3?
I have created a FLV video player using the AS3 flash.media.Video object (not the FLV playback component) and I am trying to listen for meta events and Cue Points embedded in the FLV video but I am not receiving any when I trace the movie. The cue points are not being created dynamically, they are in the FLV video.
Video embed code: // Initialize net stream nc = new NetConnection(); nc.connect (null); // Not using a media server.
[Code]....
Is there anything I am missing have wrong to capture events from my net stream?
Suppose a MovieClip in as3 call myClip is 100 frames long and has labels at the following frames:0-start; 25-early; 50-mid; 75-late; 100-endCan someone explain (either using regular AS3 or with Greensock's TweenMax or TimelineMax) how to make my myClip play frames 0 to 25 then back to 0 again, and frames 100 to 75 and back to 100, Ideally would be able to loop over those ranges during a mouse ROLL_OVER event.