ActionScript 2.0 :: Display An Offline Image When Stop Streaming?
Dec 9, 2011
I have created a video streaming system for a video chat website. I have two flashes. One for the model which streams and one for the user who plays the streaming. What is the solution for displaying an offline image in the user player when the model stops the streaming?
View 1 Replies
Similar Posts:
Apr 12, 2011
I am new to using flash media server. I setup the server and using the default player for the live stream and when I am not broadcasting I want to display an image instead of the black box that comes up till I start the live broadcast. Is there away to have it pull an image when I am not streaming?
View 2 Replies
Oct 14, 2010
When stop streaming, i close NetStream, close NetConnection, clear video, and remove any event listoner on camera. After these actions, the camera is still in used.
View 2 Replies
Jan 2, 2008
I am having trouble with sounds from a streaming flv continuing to play even after the playhead navigates to a different place in the timeline. I know from looking through forums and Adobe's livedocs that the answer lies with the SoundMixer class, but I just can't seem to get it to work. I am building a site that houses all of the videos for my company, so basically I want the sound from the flv to stop playing when the user navigates away from the frame that contains the flv.
Here is a sample of the particular code I am trying to use to do this:
Code: Select allimport flash.media.SoundMixer;
var sControl:SoundMixer = new SoundMixer();
msfNavHeader_btn.addEventListener(MouseEvent.CLICK, msfHome)
[Code]....
I don't know if there is a way to build a function that stops sounds globally or if I have to target each instance of an FLVPlayback Component.
View 5 Replies
Aug 12, 2010
Let's say I click next song, it starts loading the next song, then I click next song again before the first song finishes loading. Will the program continue streaming the first song as well as stream the second song?
Code:
private function NewSong (plus) {
if (sound.bytesLoaded / sound.bytesTotal < 1) {
sound.close ();
} sound = null;
songtimer.stop ();
songplaying = false;
channel.stop ();
[Code] .....
This is the code that handles when a new song is to be played. I would think that the first few lines of code would close the stream if it's still loading but I'm not sure. When I click next song like say 10 times, it takes a really long time for the song to stop buffering and start playing. The main question still remains: Will it continue loading songs I skipped over?
View 1 Replies
Nov 11, 2010
i have a video object on my stage and i make it play by using ns.play();However, when i want to stop playing by ns.close(), i see from httpfox that streaming doesnt stop but continues.is there any way to really stop steaming anytime i want?it is same when i use FLVPlayback component. when i assign path to its source attribute, it starts streaming without saying it to play..
View 3 Replies
Oct 9, 2009
Sometimes I get ahead of myself and have to stop and say how the hell did I do this before? I'm referring to a simple stop button I need to put in a flash animation. I know how to code calling a sound from the library, starting and stopping from a btn. But how do I stop audio that is streaming inside a layer from a button ?
var my_sound:Sound = new Sound();
my_sound.load(new URLRequest("yoursoundfile.mp3"));
var my_channel:SoundChannel = new SoundChannel();
[Code]....
View 3 Replies
Jul 30, 2011
Some time streaming is working fine and even in Admin console i see the bandwidth Grapgh is growing up due to no. of connected usersbut automatically it happen streaming is stop and bandwidth graph is going down till zero then i restart to FMS then streaming goes smoothly and working fine.before restart i check FMS services it is started and also encoder is connected when i restart it goes smoothly.What happen to FMS i don't know and i don't find any error in FMS log how to stop streaming even FMS is connected and started
View 14 Replies
Nov 9, 2010
I have an AS2 file where I want to load an external sound, but not have it start until the play button is pushed. It is a large file so I want it to load streaming, but can't figure out how to keep the streaming true without having it start immediately. Here is the code:
this.createEmptyMovieClip("craigTalks_mc", 10);
craigTalks = new Sound(craigTalks_mc);
craigTalks.loadSound("mp3/Craig_BP.mp3", true);[code]....
I have three audio files using the same code that I want the user to be able ot toggle on and off. When I set the loadSound isStreaming variable to false, it works perfectly, but at true, all three files start at once, and the pause doesn't work! However if I keep it at false, once I load it to the website it doesn't work, I believe because it is taking too long for the audio files to load.
View 4 Replies
Jul 19, 2004
I have used the loadsound command with the streaming option set to true, so it streams sound etc. But the problem is that it cache's the mp3 file it is streaming onto the user's internet cache folder Is there a way to prevent mp3 files from being cached (have I murdered the English language today using the word cache? ) Something like what the Real Player does, it streams the files but never cache's them. <gasp>
View 7 Replies
Jul 19, 2004
I created a streaming mp3 player, the Click here for player
I have used the loadsound command with the streaming option set to true, so it streams sound etc. But the problem is that it cache's the mp3 file it is streaming onto the user's internet cache folder.
Is there a way to prevent mp3 files from being cached (have I murdered the English language today using the word cache? ) Something like what the Real Player does, it streams the files but never cache's them. <gasp>
View 12 Replies
Jan 26, 2010
In my system I have installed Flash Media Streaming Server and as you know Streaming Server doesn't abilty to authenticatte the user which connects with FMLE or another application to publish (or am I wrong, I hope I am wronggg ). Because of this reason my system is abused time to time for unlegal content . In my system we don't use live streaming ability for live events regulary. Sometimes we use live ability max 4 times in a month. And I want to learn that is there a way to stop or disable and open the live streaming mechanism whenever I want?
View 2 Replies
Feb 19, 2012
I have some .mov files want to stream to Flash media server by ffmpeg. i have already tried to stream a single .mov by FFMPEG command in terminal and it works, the FMS can display the thing i streaming in live.Now i want to stream multiple files as one source, i tried to use above command one by one, but it seems Flash media server stop the streaming when file1 is finished, then start the stream with file2.It makes the stream player stopped when file1 is finish, and i have to refresh the web page in order to continue on file2.i am calling the FFMPEG command by a C program in linux, i wonder is there any method that i can prevent the FMS stopped when i switch the file source in FFMPEG? or is that possible to let FFMPEG constantly deliver the stream by multiple files source without stopped when a file finish
View 2 Replies
Apr 29, 2008
I have a streaming MP3 player that i'm going to incorporate into my site. Below is the AS for the player. At the moment the player starts automatically when the page loads up. Can someone tell me what i'd need to change so the player doesn't start streaming on page load....?
Code:
stop();
playlist = new XML();
[code].....
View 1 Replies
Oct 24, 2011
i want to rotate 3D an Image called img1 in Flex. I want to rotate it around y axis 180 degree. I can do this by using 3D effect already built in Flex but i want to do a bit more different. I want during rotating, there's another image called img2 appear on back of img1 (in default case, the image appear on the back is img1) and when rotating finish, the image will be img2.
View 2 Replies
Oct 14, 2009
While streaming a live worship service in Flash format, I'll need to archive only the sermon in Flash. I do not want to handle this in post/editing. What will I need to make this happen?
View 6 Replies
Feb 24, 2010
I just need something simple, where there is only pause, play and stop buttons. I usually load the music within the flash movie and play from there, but I would like to build one where if you press play, the music loads and plays streaming on the spot. I have got a couple of more complex streaming style mp3 players but I would like to use a simplified streaming version. Any recommendations or code that I can just add to a button?
View 1 Replies
Aug 2, 2009
im messing with a movieclip symbol and i want to make a button, what'd i mean on Mouse over display/change this image in this X,Y cords or replace this image, something close to what buttonSymbol does but i want to make it using movieClip symbol...
and i have no idea how to do it.. i started like this:
[Code]....
View 0 Replies
Feb 27, 2010
After browsing for the images, and selecting them. How can I display a preview of the image in the datagrid? I am able to display the file name, file size, but was unable to display the image. Below are the codes I have written, it is not a complete code but just enough to make it understandable.
// variables used
var list:Array = new Array();
var listDP:Array = new Array();
[Code]....
View 1 Replies
Jan 12, 2010
I am using this following code to display images using xml.Everything is working fine for me but i have to add background image or border to the displayed image using function BitmapFileMaterial.
using BitmapData or Bitmap Class but same functionality.
[Code]....
View 0 Replies
Jun 21, 2011
I have an image panning to the left and right on mouse move. All this works fine but now I can't figure out how to stop the panning at the beginning and end of the image (it just goes on with the mouse move). Would be great if it would stop at the end and let the possibility to go back to the other end again. Here's my code:
Code:
import flash.events.MouseEvent;
var centreX:Number;
var steps:Number;[code].....
View 2 Replies
Apr 22, 2010
I am making a game where I want to have a timer running over each level (a total of 4). When the user has finished the game, I want the timer to stop and then display their time. I have 2 dynamic text boxes with the varibles set to them as "Seconds" and the other as "Min". Here is the ActionScript I have for it right now:
[Code]...
View 2 Replies
Dec 14, 2010
As of Flash 10.1, they have added the ability to add bytes into the NetStream object via the appendBytes method URL...The main reason for this addition is that Adobe is finally supporting HTTP streaming of video. This is great, but it seems that you need to use the Adobe Media Streaming Server (URL...) to create the correct video chunks from your existing video to allow for smooth streaming.I have tried to do a hacked version of HTTP streaming in the past where I swap out the NetStream objects (URL...), but there is always a momentary pause between the chunks. With the new appendBytes, I tried to do a quick mock up with the two sections of video from the preceding site, but even then, the skip still remains.Does anyone know how the two consecutive .FLV files needs to be formated in order for the appendBytes method on the NetStream object to create a nice smooth video without a noticeable skip between the segments?
View 6 Replies
Jul 2, 2009
We are streaming a one hour F4V from streaming media server 3.5.2 and for some reason it is seeing our one hour video as being 10 hours long. We have tons of other videos and never ran into this problem in any of the other files. This is the only file that exceeds one hour. This occurs in the default player from the streaming server.
View 1 Replies
Mar 28, 2009
flash cs3 and im having a problem displaying an image from an external folder using XML. ve created an image holder movie clip on my stage however im not sure what code I need to include to load the image from XML into the holder movie clip.I also have a second image that i want to display in a different movie clip from the same XML code.
View 1 Replies
Apr 26, 2009
I am designing a CD-ROM for a client for my university's project.I was wondering if It is possible to add some thing like a contact page? if yes, what should I do? As it is not possible to use Php for an offline media what else can I do? I did a research and found out I can connect the form or a button to out look but that's all, nothing more?
View 2 Replies
Jan 8, 2009
Is it possible to stream mp3 files from mms url's like this? [URL]
It throws an error when i try the way i use to load mp3 files (it works with other mp3s):
var sndObject:Sound= new Sound();
var reqObject:URLRequest=new URLRequest("mms://example.streamsvr.com/example.mp3");
sndObject.load(reqObject);
[Code]....
View 1 Replies
Nov 16, 2009
I'm having a hard time wrapping my head around XML, in particular using XML to place an image on the stage.
I've got some code which I've appropriated from a tutorial, which creates a nice XML driven menu - And I would like to adapt it so that when I click on a menu item it displays a JPG (it currently calls up defined labels on my timeline, which is not really what I'm looking for)
I was looking for (lots of XML galleries tutorials, but I couldn't find an easy tutorial to display 1 image)
Here is my XML:
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<menu>
<menu buttonName = "item 1" />
[Code].....
View 3 Replies
Jan 16, 2010
I would like to know how could I display the same image I loaded (with Loader) twice on the screen. AddChild dont accept repeated instances, what should I do? Copy the Image? Wont that be slow? What if I have the GIFPlayer class, I loaded a gif with it, I want to add it twice on the screen, loading more than once could be slow! What should I do?
View 7 Replies
Sep 30, 2009
i need to display an image from an URL on a symbol. ( or in a symbol )
like [URL]
i want it to show up in a symbol so i can do things to it.
i have no idea how to do this even with AS2 but right now i am into AS3..
any 2-3 lines of code out there capable of doing this?
oh yeh, i am asking this because i've been working on video player ( flv video player, finally got it working with AS3 a lot of hard work, because LEE's tutorials are with AS2 and AS3 is soo much different.. )
now i am at a point where i need to display an image on the front so when the user clicks play the image goes away and video beings playing.
i will probably just make the InstanceName.visible = false;
once the ns.play(video); is triggered.
but the real question is, how do i take the image from an URL and make it show up inside instanceName ?
never done this before.
actually i have done something but i never managed to get it to show up inside an instance ( like a square box or something) so i could position it properly.
View 1 Replies