Looping Multiple Mp3 Streams
First, let me commend all of you on a great forum full of valuable resources. I wouldn't have gotten as far as I have without the forums here. I am a Flash newbie with experience in web design using good ol' HTML and Java. ActionScripts are still fairly new to me.
Okay, to my question. Here is what I have and what I want to do:
Currently, I have one streaming .mp3 that loops from the beginning:
ActionScript Code:
s = new Sound();
s.loadSound("http://www.freelands.net/lull/bdg/mus_MainTheme.mp3",true);
s.onSoundComplete = function() {
s.start(0, 99);
}
This .mp3 is controlled by two buttons, Pause and Play.
Pause:
ActionScript Code:
on(release){
cue = Math.round(s.position/1000);
s.stop();
}
Play:
ActionScript Code:
on(release){
s.start(cue,1);
}
Everything works fine. But here's where I'm stuck.
I want to add multiple .mp3's that play in order and then loop back to the first .mp3. I don't want the user to control this, it is background music, not an MP3 player. I don't even know what the ActionScript would be for adding multiple .mp3's. More to the point, I haven't the slightest idea how to adjust my buttons so that they know which .mp3 they're supposed to be pausing and playing.
So far I have tried simply adding in URL's, but that doesn't seem to work. I have tried making an .m3u playlist file that I use to replace the .mp3 file, but Flash doesn't recognize .m3u files, so that doesn't work either.
I have searched your forums, I have looked on http://www.kennybellew.com/tutorial/ and numerous other websites, but nothing really addresses this specific issue. Any assistance would be greatly appreciated.
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 08-07-2005, 09:44 PM
View Complete Forum Thread with Replies
Sponsored Links:
Streams Stop Looping And Metadata Problem
for some reason the streams stop after ohh 2 minutes roughly except for the last video. And i still haven't been able to use the metadata to set the size
can anyone help please
code: for(var i:int = 0; i <5; i++){
thumbObj = new Object();
thumbObj.onMetaData = metaDataHandler;
thumb.width = thumbwidth;
thumb.height = thumbheight;
thumb = new Video();
addChild(thumb);
thumb.x = thumb.width * i;
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
ns.client = thumbObj;
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
thumb.attachNetStream(ns);
thisURL = "www.someurl.com/foo" + i + ".flv";
ns.play(thisURL);
}
function netStatusHandler(event:NetStatusEvent):void {
if (event.info.code == "NetStream.Play.Stop") {
event.target.ns.seek(0);
}
}
function metaDataHandler(info:Object):void{
thumbheight = info.height;
thumbwidth = info.width;
}
View Replies !
View Related
How To Choose Among Multiple Audio Streams?
I have a long animation sequence that plays in sync with a streamed audio music track embeded in a layer. So far so good.
But now there are two options for the audio - 1. With voice in English and 2. Karoake. Both the audio tracks are identical in length. I have put both the audio in timeline in two layers (streamed). Is there a way to switch between the two during runtime? Just like choosing language option in DVD Movies?
I tried attaching sound thru action script. But this way it loses sync. The ideal way would be to stop one of the audio layer during runtime. But I dont know how to do this. I even tried to put the two audio in two movie clip and then putting the movie clips on the timeline. But this way also it loses sync.
Right now I am publishing two movies separately and calling them in the main timeline thru script. But unfortunately this doubles up my animation space usage as it duplicates in both movies.
Any clue. Thanks in advance?
View Replies !
View Related
How To Choose Among Multiple Audio Streams?
I have a long animation sequence that plays in sync with a streamed audio music track embeded in a layer. So far so good.
But now there are two options for the audio - 1. With voice in English and 2. Karoake. Both the audio tracks are identical in length. I have put both the audio in timeline in two layers (streamed). Is there a way to switch between the two during runtime? Just like choosing language option in DVD Movies?
I tried attaching sound thru action script. But this way it loses sync. The ideal way would be to stop one of the audio layer during runtime. But I dont know how to do this. I even tried to put the two audio in two movie clip and then putting the movie clips on the timeline. But this way also it loses sync.
Right now I am publishing two movies separately and calling them in the main timeline thru script. But unfortunately this doubles up my animation space usage as it duplicates in both movies.
Any clue. Thanks in advance?
View Replies !
View Related
Multiple Streams Playing At The Same Time?
I'm busy buidling my first flash application wich includes FMS2. I've got a mic connected wich records a few audiochannels to FMS, no problem there.
Now i want to play these audiochannels at the same time a progressive movie is playing. But the audiochannels have to be synced perfectly with the mvoie.
So my question is how can i regulate that after the progressive movie is fully downloaded and starts playing that at the streams play without interuptions at the specific times they need to play.
Sorry from my English grammer :)
And many thanks!
View Replies !
View Related
Synchronization Of Multiple Audio Streams
Hi,
I'm trying to synchronize several Audio streams during playback and recording. Several questions I have and not sure if actually feasible or how to best address :
1/ When playing back 2 audio streams, how can I ensure the playback is full synchronized (<20ms difference) when client receives the 2 streams in playback ? Basically trying to simulate a mix-down with 2 // streaming. Ultimately wants to achieve this with about 5 audio streams playing back and can't accept tolerate delay. I suspect I need to synchronize the start of each stream so that they all start together, but not been very succesfull so far. Alternatively is there a way to mix-down 2 streams on server and send back a 1 mixed-down audio stream ?
2/ More tricky I believe : If I playback 1 audio stream and start recording a separate audio stream, I'm getting again desynchronised. Later If I replay the 1 audio and the newly recorded one, both are not anymore aligned. I suspect (but not sure that the delay and desynchronization is introduced during the recording but not sure and reason I asked first question...
If someone knows those answers or could provide some direction of work.... I would greatly appreciate.
Thanks
View Replies !
View Related
FMS3: Multiple Live Video Streams
Hi,
After reading the features and documentation I have a doubt: Can I have multiple live video streams with FMSS at the same time?
E.g.: Different TV stations broadcast to a single server, and then the user chooses what station wants to watch.
Thanks,
Oriol
View Replies !
View Related
Playing (and Keeping In Synce) Multiple Video Streams?
Hello All,
I wonder whether the following is possible with Flash Media Server:
We record technical breakout sessions at conferences, and we're looking for a way for people to watch them later with a very good user experience. Right now we are giving the presenters Camtasia to record their screen actions, which we then encode into one video file. We also use a video camera to record the presenter from the waist up, which we encode to a second video file. So now we have two video files that we'd like to keep in sync to display to the user simultaneously.
Is it possible to use Flash Media Server along with a custom player to do this?
Fundamentally I don’t think it would be too hard to create a single set of playback controls that sent playback request time codes back to two separate video streams. The problem as I see it would be what would happen if one of the streams lagged and had to pause to buffer while the other stream continued forward? In this case the two streams would become out of sync. Our current solution involves us rendering both streams into a single video file, which is very labor intensive and doesn't give us any flexibility down the road, but this is all we could do to guarantee that they would stay in sync as the user jumped around or as it paused for buffering.
Any thoughts?
Thanks,
Brian
View Replies !
View Related
Looping Multiple Times
Hi I'm trying to figure out how to display a message after 2 atempts from the user. Its an elementary math quiz. If the user gets the answer incorrect after 2tries I want to display a message telling to to "Practice with their flash cards". So I guess I would want to loop twice to allow the user to enter their answer and check it.
Here is what I tried...
Code:
mx.accessibility.AlertAccImpl.enableAccessibility();
import mx.controls.Alert;
var myEquations:Array = [];
var myOperators:Array = ["+","-","*","/"];
for (var i:Number = 0;i < 10;i++) {
var num1:Number = Math.round((Math.random() * 10) + 1);
var num2:Number = Math.round((Math.random() * 10) + 1);
var randOp:Number = Math.round(Math.random() * (myOperators.length - 1));
var temp:String = num1.toString() + " " + myOperators[randOp] + " " + num2.toString();
//trace("this is random string " + i + ": " + temp);
myEquations.push(temp);
}
//first, I'll set up a variable to hold
//the current equation we're on.
var currentEq:Number = 0;
//now here's a function that will place
//the equation in the left textfield.
var setEquation:Function = function() {
eq_txt.text = myEquations[currentEq];
}
//And, now that our equations are all inside the
//myEquations array, let's see how
//we can compute them:
var checkFunction:Function = function() {
var ta:Array = myEquations[currentEq].split(" ");
//trace("here's ta: " + ta);
var tmp:Number;
switch(ta[1]) {
case "+" :
//trace("we're adding");
tmp = parseInt(ta[0]) + parseInt(ta[2]);
break;
case "-" :
//trace("we're subtracting");
tmp = parseInt(ta[0]) - parseInt(ta[2]);
break;
case "*" :
//trace("we're multiplying");
tmp = parseInt(ta[0]) * parseInt(ta[2]);
break;
case "/" :
//trace("we're dividing");
tmp = parseInt(ta[0]) / parseInt(ta[2]);
break;
}
//trace("and tmp is: " + tmp);
if (tmp.toString() == ans_txt.text) {
//trace("correct!");
Alert.show("Yes, You are Correct!");
ans_txt.text = "";
currentEq ++;
setEquation();
} else {
Alert.show("What are you doing?");
Selection.setFocus(ans_txt.text);
//trace("wrong!");
}
}
//If answer is wrong 2 times display message
for (var i:Number = 0;i < 2;i++) {
if (tmp.toString() == ans_txt.text) {
//trace("correct!");
ans_txt.text = "";
currentEq ++;
setEquation();
} else {
Alert.show("Please Practice with your flash Cards");
Selection.setFocus(ans_txt.text);:help:
}
}
setEquation();
check_mc.onRelease = checkFunction
View Replies !
View Related
Adding OnPress To Multiple Mc's By Looping
Hi!
I have made a movie with 36 different clips and want to be able to attach the following code to all 36 movieclips! I can duplicate it 36 times but surely there must be a way to loop through all 36 and attach the onPress behaviour?
The clips I want to attach the actions to are named
coconut1 --> coconut36
I have tries all sorts of loops but none of the work.. any ideas?
actions...
coconut1.onPress = function() {
var mc = this;
if (!mc.chosen) {
if (_root.numChosen<_root.maxNumChosen) {
_root.numChosen++;
mc.gotoAndPlay("hilite");
mc.chosen = true;
} else {
_root.toomany.play();
trace("you can only choose 4 movieClips!");
// extra actions here
}
} else if (mc.chosen) {
_root.numChosen--;
mc.gotoAndPlay("start");
mc.chosen = false;
}
};
View Replies !
View Related
Preloading Multiple Mp3's Using A Looping Array
I am preloading multiple mp3's dynamically using a looping array and it is working very well. However, I would like to display the percentage of the last mp3 loaded by the array. Does anyone know how I would modify the code to do this:
Code:
var my_array:Array = new Array();
my_array[0] = "Audio/audio_1.mp3";
my_array[1] = "Audio/audio_2.mp3";
my_array[2] = "Audio/audio_3.mp3";
my_array[3] = "Audio/audio_4.mp3";
count = 0;
var k;
for (k in my_array) {
var my_audio:Sound = new Sound();
my_audio.loadSound(my_array[k], true);
my_audio.setVolume(0);
var my_interval2:Number;
my_interval2 = setInterval(checkAudioProgress, 100, my_audio);
function checkAudioProgress(the_audio:Sound):Void {
var AudioKBytes = Math.ceil(the_audio.getBytesTotal()/1024);
var AudioPct:Number = Math.round(the_audio.getBytesLoaded()/the_audio.getBytesTotal()*100);
AudioPctOutput = "Loading Audio: "+AudioPct+"%"+" of "+AudioKBytes+" k";
}
count++;
}
I'm working against a deadline so any extra help would be greatly appreciated.
Many Thanks.
View Replies !
View Related
Looping Multiple Sequential SWFS
The action script below playss the array of SWFS only once (all the children are stopped out)
Question: how do I get this AS to loop the SWFS in a continuous manner?
Attach Code
/ ==================================================================
// Looping Multiple Sequential SWFS
// ==================================================================
stgMovies = "movie01.swf,movie02.swf,movie03.swf,movie04.swf";
// Split above string to an array.
rraMovie = stgMovies.split(",");
nbrStartLevel = 5;
fncLoadLaunch = function () {
rraLoadStatus = new Array();
for (var icrIdx = 0; icrIdx<rraMovie.length; icrIdx++) {
rraLoadStatus.push(false);
}
_root.createEmptyMovieClip("mvcLoad", 0);
var nbrMovie = 0;
var blnLevelLoad = false;
var nbrLevel = 0;
var rfcLevel;
mvcLoad.onEnterFrame = function() {
if (!blnLevelLoad) {
if (nbrMovie<_root.rraMovie.length) {
blnLevelLoad = true;
nbrLevel = _root.nbrStartLevel+nbrMovie;
loadMovieNum(_root.rraMovie[nbrMovie], nbrLevel);
} else {
delete this.onEnterFrame;
this.removeMovieClip();
}
} else {
if (this["_level"+nbrLevel]) {
rfcLevel = this["_level"+nbrLevel];
rfcLevel._visible = false;
if (rfcLevel.getBytesLoaded()>10 && rfcLevel.getBytesLoaded()>=rfcLevel.getBytesTotal()) {
_root.rraLoadStatus[nbrMovie] = true;
rfcLevel._visible = false;
blnLevelLoad = false;
if (nbrMovie<1) {
fncPlayLaunch();
}
++nbrMovie;
}
}
}
};
};
fncPlayLaunch = function () {
_root.createEmptyMovieClip("mvcPlay", 1);
var blnLevelPlay = false;
var nbrMovie = 0;
var rfcLevel;
var nbrFrameLast = 0;
mvcPlay.onEnterFrame = function() {
if (!blnLevelPlay) {
if (nbrMovie<_root.rraMovie.length) {
if (_root.rraLoadStatus[nbrMovie]) {
blnLevelPlay = true;
rfcLevel = this["_level"+(_root.nbrStartLevel+nbrMovie)];
rfcLevel._visible = true;
rfcLevel.play();
nbrFrameLast = 0;
}
} else {
delete this.onEnterFrame;
this.removeMovieClip();
}
} else {
if (rfcLevel._currentframe>=rfcLevel._totalframes || rfcLevel._currentframe == nbrFrameLast) {
blnLevelPlay = false;
rfcLevel._visible = false;
rfcLevel.gotoAndStop(1);
++nbrMovie;
} else {
nbrFrameLast = rfcLevel._currentframe;
}
}
};
};
// ==================================================================
// Launch loading.
fncLoadLaunch();
View Replies !
View Related
Preloading Multiple Mp3's Using A Looping Array
I am preloading multiple mp3's dynamically using a looping array and it is working very well. However, I would like to display the percetage of the last mp3 loaded by the array. Does anyone know how I would modify the code to do this:
Code:
var my_array:Array = new Array();
my_array[0] = "Audio/audio_1.mp3";
my_array[1] = "Audio/audio_2.mp3";
my_array[2] = "Audio/audio_3.mp3";
my_array[3] = "Audio/audio_4.mp3";
count = 0;
var k;
for (k in my_array) {
var my_audio:Sound = new Sound();
my_audio.loadSound(my_array[k], true);
my_audio.setVolume(0);
var my_interval2:Number;
my_interval2 = setInterval(checkAudioProgress, 100, my_audio);
function checkAudioProgress(the_audio:Sound):Void {
var AudioKBytes = Math.ceil(the_audio.getBytesTotal()/1024);
var AudioPct:Number = Math.round(the_audio.getBytesLoaded()/the_audio.getBytesTotal()*100);
AudioPctOutput = "Loading Audio: "+AudioPct+"%"+" of "+AudioKBytes+" k";
}
count++;
}
I'm working against a deadline so any extra help would be greatly appreciated.
Many Thanks.
View Replies !
View Related
F8 Looping Problem Loading Multiple Ex Swf's
I've put a site together which loads several swf's into movie clip containers. The problem is that if you click on a btn of one of the loaded swf's before the others have completely loaded it will send the mc into a loop until the whole site is reloaded without interuption.
help!
View Replies !
View Related
Problem With Playing And Looping Multiple Swf Movies.
Hi
I have a flash presentation with 16 swf movies. I try to play them in a row inside "root" movie. I can't get the presentation to loop forever. It plays nicely to the end and the when it should start again it shows the "root" movie and stops, instead of jumping to first movie on array.
Also if i have only one movie in array list, then it plays only the "root" movie and not the one in array.
Here's the code i tried:
movies = new Array();
movies.push("act1scene1.swf");
movies.push("act1scene2.swf");
movies.push("act1scene3.swf");
movies.push("act1scene4.swf");
movies.push("act2scene1.swf");
movies.push("act2scene2.swf");
movies.push("act2scene3.swf");
movies.push("act2scene4.swf");
movies.push("act3scene1.swf");
movies.push("act3scene2.swf");
movies.push("act3scene3.swf");
movies.push("act3scene4.swf");
movies.push("act4scene1.swf");
movies.push("act4scene2.swf");
movies.push("act4scene3.swf");
movies.push("act4scene4.swf");
indeksi = 0;
loadMovie(movies[indeksi], "_root.kohdeklippi");
function seuraava() {
if (indeksi == movies.length) {
indeksi = 1;
} else {
indeksi++;
}
loadMovie(movies[indeksi], "_root.kohdeklippi");
}
this.onEnterFrame = function() {
if (_root.kohdeklippi.getBytesTotal()>10 && _root.kohdeklippi._currentframe == _root.kohdeklippi._totalframes) {
_root.seuraava();
}
};
All help is wellcome.
If someone knows how to make this in some otherway, the please share the info.
Maxx
View Replies !
View Related
[MX04] Looping Multiple Movie Clips
Hello all-
I am creating an ad/header graphic for a web site. I have 7 movie clips that I need to rotate through. They are pretty basic movie clips, picture fades in, text fades in, pauses for 15 seconds, then needs to move on to next movie clip. There's where my problem lies.
I have it set up on Scene 1, where I have movie clip 1 as a layer 1, movie clip 2 as layer 2, movie clip 3 as layer 3, etc. When I preview it, only movie clip 1 plays and then it repeats itself. It never makes it to the next movie clip. Is there some action script that I can put in to make it jump to the next movie clip? Is there an easier way to do this, or do I need to create one long movie clip that includes all 7 movies?
Thanks!
Kauzmo
View Replies !
View Related
Sound Looping Problem - Multiple Loops
I'm working on a site right now that needs to have a 14 second loop throughout a visitor's entire stay. I used a clip with an on off button and two frames. The first starts the music in actionscript and stops on that frame and the second has the music "on" button that basically goes back to the first frame. Both have stop () on them so that there is no jumping around. I then load that clip on layer 3 of my movie in the first frame of the main animation. It never goes back to that frame so it never reloads.
Here's the problem. After it loops a couple of times it starts it again as a second loop on top of the first. Even more bizarre is when I turn the music off and wait about a minute, it starts again on it's own. I know it doesn't go back to the first frame of the audio control clip because it still has the audio button on frame two.
You can check it out here. http://www.gorbs.com/gorbstest2.swf
Wait for it to loop 3-4 times, you'll hear the layers ound. Stop the audio and wait about 30 seconds - it will start all by itself... I don't get it.
View Replies !
View Related
Looping (or Adding Multiple Instances) Of MoveClips
Hey guys,
Im making a navigation and ive ran into a hang up, i want the content to repeat over and over when i scroll, but am not sure how to do it.
this is my setup:
I have a Swf that holds my controls (up/down). This swf loads another swf into a "holder" MC that acts as the content for the display.
The problem I am having is that i want for the content to loop over and over, so its seemless when you scroll. However, using the seup ih ave now, Im not sure how to acheive this. Any ideas or pointers guys?
Heres my code for the parent SWF
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
uparrow.onRelease = up
downarrow.onRelease = down
onEnterFrame(loadMovie("newprojectsSLIDER.swf",holder));
var ypos:Number = holder._y;
function up (){
var ytween:Tween = new Tween(holder, "_y", Strong.easeOut, ypos, ypos+105, .8, true);
ypos+=105;
}
function down (){
var ytween:Tween = new Tween(holder, "_y", Strong.easeOut, ypos, ypos-105, .8, true);
ypos-=105;
}
newprojectsSlider.swf is the "content" then the buttons move the MC holding it up or down.
You can find the sample Here
Thanks a Million
View Replies !
View Related
Looping Sounds Multiple Times (time Dependant)
Ok say for example I have a sound of a bell chime. I want to play this sound independent of the mainstage and have it key off local system time. So naturally I want to have my sound loop twice at 2am/pm and eleven times at 11am/pm etc.
Can this be done? Oh I hope so because that would be mega sweet.
View Replies !
View Related
Looping Sounds Multiple Times (time Dependant)
Ok say for example I have a sound of a bell chime. I want to play this sound independent of the mainstage and have it key off local system time. So naturally I want to have my sound loop twice at 2am/pm and eleven times at 11am/pm etc.
Can this be done? Oh I hope so because that would be mega sweet.
View Replies !
View Related
Playing, With Looping, Multiple File Types (FLVs And SWFs)
I need to play FLVs and SWFs in the same window as well as have all the videos play one after another and continue the loop. I will have 7 slots for video. The user will activate the playing of the videos and be able to select any of the 7 and the loop will continue on from there. I have found a pretty slick component using FLVplayback behaviors. It does everything for you, but works with FLVs only, I need to plug in SWFs as well. The reason behind this is that I want to show video and also vector animations created in flash. Compressing the swf to flv is a huge pain. I have spent the better part of today searching and searching for someone who has done this with no luck. I was hopeing one of you guys could help me out or point me in the right direction?
here is a link to the FLVplayback behavior i refered to earlier.
http://www.adobe.com/devnet/flash/artic ... viors.html
thanks a million!
__pg
View Replies !
View Related
Multiple Movie Clips Keep Looping On Main Stage When I Have A "Stop" Action In MC?
I've created a movie clip that has eight frames with a "stop" via actionscript in the last frame. In my main movie I have placed 11 instances to come in one "after" the other by varying each instance to it's own layer (11 layers) and placing each instance in the appropriate frame.
Example: instance one in frame one - layer one, instance two on layer two - frame two, instance three on layer three - frame three.
Problem: When I publish the file and open up the .swf the first instance comes in and stops. All the other instances come in but they all keep looping except the first instance in layer one frame one. When I move all the instances into frame one at the beginning of their layers the published swf file plays all instances at once and then stops just like I want.
Question: Why is it that the instances keep looping in different frames and not when they are in the first frame of their prospective layers? I want the instances to start one after the other and not all at once and then I want them to stop. I placed a "stop" action at the end of the MC?
All instances have not had any of their properties altered and are movie clips on the main scene. There is no added actionscripts anywhere else. I have attached the fla file which is really small of what I am trying to accomplish. Thanks in advance for all your help.
View Replies !
View Related
Multiple Movie Clips Keep Looping On Main Stage When I Have A "Stop" Action In MC?
I've created a movie clip that has eight frames with a "stop" via actionscript in the last frame. In my main movie I have placed 11 instances to come in one "after" the other by varying each instance to it's own layer (11 layers) and placing each instance in the appropriate frame.
Example: instance one in frame one - layer one, instance two on layer two - frame two, instance three on layer three - frame three.
Problem: When I publish the file and open up the .swf the first instance comes in and stops. All the other instances come in but they all keep looping except the first instance in layer one frame one. When I move all the instances into frame one at the beginning of their layers the published swf file plays all instances at once and then stops just like I want.
Question: Why is it that the instances keep looping in different frames and not when they are in the first frame of their prospective layers? I want the instances to start one after the other and not all at once and then I want them to stop. I placed a "stop" action at the end of the MC?
All instances have not had any of their properties altered and are movie clips on the main scene. There is no added actionscripts anywhere else. I have attached the fla file which is really small of what I am trying to accomplish. Thanks in advance for all your help.
View Replies !
View Related
Where Are The Streams?
Hi,
I'm trying to figure out where the streams are stored on the server. I'm running through the sample app "publishlive" and it seems be to be working, in that I get two videos (one local, one presumably from streaming from the server) going. On the Admin Console, I see that my stream is there. Yet, there is nothing in the #{Root_install}/applications/publishlive/streams/_definst_ folder.
I tried to change ns.publish("liveRecording1", "live") to ns.publish("liveRecording1", "record"), and that ended up throwing an error:
NetConnection.Connect.Success
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Record.NoAccess
at NatureCam/publishCamera()
at NatureCam/onNetStatus()
Everywhere I look it says that the streams should just show up under the applications folder, but it doesn't seem like its workign for me. I'm running on a linux platform.
Any help would be greatly appreciated! Thanks!
View Replies !
View Related
Two Streams Into One
hello,
can anyone tell me if this is possible to do?
i have a background video that is played. the user can record with his face with a webcam, which is set as a second video on the background. now i would like to save both, the background and his face into one clip. can this be done and what would be the approach?
many thanks
View Replies !
View Related
Download Streams?
I hope someone can help me with this, but I have a flash ad to do and a specification says "30k download, and up to four additional download streams upon user click are permitted. Each additional stream may not exceed 50k" Does anyone know what this means?
Hope someone can help. Thanks!
View Replies !
View Related
Audio Streams
Hi guys!!!
I was wandering if you could help me out in this one.
What script do i have to use, so that whenever someone enters my site, there is no sound and the preloader only loads the graphic content, and then then someone presses the right button, load the audio stream and then play it.
Thnks for your help
View Replies !
View Related
Swf Player For Streams
Hi guys
Does any1 know about a SWF player which supports mp3 streaming ?
My problem is that actually, we have windows media embedded to reproduce the audio stream, but we have got lots of users saying they cannot hear because they use Firefox, so this is why I'm looking for a crossbrowser solution, and I think swf would be great...
Thanks a lot in advance.
View Replies !
View Related
Sound Streams?
Anyone here familiar with which class methods can save sound streams? For example saving mic sound to an mp3 ... or simply manipulating the sound data as a packet, etc.
There seems to be good resources of I/O for sound, but not so much on the data stream manipulation itself. Any advice would be great.
View Replies !
View Related
Streams Go Offline Somehow
I have this very strange problem and I dont expect anyone to tell me the solution to it, but maybe you can give me some pointers into what I should be looking at:
I am streaming a bunch of cameras to a Red5 server and everything works no problem. However, I have also another NetConnection to the same Red5 server that just executes call() methods and lets the server know which one of the streams to actually pay attention to.
Now Somehow, the act of using the call() method exactly 4 times makes all the streams go offline, connection is cut, or something. They stop streaming. Is there a way that this call() method could somehow disrupt the connection of the streams? I am trying to call remotely a method dostuff(). And I make that method do absolutely nothing! public void dostuff() {}. And still after a few calls the streams go off. Its just the act of calling a remote method that messes up the streams!
I have no idea what is going on. Can it be that somehow the stream connections are disrupted when I use a separate connection for non-streaming purposes or something? This is not an issue in the old version of this program that was written in AS2, but in AS3 i get this weird behavior
View Replies !
View Related
Mixing Streams Together
It is my understanding that the only way to have an application in which multiple streams are allowed to play at the same time (for example, a simple audio conferencing app) is to have each client subscribe to each of the individual streams. I'm wondering if, on the other hand, it would be possible to have each client publish its own stream, then combine all the streams at the server and publish just one "combined" stream where all the audio is mixed together--sort of what a telephone switch would normally do. This would make it possible to, for example, maintain a fixed bandwidth requirement for each user as opposed to have the bandwidth required by each user grow arithmetically with the number of users in the conference.
Any thoughts?
Thanks!
View Replies !
View Related
FCS Zombie Streams
I've been having problems with fcs (1.5 update 2) loosing recorded streams and other fun stuff, and in the process of narrowing the problem down, I've found a related problem that's cool (not).
FCS will accumulate zombie streams if you open and start recording and then stop playing without enough delay... ie:
ActionScript Code:
var stream = Stream.get( new_unique_stream_name );
stream.record();
stream.play( some_live_published_stream_name );
// later on...
stream.play(false);
delete stream;
In my case, I can see that if my stream.play(false) gets called before the application.onStatus() announcing[1] the new stream gets called that the stream gets 'closed' but hangs around in the App Inspector as a zombie stream with no name, no time, etc.
However, if you look in the streams directory, you can see the .FLV file still growing in size as its still recording data.
If anyone is interested, I can provide a main.asc and a client.fla to show this problem.
-Trevor
Note 1:
Trace()ing the info passed to app.onStatus gives:
Good:
Quote:
app.onStatus: NetStream.Record.Start: Recording archive/newstream70.
app.onStatus: NetStream.Publish.Start: Publishing archive/newstream70.
app.onStatus: NetStream.Play.Reset: Playing and resetting clients/tester1/rx.
app.onStatus: NetStream.Play.Start: Started playing clients/tester1/rx.
Client.stopCut: archive/newstream70
app.onStatus: NetStream.Unpublish.Success: archive/newstream70 is now unpublished.
app.onStatus: NetStream.Play.Stop: Stopped playing clients/tester1/rx.
Bad:
Quote:
app.onStatus: NetStream.Record.Start: Recording archive/newstream71.
app.onStatus: NetStream.Publish.Start: Publishing archive/newstream71.
app.onStatus: NetStream.Unpublish.Success: archive/newstream71 is now unpublished.
app.onStatus: NetStream.Play.Reset: Playing and resetting clients/tester1/rx.
app.onStatus: NetStream.Play.Start: Started playing clients/tester1/rx.
View Replies !
View Related
Closing Streams From FMS
I am having an issue and need some help please. I have a SWF file that has multiple scenes that I am using the FLV 8 plybk component using the component inspector to set all of the parameters. I have a cue point that moves it to another frame label where you then click a button to move to another scene, but the FMS monitor still shows an active open connection. When you get to another video it then opens another connection, and so on, and so on. What is the easiest way to close the connections not knowing what the stream name is at all times? knowing that FMS gives the same stream a different name each time and for each user. I have used "stream.close()" and a couple of others but it never works. Please help me to find an easier way then hard codeing it.
Thanks
View Replies !
View Related
Streams Not Recording
I'm new to FMS, so hopefully this problem has a simple answer. I'm recording video streams using a simple call to NetStream.publish('path', 'record'). It was working fine a few days ago, but now it's not and I'm not sure why -- it seems that everything is fine on the client, but no FLV files are appearing on the server.
Tracing out the status event from NetStream:
-- status --
description,Connection succeeded.
code,NetConnection.Connect.Success
level,status
-- status --
clientid,112165952
description,test is now published.
code,NetStream.Publish.Start
level,status
-- status --
clientid,112165952
description,Stopped recording test.
code,NetStream.Record.Stop
level,status
-- status --
clientid,112165952
description,test is now unpublished.
code,NetStream.Unpublish.Success
level,status
The server log just says a connection has taken place. The weird thing is that In the console, under "streams", it lists the stream name but says its type is "live" even though I passed "record" to NetStream.publish().
My application's directory (program files/macromedia/flash media server 2/applications/photobooth) is completely empty.
I've tried restarting the server and the computer and everything.
Does this sound familiar to anyone? Thanks.
View Replies !
View Related
Syncronized FLV Streams
I know this has been asked before but I can't find any answers at the moment.
I need to create a simple app, where users will be shown a series of 8 minute videos. After all users view a video, there will be a Q&A session. Then the presenter starts the next video.
My question is, can I ensure all connected users are synced in FLV playback? In other words, when the presenter presses play, all uses are done exactly 8 minutes from that point. I know I could do it if the stream was a live stream from the presenter's cam, but what about from an FLV file?
View Replies !
View Related
Streams In Idle?
I am new to FMS. I am working with the videoPlayback component. I have tried several different ways of connecting to the FMS server, including the simpleConnect component, and coding in the connection myself. In all cases I am able to successfully connect to the server. Within the console I see my client connections, as well as the prospective streams. However, when I hit the play button on my videoPlayback component, nothing happens. Within the streams window in the console, I see the streams there, just sitting idle. Also, the name of the stream is blank (says "-") and the time says 0.
My main.asc file contains only one line - it loads components.asc. According to the server logs, all components are loading successfully.
I have made sure to place my FLV within the stream directory and made sure to reference it by its name only, not with the .flv extension.
Thoughts? Thank you!
Candace
View Replies !
View Related
Other Input Streams To FMS
I am new to FMS and I am currently researching using the developers edition of FMS 2. I can easily stream a live feed from Flash Media Encoder, but how can I stream from other sources like FFmpeg? I can only stream from my Web Cam.
Thank you
View Replies !
View Related
FMSS 3 Streams - Please Help
I am currently using the developers version to do some testing, but my plan is to purchase the FMSS 3 license.
In reading the "readme.txt" file, it gives instructions for deploying an unsigned vod service. If I edit parameters in the Application.xml file, will it work in FMSS 3?
Also, how do I configure my .connect(rtmp://myserver.com/???) connection string to use <streams> that I have added to the Application.xml file? I can access FLVs in the default "media" folder, but I cannot access FLVs from locations defined by my <streams>.
Here's a sample of my <streams>low;C:inetpubwwwrootvideoslow</streams>
Your assistance is greatly appreciated.
Brady Roberts
Edited: 02/12/2008 at 03:09:27 PM by golfguy
View Replies !
View Related
Transcode Mp3 Streams
Hi there,
I've got a question about Flash Media Interactive Server 3. We'll be using this server for the streaming of MP3's. I want to know if there is a way to enforce a bitrate for streaming. For example: no matter in which bitrate the MP3 is encoded, I always want to stream it in 192 kbps.
This is very, very important since we're an organisation with an extensive collection of, currently, 6TB of digital media. We're currently digitalizing our entire catalogue which will result in approx 40TB of digital media. ALL this media will be streamable so we need a way to throttle bandwith.
(our collection consists of ALL records that have been released in the Netherlands in the last 35 years..)
Can someone enlighten me about this subject?
Regards,
Nico Beemster
CDR
View Replies !
View Related
Dead Streams On FMS
I hoping this is something silly - I am streaming live stream (using FME) to a FMS 3.x server and once I stop the stream I see the unPublish on the server side code but I still see the streams continue to exist according to FMS console I even tried to force this by using following code in the upPublish event
s= stream.get(streamOBJ.name);
s.play(false);
delete s;
application.gc(); // over kill but still did not work
Is there a duration to these dead streams (in some config file?) or another way to stop/kill streams that have come into FMS and have unpublish (I don't understand why the unpublish streams are still there). The problem is I need to republish these same streams and I get an error (badname etc) because they still exist in FMS
Help!
View Replies !
View Related
FMS Streams Questions
i have two (2) application running under FMS namely video recorder, video player and a simple flash apps. video player has the feature to broadcast live feed and prerecording clips. when video player is scheduled to play a live feed to will connect to the stream of the video recorder and when it is scheduled to play a prerecording clips the video player will play the video clips. My problem is how can I connect the simple flash apps to broadcast the feed that the video recorder is currently playing?
View Replies !
View Related
Halting FLV Streams
Hello
I'm building a xml powered flv player. I am wondering whether it is possible using actionscript 2 to just load in the first frame of an flv. The reason I'm interested is that we have a bandwidth issue and want to display the first frame of some animations we have generated ,but hoped we might be able to avoid streaming the entire flv in unless the viewer explicitly requests that.
Can any help? It would be much appreciated.
Chris.
View Replies !
View Related
Downloading Streams
A while back it was possible to use realplayer to "download" ie collect the streamed video off youtube and produce a flv file.
Whilst now it is necessary to re-download the file again.
I'm curious, when loading a streaming video using flash, where does the data go? Does it go into an flv somewhere on your hard drive, or is it placed in some other sort of data clump in temporary memory files?
Thanks
View Replies !
View Related
Flv Streams In A Loop (possible Or Not?)
Hi,
As I was trying to create a videowall effect I got stuck. The first piece of code works for one flv stream. But when I want to use the same code in a loop to attach "video_1.flv" to 5 different video clips (video1,video2...) placed on the stage the streams video streams don't appear. I am probably doing it the wrong way...
Thx
ken
this works fine for 1 flv
nc = new NetConnection();
//create a connection
nc.connect(null);
//null connection for progressive download
ns = new NetStream(nc);
//create a stream
video1.attachVideo(ns);
ns.setBufferTime(10);
myStreamPath = "videos/video_1.flv";
ns.play(myStreamPath);
// This is where it goes wrong...
for (i=1; i<=5; i++) {
nc = ("myNet"+i);
ns = ("myStream"+i);
video = ("video"+i);
myStreamPath = "videos/video_1.flv";
nc = new NetConnection();
//create a connection
nc.connect(null);
trace(nc);
//null connection for progressive download
ns = new NetStream(nc);
//create a stream
video.attachVideo(ns);
ns.setBufferTime(10);
ns.play(myStreamPath);
}
View Replies !
View Related
Flash, Quicktime Streams
I'm trying to see if it's possible to embed Quicktime streams (RTSP) into Flash movies...
I've been poking around in Flash, and it seems to be limited to linking to a QT movie, or else embedding it directly. I've been trying to link the movie to an .m3u playlist file, but these only seem to work with continuous streams (i.e. radio stations)... Is there a way to open a QT stream with Flash's scripting language? Any ideas here?
Many, many thanks!
View Replies !
View Related
Windows Media Streams
hey to all,
is it possible to play a live windows media stream through a swf.
the url is of the form mms://server/broadcast_name
if u put this into a browser it will open windows media player.
i am trying to get around the problem of having less functionality in firefox and ns clones than in ie
regs
g00fy
View Replies !
View Related
Preloading XML Or PHP Content (Using Streams?)
I've been following the GoToAndLearn tutorials for importing PHP files as XML files aswell as for the advanced Flash preloader. But I hit a problem when I combine the two
Even after I've done as explained to set the component data to load in frame two, it still does not preload the data I'm importing from the PHP file.
It completes the preloading then will hang for ten or 15 seconds while it imports the PHP data.
Whenever I check this out by simulating a download in the "test movie" it shows that when it gets to frame 3 where it is meant to download this, there is a new field available relating to the file called streams which shows how much of the stream relating to my php file is downloaded.
How would I go about incorporating the data from this streams field into my preloader?
View Replies !
View Related
[F8] Pause All But Sound Streams?
I have quite a few pauses for visual pauses, so the images would match the sound. Now, as a result, they are pausing the sound too.
Is there a way to get something like this to pause everything BUT the sound streams?
pause_seconds=3;
stop();
thetime=getTimer()+pause_seconds*1000;
while (getTimer() < thetime) { }
play();
View Replies !
View Related
|