ActionScript 2.0 :: Controlling Two NetStream Videos?
Jul 18, 2005
I have two videos, and I control them using ns1 and ns2, the NetStream objects. I want to stop the sound of one of them, then turn on the sound of the other. When I use the following two lines, I try to use audio1 and audio2 to start and stop the sounds using setVolume, but it doesn't work.
Code:
this.createEmptyMovieClip("snd1", 0);
snd1.attachAudio(ns1);
audio1 = new Sound(snd1);
[Code]...
View 1 Replies
Similar Posts:
Oct 20, 2011
Is it possible to connect one Nestream (live from FMS) to many Video objects? So all the video objects on the stage show the same netstream.
View 1 Replies
Mar 11, 2011
I am implementing a video player in Actionscript and I need to be able to define the starting play time for the videos. Netstream.seek(pos) works for flv files but fails for H.264 files (the player starts playing the video from the beginning). Anyone knows what might be the problem? (I am using Netstream for this instead of adding a parameter with the starting time when I call the Netstream.play method because I don't have Flash Media Server).
View 2 Replies
Dec 27, 2010
How many instances of Video, NetStream and NetConnection would be needed for multiple videos?Not sure that's the right question but essentially here's the objective:Currently, I'm working on an interactive product tour, parts of which are to consist of short video clips, each covering a feature. While only one such clip will be playing at any given time, I'd like put them all at the application's fingertips as part of the initial preloading process before launching into it. The idea is to provide a seamless instant-play user experience without hitting the breaks before individual segments.Honestly, I hate pre-caching crap into user's memory, especially when some of that content may be potentially ignored. However, given the target audience, it is reasonable to predict that all features will be explored most of the time, so it's a fair compromise to me. Besides, I went to great lengths to keep the mp4s' sizes to the minimum.Anyway, I'm guessing you don't really need more than one instance of the Video class but how many NetStreams and NetConnections do I you need, probably one of each per video, ha?
View 0 Replies
Dec 30, 2010
How many instances of Video, NetStream and NetConnection would be needed for multiple videos? Not sure that's the right question but essentially here's the objective:
Currently, I'm working on an interactive product tour, parts of which are to consist of short video clips, each covering a feature. While only one such clip will be playing at any given time, I'd like put them all at the application's fingertips as part of the initial preloading process before launching into it. The idea is to provide a seamless instant-play user experience without hitting the breaks before individual segments.
[Code]....
View 2 Replies
Jul 6, 2011
I'm making a small video players in AS3, and I've found that after calling NetStream.pause() or NetStream.togglePause(), no status messages are being fired any more.If I click the "pause" button while the video is buffering, I never get the Buffer.Full message.Here is some code:
_connection = new NetConnection();
_connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
_connection.connect(null);[code].....
View 1 Replies
Feb 25, 2010
I am working on an app that will take a snapshot of an rtmp stream of an archived video, save it to a file, and ExternalInterface the file name to the hosting page to javascript it up for display.
I actually have all pieces working great. The only time an error is thrown is when I pause the video, seek to somewhere, and then try to take a snapshot. Then there is a runtime error of:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: mySwf.swf cannot access rtmp://myFlashServer/myApp. No policy files granted access.I've seen post after post of suggestions and have tried them, but without success.
I have the crossdomain.xml and my FlashMediaServer security setup fine (it is actually working, except for this one glitch). It just seems to be the pause-then-seek-then-BitMapData.draw() combination which is creating issues.
Another weird thing: after the error is thrown, if I resume the stream and take a snapshot, it works flawlessly again.
View 5 Replies
Nov 1, 2011
Is there a way to create videos in a playlist that i can limit the views to 10 videos per user?
View 1 Replies
Jan 7, 2010
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);
[code]........
View 0 Replies
Mar 20, 2012
In my application I have a video playing from a NetStream. Every second on timer I update a text label with statistics like stream.info.currentBytesPerSecond. The problem occurs when the NetConnection associated with this NetStream closes: the getter for stream.info throws
[Code]...
View 1 Replies
Aug 2, 2010
A NetStatusEvent with info.code of "NetStream.Connect.Closed" is dispatched by NetConnection when a NetStream is closed. This seems kind of weird, shouldn't the NetStream dispatch the event? how do I know which NetStream has been closed if I have more than one running (which I do)? I need to know so I can cleanup the now dead stream.
View 1 Replies
Aug 17, 2009
I want to create netstream obj which will connect to wowza server ?
View 3 Replies
Mar 9, 2010
I have a video with 2 embedded cue points (event). The video player uses NetStream and is NOT a FLV Playback component. I can trace them and see both name and time with this:
[Code]...
View 1 Replies
Aug 22, 2010
I'm currently on a project where to build a site with with several video-clips being played and reached from a menu. The video-files will be in FLV-format.I've done some video solutions in flash a few years ago but this time it will be in CS5 (AS3) and I'm not sure which solution that will suite this project best.The video clips must run smooth and I guess we'll need some cuepoints and buffering to make the transitions from the user inputs smooth. I think they need some MovieClips on top the videopart as well for navigation/information.
Should I use the NetStream-way or use the FLVPlayback-way? I got some demo-video-files yesterday and I ran an example using the FLVPlayback-method and it showed up smoothly but is this the way to go?Why would you use either NetStream or FLVPlayback?
View 5 Replies
Nov 27, 2009
I'm trying to figure out how I can add a seekbar to my netstream.I have the duration of the flv through metadata and the current time of the stream, but I can't understand how I should connect them to pass a position to a seek handler. And allso to be able to drag the handler to positions in the stream.
View 1 Replies
Sep 2, 2010
Is it possible to add cue points using as3 and I will not be using FLVPlayback component.
I want my flv or netstream object to call a fucntion after 7 or 16 second or at any specified time during playing. i found addAsCuePoint the only way to do it.
If there is any other way to accomplish this task then i will not be using cue points..
View 1 Replies
Dec 2, 2010
In a Flex NetStatusEvent of type NetGroup.MulticastStream.PublishNotify, you get the String name of the stream in e.info.name
The name is what the publisher specified in the .publish ("") method. But in a NetStatusEvent of type NetStream.Connect.Success, there is no such property. Instead, the whole NetStream object is available through e.info.stream
How the heck to you get something as basic as the name from the NetStream object? e.info.stream.name does not exist. I must be overlooking something very simple.
View 1 Replies
Apr 26, 2011
I'm creating a video chat app using Flash Media Server 4 and Flex, using RTMFP for peer-to-peer.No matter what I try, I cannot mute a user's NetStream. I tried receiveAudio(false) and that does not work. I tried capturing the stream SoundTransform and setting the volume of that to 0, that does not work.I tried setting the mx VideoDisplay volume to 0 and that does not work.I can set the alpha of the VideoDisplay, so its really strange that I cannot set the volume.BTW, I am not trying to mute the mic of the user who launched the app, that I can do. I'm trying to mute one of the other users stream in the Flex app, that way the app makes it possible to not hear people who are perhaps being offensive.
View 1 Replies
Oct 22, 2009
The code above is my standard preloader for swf, I use it since long time and its all working, I managed above the script another one that load the flv?s that I use in the array. The two are working but my need is that the container only start to play the module after all the flv?s have been loaded to the cache.
One thing to note is that in the second script the array is playing the flv?s when should be only load, I?ve try to give a ns.pause(); but if I do that the array dont get to the end of it.
View 9 Replies
Oct 27, 2009
i've a very strange problem with a NetStream Buffer only in Internet Explorer (flash player version 10,0,32,18). When I connect to a netstream I use this:
var videoOpe:Video=new Video();
var stream="name live stream";
var nsOpe = new NetStream(nc); //nc is an active netConnection
nsOpe.bufferTime=1;
nsOpe.client=this;
[Code]...
View 1 Replies
Jan 28, 2010
I'm trying to play an FLV on a video instance on the stage called my_video. This works as frame code the timeline, but when I use it as a class it loads the video but gets stuck on the first frame.
Here is my code
Code:
private var my_video:Video;
private function loadVid(mc:MovieClip)
{
[Code].....
View 3 Replies
Feb 8, 2010
Currently I'm using a rtmp server to streaming a video (m4v format), and now I need to set a cuePoints to call this one.
The problem is,
I'm using a simple video playback with NetStream and NetConnection, till here its okay, the video is streaming correctly, now appears the necessity to show some graphics in middle of the video.
How can I set the cuePoint name? addCuePoint()? The simple video player support it?
View 1 Replies
Mar 9, 2010
I have a video with 2 embedded cue points (event). The video player uses NetStream and is NOT a FLV Playback component. [code]...
That action will also do the loadMovie, so I know the loadMovie part works. But since there are 2 cue points the loadMovie fires with each cue point... not what I had in mind.
I just don't know how to get the loadMovie to fire outside of that function. I've tried this[code]...
View 1 Replies
Jul 8, 2008
I have flv's in the new H264 codec which apparently cannot have meta data cue points embedded like you would using Flash video encoder. I'm using Netstream in a custom player. Any suggestions how I would go about using XML cue points with Netstream? How would the playhead time trigger a search of the xml file?
View 2 Replies
Apr 8, 2010
I'm trying to make a preloader for the buffer for a 19MB video. I can trace everything, but the math won't do.
Preloading the video itself is no problem. But what I want is to make a xx% preloader for the buffer of this video.[code]...
View 4 Replies
Aug 4, 2010
I am going to be upset if you cannot use addASCuePoint (or a similar method) with the netstream object.Ive done a bit of googling and that is what I am seeing. Apparently it only works with the FLVPlayback component, but I havent seen any official docs stating that. Anyone have experience with this?
View 3 Replies
Aug 6, 2010
I have a few questions about the net stream class..Lets start with the first one I have a netStream class that is basically set to default property values I am loading a video file off the local hard drive.Now once this video starts playing, I get NetStreamEvents constantly firing.. extremely rapid pace.
NetStream.Buffer.Full
NetStream.Buffer.Flush
NetStream.Buffer.Full
[code]....
It just keeps filling up and then flushing itself, but the video plays smoothly so to the end users nothing is wrong..
View 1 Replies
Apr 30, 2009
I should probably be refrencing a book rather than continueing to ask questions here but there are no books for AS 3.0 and flash media server. So this forum is my book i suppose any way here is what i have...I have 2 .as files one holding code for a netConnection and one for creating the netStream my problem is i need to pass the netConnection refrence from the netConnection.as file to the netstream....here is my failed attempt to do so I also get the following error message..ArgumentError: Error #2126: NetConnection object must be connected.
[Code]...
View 3 Replies
Aug 4, 2009
As you can see, after all the items in the Carousel have loaded, a function called fadeItemIn() is called which displays each of them one by one. I am looking to call a small "swoosh" particle effect flv I made in AfterEffects so that as each item tweens in, it instead looks like it is sparkling in from the left.
The problem I have is that using the code below, the swoosh.flv file tends to freeze before it finishes. In this case the swooshIn() function is called three times because there are three items being loaded into the Carousel.
I am wondering why the FLV freezes when multiple instances of it are loaded through AS3 using NetStream.
Code:
private function fadeItemIn(item:CarouselItem):void {
trace("fadeItemIn");
this.tweens.push(new Tween(item, "altitude", Regular.easeOut, item.altitude, 2.5, 0.50, true));
[Code].....
View 1 Replies
Oct 27, 2009
I want to utilize the FLVPlayback component so I don't have to create my own skins and the documentation says the FLVPlayback class "wraps" the VideoPlayer class and ALL the methods/props available in the VideoPlayer class are available to the FLVPlayback class, BUT I notice the FLVPlayback class doesn't inherit or subclass the VideoPlayer class and some of the methods/props for the VideoPlayer class generate errors when utilized by the FLVPlayback class.
In short, I want to take a NetStream instance that has the stream I want to utilize and force that on the FLVPlayback instance. I can get it to work with the VideoPlayer instance BUT NOT the FLVPlayback instance. I don't want to set the FLVPlayback instance's "source" property with a string as the documentation suggests, I want to do something like:
Code: flvPlaybackComp.attachNetStream(stream); how can I accomplish this? I've seen the "getVideoPlayer" method on the FLVPlayback class and thought that might be a "round about" way of controlling the underlying VideoPlayer instance, but haven't gotten that to work properly.
View 3 Replies