Problem LoadSound From LIVE STREAM
I'm loading LIVE stream. It works, but sometimes output return mi this message :
Error opening URL "http://somedomain.com:9000/live64"
Where is problem? My code:
PHP Code:
var radiostream:Sound = new Sound(); radiostream.loadSound("http://somedomain.com:9000/live64", true); radiostream.setVolume (100); _soundbuftime = 5;
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 03-01-2006, 10:17 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Can I Insert An Extra Audio Stream Into The Live Stream?
I have a project where I need to set up a broadcast (from pre-recorded files) so people can 'tune in' at a certain time to watch a show. Some of these shows should have a soundtrack, can I use SSAS to overlay an extra audio stream? So I would send one video and two audio streams out to the client as one stream.
Alternatively, can I use SSAS to replace the audio, so effectively demux the original audio off and send out a different audio stream in its place.
Thank you in advance for any advice.
Embed Live Cue Data In Live Stream?
I am currently using the new FME to encode live to a FMS. Both applicatioins are running on the same machine. Is there a way to embed live cue and metadata into the live stream? Once embedded we want to record the stream AND send it on to viewers. Is there a way to process this on the server. The live cue and metadata is coming in the serial port.
LoadSound For An MP3 Stream
Hi - I have a script which loads an MP3 stream off a Shoutcast server that plays it fine when I run it in the Flash Player, but won't work at all in the browser. I have the latest version of the plugin.
Any ideas?
Thanks.
LoadSound Stream Problem
Hi,
when I do loadSound( "http://local/mysound.mp3" );
this doesn't work everytime. Half of the time it plays fine but on the other half, it just load there and don't play at all. So just then, i set streaming to true:
loadSound( "mysound.mp3", true ); and this works excellent. Everytime I preview, it plays but this set me a problem. Not only I cannot do a resume (to position) on streaming during pause but also my fast forward is crippled. Any ideas will be greatly appreciated?
Live Stream
Hi, i have my own internet radio station and i would like to let people listen to it from my flash website so how can i do this.
Live Mp3 Stream
Hi, I'm working on this site: http://www.kalicious.com/projects/in...e/witr/launch/
I am using a live MP3 stream of the radio station so that I can play the live music and have the user ontrol the volume, but I am running into many problems with it.
For instance, when I compile the SWF in Flash, it compiles and then the entire flash environment immediatly crashes. When I run the swf in Flash player off my machine it works fine. When I run it embedded within HTML or uploaded to a server, the sound plays for a few seconds, then just stops. This is on PC.
On mac, on the other hand, it seems to always work fine in all situations.
I'm pretty sure this has something to do with Sandbox security settings, but I don't know much about this side of things. Does anyone out there know of a workaround for this problem?
Live Stream
hi friends,
I have live stream from media encoder to media server.I want to know how much of speed i want to live stream.
my encoding configurations are
size : 400X 300
FPS : 25
2 pass CBR
video bitrate :200kbps
audio 22050 Hz
bitrate :32 kbps
please help me to find a good internet connection....
When calculated the bitrate using adobe bitrate calculator ,it shows 288 kbps.
please help me to find out it...
regards
harilal
Live Stream
I can stream the content to the flash 3 server, but how does the end user connect to a live stream? Is it like a VOD application?
Live Stream With H.264
Hi,
It's possible use live stream video with codec h.264 without use FME 2.5 like encoder.
Exactly, is it possible create a flash application (exe) and use codec h.264 for live stream?
Thanks
Stefano
DVR Live Stream
Hi every body i need help i try to view live video from dvr which connected via local network and has an ip and there are 8 cameras connected to the dvr i want to use flash media server for streaming
Live Stream Help
Hi,
I have been doing a lot of Flash with progressive download and also streaming Flash but I have been asked to create a piece that uses live streaming Flash. I tried using the Flash Import wizard with the RTMP link that I was given but alas, it failed to work. I don't understand the live streaming video...
I am having troubles finding a tutorial on this. I looked at the Flash tutorials and only found the basics of using the Flash wizard.
Please help!
Thanks!
janst
Can Stream LIVE, But Can't Stream FLV -=
Hi there. Pulling out my hair...and i'm bald enough already!
I built a FLA that streams live from the FME - works great.
Cannot for the life of me figure out how to use the FLVPlayback (or anything for that matter) to stream a regular FLV.
Any help would be SO helpful!!
My fms and flv set up - ... applications/playapp/play.flv (also put in streams folder and _definst_ folder with play.flv in there just in case)
in the source, I have tried all variations - but is currently: rtmp://edge2.xxx.net/playapp/instance1
It demands an instance name, even though I don't know how that works (i know i put the source in FME with that, but this is an already made FLV).
Sincere thanks -
adam
Help With Live Stream Switcher
I want to be able to have several locations stream audio/video to a flash media server. I am using an adobe video switcher right now and it works great
http://www.adobe.com/devnet/flash/ar..._switcher.html
but I need to be able to get the audio from a DV cam, which is not possible through the browser plugin. I am able to grab the audio from the DV cam when using Flash Media Encoder. When I stream from the encoder to the FMS, in the "switcher" swf, the stream does not appear in the list. So I think I just need the code to retrieve the list of streams on the FMS. Can anybody help? Thanks.
Detect Live Stream
Any ideas on why this code is not working? It never traces that the video is not found. Even when I put in a wrong address.
Attach Code
//------------Make Initial Connection-------------------//
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://flashmedia.administaff.com/live/");
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(0);
video.attachVideo(ns);
ns.play("livestream");
ns.onStatus = function(infoObject:Object):Void {
if (infoObject.code == "NetStream.Play.StreamNotFound") {
trace("Could not find video file.");
}else{
trace("Live is working!");
}
}
Can Not Connect To A Live Stream
I just can not get the live stream. I have two files, one sender and 1 subscriber. I'm working localy testing FMS.
I just have a video object on each stage and the actionscript:
sender:
var rtmpPath:String = new String();
rtmpPath = "rtmp:/test";
var ncBase:NetConnection = new NetConnection();
ncBase.connect(rtmpPath);
var ns:NetStream = new NetStream(ncBase);
local_sender.attachVideo(Camera.get());
ns.publish("testVideo","live");
the video object instance name is local_sender.
the subscriber:
var rtmpPath:String = new String();
rtmpPath = "rtmp:/test";
var ncBase:NetConnection = new NetConnection();
ncBase.connect(rtmpPath);
var ns:NetStream = new NetStream(ncBase);
local_re.attachVideo(ns);
ns.play("testVideo");
I can see video from camera in the sender file but in the subscriber nothing.
In the flash media server console i can see 3 streams. one with the name i create and the other two generic, like CBAoQD6H...
how can test is the stream out is really going out and if so, if the stream in the problem?
I dont have a main.as file in my folder application. but i tried putting there one from the flash 8 samples and tutorials and didn't work.
any help will be very appreciated.
Thanks
Viewing A Live Stream From FMS
I'm using the Adobe Flash Video Encoder to send a live flash video stream to my FMS 2 (Developer Edition) on a Windows 2003 R2 Standard Edition Server
I'm connected to FMS and the encoder IS sending the video. When I look at the FMS Console its confirmed that I'm connected and publishing a LIVE video.
I can't view the video, which I thought was going to be the 'easy' part.
I can't for the life of me figure out how to configure a flash .swf embedded in a web page to VIEW the video.
IT"S MADDENING. I'm a bright guy, but in my opinion FMS is very poorly documented when it comes right down to telling you HOW to make things work.
Any help is appreciated.
I'm good with Flash, but I come from a Windows Media Server background. This is my first foray into FMS.
Mirroring A Live Stream
I need to take a live stream from a camera attached to server A, and mirror it to server B, so that local users on server B can view it. I don't want it saved to server B, I want it to remain live. I'm using a push model - server A sets this up.
I think that if I create a netconnection on server B looking back at server A I can use it to add a netstream attached directly to server A's camera. Is this correct?
I am as yet a very inexperienced Flash developer, and my efforts are impacted by the fact that I am now modifying someone else's code using someone else's design patterns.
Thanks.
Live Stream And Codecs
Hello.
Here is described how to use different codecs for different clients (Sorenson Spark for Flash Player 7- and On2 VP6 for Flash Player 8+).
http://livedocs.adobe.com/fms/2/docs/00000081.html
But as I can see, it is only suitable for recorded .flv files.
Is there any possibilities to customize stream delivery or live streams?
Can FMS2 transcode streams on the fly?
Thank you.
Sending Live Stream From One FMS To Another FMS
Hey,
Here's what I would like to do:
1. The Flash Media Encoder sends a live stream to FMS 1
2. On FMS 1, a connection to FMS 2 is set up and the live stream is sent to FMS 2.
3. Every second, a message with metadata is sent to FMS 2 using Stream.send()
4. A Client connecting to FMS 2 receives the stream and the metadata that was sent along with it.
I know this sounds pretty confusing, but the main problem is, that I don't have access to the FMS 2, so I can't call Stream.send() there. First I thought the solution would be using Stream.play() with a remote connection, but when I call the Stream.send() method nothing happens on the client side.
Then I thought I could do the whole thing by using a client side application that connects to FMS 1, receives the stream, embeds the metadata and publishes it to FMS 2. Here's the code I used:
// Connect to FMS 1 to get stream
client_nc.connect("rtmp://localhost/encoder_stream/room_01", "Client");
// Create input stream
in_ns = new NetStream(client_nc);
// Connect to FMS 2
akamai_nc.connect("rtmp://localhost/akamai/room_01", "Client");
// Create new stream, feed with in_ns and send to FMS2
out_ns = new NetStream(akamai_nc);
out_ns.publish("stream");
out_ns.attachVideo(in_ns);
Unfortunately the attachVideo method only accepts a camera and not a netstream object.
So this is where I'm standing now... anyone any ideas?
thanks
Buffering Of Live Stream
Hey guys, I noticed whenever my FME's connection to the FMS get laggy, the FME seems to buffer the stream. The streaming service hence becomes 'not live' as the users watch events that happened minutes ago. Is there any settings that I can apply to either the FMS or FME to prevent this? Currently, the only solution I could use is to stop the FME streaming and restart it, flushing out the buffered data.
Lag When Recording Live Stream
I am experiencing a very strange behavior from FMS
I am conducting a live conversation between 2 people using their webcams. One of the participants have a relatively slow computer (we think its the anti-virus). When conducting the live session everything seems to be fine... Still a bit slower than fast computers but still pretty good.
We are doing the following test:
We do a combined count from 1 to 20.
participant-1 counts "1" (this is the slow computer)
Only after hearing his count participant-2 counts "2"
Again, only after hearing his "2" participant-1 counts "3"
and so on...
so the count goes from participant-1 to the server and from there to participant-2 only then the "2" count leaves participant-2 to the server and so on...
This session is being recorded. What I am getting in the recored video is very strange...
I am getting participant-2 count before participant-1. So the count goes:
2,1,4,3,6,5 and so on
How is this possible to have the order correct on the live and not on the recorded?
Record Live Stream With Different Name
Hi all!
I have a live streaming application running with FMS2 and I have come across an issue with recording streams. My application allows a client (from a pool of multiple clients) viewing the stream to record the stream to the FMS server. I start the recording on the server side with the following (simplified) code:
application.recordStream = Stream.get(instanceName);
if (blnRecord)
{
// start recording
application.recordStream.record();
}
else
{
// stop recording
application.recordStream.record(false);
}
There is something that I'm having trouble with though - is there a way to record the stream with a different (unique) name rather than the instance name? I ask this because I need to have different names for each different recording session. Using file.renameTo( ) after the recording finishes works in theory, but in practice it seems that the recorded file is buffered before it is written to disk. So when the application.recordStream.record(false); line is invoked, trying to rename the file now is not possible, as it's still being written to the disk. It seems there is no way to know when the final, complete file has finally been written to the disk.
The problem here is that once the first recording is finished, another user can start the record process again. If the file has not been renamed or moved, the previous recording will be overwritten!
So, is it possible to record a stream, but save it to disk with a unique name?
Thanks in advance,
K.
Publish H.264 Live Stream
Hi all,
I'm currently trying Flash Media Server 3.0 with CS3 and Flash Player 9.0.115. Our goal is to implement a videoconferencing application with H.264 encoded video.
In the feature list, it's clearly stated that the server allows live publishing of H.264 content. I haven't seen any documentation on how to do this yet. I don't know if the player publish in H.264 by default or not?
Is it possible to do this?
Live Webcam Stream
I am new to the FMS....I have down loaded FMS3....I am also trying to get other to view me on my webcam through a website. My question is, do I need the Media Encoder for FMS3 or is that already included in it?
Any help will be great.
Thanks
Live Stream In Different Resolutions
hello,
I have an urgent question for the following purpose. We plan to develope a
solution consisting of a sender software for streaming live video to the streaming server. Now more than one client should be able to connect to the stream of the server. Because the different clients are connected with different bandwidth rates the server should be able to convert the video stream (e.g. the video width and height, framerate and quality) on the fly. Maybe a client with a better connection than DSL should get the video in a resolution of 640x480, a DSL client should get the video in 352x288 and a client with ISDN in 176x144.
Is there a possibility to do this with the FMS server on the server with server-side ActionScript? Or can I limit the requested stream size on the client side? Or anything I can do?
I hope anybody can answer my question quickly, its really really urgent.
Thanks in advance
FMS Live Stream Timeout
Can someone please advise on how to create a timeout to a FMS Live stream when using the FLVPlayback component in Flash. The FLVPlayback connects to a FMS Live stream that takes a live feed from a webcam, in order to preserve clients bandwidth, what would be the best, most reliable way of creating a timeout and disconnecting the live stream after a set period of say 30 minutes to stop clients leaving the stream permanently connected - server side on FMS (how?) or in the .swf or using code in the web page containing the .swf object.
Many thanks.
What Equipment To Use For A Live Stream?
My company will be streaming a local event soon and I was wondering what equipment is needed/recommended to use. All I can come up with is a Camera, Laptop and Internet access? I'm sure theres something else. How do I get the stream to my server from a Downtown area? Will bandwidth be out of this world if it is High Def and lots of viewers? Looking for some some help in the right direction. Also, is it possible to have 2 cameras streaming?
Is It Possible To Show Live And Vod In One Stream?
hello
i am playing here with fms i want to make a sort of home tv-channel
i have created ".swf-tv_set" for the end user wich connects to my server
the question is: what techniques should i use (on server-side maybe) to control what type of data (live or vod) is being streamed to the user? i have also created "director's swf" to switch between output data, but how can i switch live/vod in one stream, to which the user is already connected?
thank you in advance.
Check If A Stream Is Live Via PHP?
Hi all!
Is there any way to check if a certain RTMP stream is live, via PHP?
The homepage of my site (which is built with PHP) will change depending on what streams are live (there are multiple streams). It's not enough to be able to check in a swf file as I can't then use the information to change the homepage or do other cool stuff like add to an RSS feed, or notify people via SMS/IM.
Is there any way to check this?
Thanks!
PHP Live Stream Status
Hello,
I am creating a script to function like Ustream.tv or Justin.tv and it is currently configured at www.Toxin.tv. What I need to do is retrieve the status of a stream (amount of users and whether or not it's live) more importantly, though, whether or not it's live in JavaScript or PHP - if this is at all possible.
Please help me, If I can't figure it out I'll just pay someone to do it :P but I'd really like to try to do it myself first. Thanks so much in advance.
H.264 Not Working In Live Stream
Hi,
I have a HD Camera streaming a live feed through FME 2.5 to FMS 3.0 using the VP6 codec and it works fine.
I have now been trying to get the same stream running via H.264 and althogh FME 2.5 connects to the FMS 3.0 server and the stream starts with FMS 3.0 reporting the stream no problem.
The Client application crerated with Captivate 3 using Flash Player 9 for publishing no longer dispays the video.
Switching back to VP6 works again.
Any one have any idea what I should be doing?
Cheers
Stream Live Audio
Hi,
I would like to develop a chat with voice.
I found several examples of stream live audio-video, but just want audio.
What search?
Detect Live Stream
Can somebody please answer this question to me:
With the Flash Media Streaming Server (not the interactive version), is it possible to detect if a live stream is running?
I want to show an overview of several live streams on one page.
The ones that are not running should show as "offline". The others should show an online thumbnail.
I don't want the visitors to have to go to all of the pages only to see that the stream is offline.
Live Stream Player
hi,
i'm creating a a web broadcast application for a school event which records from multiple video-camera and encodes using Flash Media Encoder & FMS3 streaming. using the rtmp to apply onto a player in AS3.(normally i done it using FLV playback) But the requires states no Playback component should be used. As the deadline is the end of the year i hope u guys could direct/links me some tutorials which would be helpful.
Thanks.
yours gratefully,
Live Stream Through Flash
Ok so I am trying to learn how to set up a LIVE WEBCAM Stream through Flash.
What type of equipment do i need? Can I used a standard logitech webcam? Or do I need something more advanced? I am going for something of reasonably higher quality if at all possible.
I need the webcam to stream the feed through flash. Is there software that I can buy that does this for me automatically?
Also, can I display more than one stream?
If anyone knows ANYTHING about LIVE Streaming through a webcam to Flash, please help me out!
Benjamin Chu
Detect A Live Stream
Code:
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://flashmedia.NunyaBusiness.com/live/");
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(0);
ns.play("livestream");
video.attachVideo(ns);
I am using the above code for a live stream. My quesiton is how do I detect whether there is content being streamed and if not, to show a "Coming Soon" movieclip? I know that a listener would do the trick, but I have no experience with listeners in AS2.
Your help is greatly appreciated
AS2 - Detect Live Stream
Code:
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://flashmedia.NunyaBusiness.com/live/");
var ns:NetStream = new NetStream(nc);
ns.setBufferTime(0);
ns.play("livestream");
video.attachVideo(ns);
I am using the above code for a live stream. My quesiton is how do I detect whether there is content being streamed and if not, to show a "Coming Soon" movieclip?
Your help is greatly appreciated
Live MP3 Stream Player
Hi,
I wrote a simple function which connect to an mp3 streaming radio.
It works fine with flash player 6 under windows but not under pocket PC.
Under PPC it make connection to server, start buffering but never start to play.
Another strange thing under windows XP (not pocket pc). It works when opened with standalone player but not in internet explorer. It works under mozilla.
The script is :
ActionScript Code:
_soundbuftime = 1; // do not change problem
mp3 = new Sound();
mp3.loadSound( "http://64.236.34.141:80/stream/1040", true );
Live Webcam Stream
Dear Flash Experts,
I am wondering, what are the options for a live webcam stream. So people can see live things on your site..
Anyone with experience in this?
Respectfully,
Mies
How To Stream From Live Internet Radio
I have a internet radio station. Right now the stations streams live from an html document. I would like for it to stream live in flash. the Url to my station is http://66.206.30.21/urbanvibe
can someone help me pleeese??????
Route Live Stream To Port 80
Hello all. I am trying to get a live flash stream set up and am having a real hard time. I am using Speedera FCS. Under Helpful tips they have a tip regarding ports and firewalls that says:
"You can make the delay much shorter by just having the traffic sent immediately to Port 80 without trying any other ports than the native port for RTMP, since port 80 is almost invariably the best alternate choice"
Can anyone tell me how to write the actionscript to route the stream to port 80? It would be greatly appreciated. I am getting really frustrated. Thanks in advance.
AS3 Live Stream Publishing Bug In FireFox
Hi everyone!
I hope that some AS3 guru can help me
I have one AS3 development trouble which I can't solve during weeks...
It's a phantom bug from FireFox flash player...
I will be happy if anybody can help me.
Short info about bug:
I have one AS3 swf(1) loader, that loads another AS3 coded swf (2).
(2)swf contains code, which gets webCam video, and then publish it to FMS3 server.
All is ok in IE7, but in FireFox any mouse event stops the stream publishing without any reason... (ex: MouseOver to video object on the stage, that shows video from webCam (local video, not published on fms)).
Swf published to the Internet server.
If I open (2)swf directly (without loading it into another swf) - all works fine in both browsers.
Thank you in advance!
Have a great day!
Live Stream Encoding And Publish.
Hi all, I'm searching around to find whether there is something that can encode the video captured from camera then use publish method to publish the encoded stream to server.
This is the same way Flash Encoder does. Yes, but I wanna know how to make it.
I'm using below code to get live video from camera and then publish to server:
Code:
client_nc = new NetConnection();
client_nc.connect("rtmp://localhost/live/");
mycam = Camera.get();
mycam.setMode(320,240,15);
mycam.setQuality(10000,0);
myVid.attachVideo(mycam);
output = new NetStream(client_nc);
output.attachVideo(mycam);
output.publish("livestream", "live");
in_ns = new NetStream(client_nc);
//in_ns.receiveVideo();
in_ns.play("livestream");
Replay_video.attachVideo(in_ns);
stop();
Then I open livetest.html file in the sample folder. it seems that the live video is too slow and of low quality.
Then, i use flash media encode 2.5, and find that the live video in livetest.html is perfect!
So, can someone give me a hand if i want to use some encoder before publishing stream up to server?
Webcast, Live Video Stream
Hi,
My customer asked me if I can add to the flash website something called webcast, which is / as he explained / live video streaming.
I totally have no clue what elements are required for this?
I mean how does it work? Where is the video kept?
Sorry If I ask silly questions but can anyone explain me how does live video work and is it possible to make it in flash MX? If so, how?
thanks
mko
Can't Play Video From Live Stream
Hi!
My prog consists of thee parts: first part - broadcaster - publishes stream to the second part - server. Server republishes it to the other host-address and player tries to play it from there. Streams are created, but there is no picture why it can be, and how I can fix it? Aproximatly my code looks like:
ActionScript Code:
/////////////// BROADCASTER ///////////////////////
br_ns = new NetStream(nc);
br_ns.attachAudio(source_mic);
br_ns.attachVideo(source_cam);
br_ns.publish("myStream", "live");
/////////////// SERVER ///////////////////////
in_ns = new NetStream(nc);
in_ns.setBufferTime(2);
in_ns.play("myStream");
out_ns = new NetStream(nc_OTHER);
out_ns.setBufferTime(2);
out_ns.attachVideo(in_ns);
out_ns.attachAudio(in_ns);
out_ns.publish("myStream_out", "live");
/////////////// PLAYER ///////////////////////
pl_ns = new NetStream(nc_OTHER);
pl_ns.setBufferTime(2);
myVidObj.attachVideo(pl_ns);
pl_ns.play("myStream_out");
In App Inspector all streams are fine: myStream_out is publishing and playing live, but THERE IS NO PICTURE.
But, If player will take the stream just from the broadcaster (without server) all works fine! What can be wrong in server?
No Live Stream For VP6 Codec? OR FLASH?
I'm working on a rather robust media delivery project, and ran into a (VERY) frustrating project. I have been informed that content delivery networks CANNOT stream VP6 live. Additionally, flash live in general is supposedly virtually impossible without quality issues. Has anyone come across this?
Akamai said they could do a broadcast live with Sorenson Codec, but is there even a program that encodes sorenson on the fly and streams to a server?
Supposedly this is a flaw in Media Server 2 that is supposed to be fixed in a 2.5 release... is this correct?
Edited: 12/20/2006 at 06:17:25 PM by Brenton07
Stream Live Video Within Flash
We are working on a live streaming solution for a client using Microsoft Media Streaming Server - We need to find a way of delivering a cross platform / cross browser solution for viewing the streaming .asf video - This is a live video feed of a live event - The only way we can think to do this at the moment is to some how stream the video within a swf... Anyone know if this is possible or have a better solution?
Problem While Playing Live Stream
Hi everyone ,
i have two streams published by two different clients, if i want to play both the two streams in a third client how can i do that ..any help?
Client 1:
ns_out.publish("Stream1","live");
Client 2:
ns_out.publish("Stream2","live");
Client 3:
Here i want to play both the above streams published...
What code i can use ?
|