Flash Media Server goes down mid-stream
So if my application is streaming a video and FMS goes down
during it... I need to be able to error handle this. I'm wondering
if FMS would return some sort of message or error upon going off
line or if there is any other manner in which I could handle this.
Ultimately I'd like to give the user a message informing them of
the problem... or possible just switch to a progressive version of
the same clip.
Any ideas?
Well... if the server goes down it can't very well respond to
it.
What you want to do is have your client side
netConnection.onStatus method repond to the change in the
connection and notify the user.
http://livedocs.macromedia.com/fms/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?href=00000 574.html
Similar Messages
-
How to integrate flash media server 4.0 live streaming for iOS devices ?
Hi All,
I have website which has live streaming module its working fine, same module i want to integrate for iOS devices. For live video streaming we are using FMS 4.0. So please let me know how we can integrate this for iOS devices using flash media server 4.0.
Thanks in Adavnce
Mohammad ShariqueYou need to place the crossdomain.xml in the webroot folder. Create a text file in the webroot folder using notepad, and call it crossdomain.xml. The text below will give you a wide open access policy, which is fine for testing.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
For debugging HTTP streaming I recommend you get hold of something like Charles or Fiddler. These will greatly assist in pinpointing any issues. -
Flash Media Server 5 - VOD RTMP Streaming Failing in Subfolders
I've setup a default install of FMS5 and can get the sample.flv file to stream with no issues. I can take my FLVs I wish to stream and put them in the /vod/media folder and stream those. The problem I'm having is when I create a subfolder I can no longer access the file for streaming.
The Path looks like this:
/VOD/media/subfolder/lecture1/mediafile.flv
I've tried
rtmp://domain.com/VOD/_definst_/subfolder/lecture1/mediafile.flv
rtmp://domain.com/VOD/subfolder/lecture1/mediafile.flv
Neither seem to work, I've read through several threads that seem indicate _definst_ solves this problem but I can't seem to get that to work.
Any ideas or help would be great.
Thanks in advance.Thanks, still can't seem to get it to stream here's what I have:
The sample.flv file is in this path:
C:\Program Files\Adobe\Adobe Media Server 5\applications\vod\media\sample.flv
My File is:
C:\Program Files\Adobe\Adobe Media Server 5\applications\vod\media\CPAExam\AUD.v18\MonB_020613_08\MonB_020613_08.flv
These calls work:
rtmp://lme-bisk.thomsonreuters.com/vod/_definst_/CPAExam/AUD.v18/MonB_020613_08/sample
rtmp://lme-bisk.thomsonreuters.com/vod/_definst_/CPAExam/AUD.v18/MonB_020613_08/sample.flv
rtmp://lme-bisk.thomsonreuters.com/vod/sample.flv (basically any URL seems to find sample.flv)
Some sample calls that are not working:
rtmp://lme-bisk.thomsonreuters.com/vod/_definst_/CPAExam/AUD.v18/MonB_020613_08/MonB_02061 3_08.flv
rtmp://lme-bisk.thomsonreuters.com/vod/CPAExam/AUD.v18/MonB_020613_08/MonB_020613_08.flv
rtmp://lme-bisk.thomsonreuters.com/vod/_definst_/CPAExam/AUD.v18/MonB_020613_08/MonB_02061 3_08
rtmp://lme-bisk.thomsonreuters.com/vod/CPAExam/AUD.v18/MonB_020613_08/MonB_020613_08
I can't find any URL that will call the MonB_020613_08.flv succesfully. I can however move that file to the vod/media folder and it works fine. We have hundrends of videos in subfolders as indicated above so moving them all too the root media folder won't work as some filenames may repeat.
Thanks again for the help. -
I currently have WAMP(Windows, Apache,MySQL,PHP) installed as
my primary server; I do not want to change this. What I would like
to do is use Flash Media Server as my primary streaming server and
be able to host media files on it. I have been informed that if I
broadcast from the Media Server on Port 80 I will run into trouble
when I start the WAMP server (because it works on Port 80). The
resolution that I've been told is to put the Media Server on Port
:8080. What I am trying to find out is if any one here is running
the Flash Media Server as a second server using Port 8080 or is it
smarter to just assign Flash Media Server it's own port. By the
way, I am trying to set up a test environment that will replicate
what the real server and application will have to do. Any advice is
greatly appreciated. Thank You
In2mobilewhat version of windows are you running?.......try shutting down fms service before making changes.......I know in windows 7 you have to right click choose properties of the folder fms.ini resides in and adjust the security settings.
-
How to use flash media server with cisco show n share live event module?
hello all
Is it possible to use flash media server in show n share (non dme)live event ? i 've configured flash media server, can receive multicast streams, bu i have no idea what to write in video url fild in the live event basic setup.Hi Temur,
You should be able to stream from a Flash Media Server.
The URL should look like this:
rtmp://xxx.yyy.com//flv:
You can do some tests from a PC to get the exact URL that would suit your environment.
Regards,
Nicolas -
Windows Vista and Flash Media Server Streaming Problems
My company recently started using Flash Media Server to
stream audio and video content.
My boss just installed Windows Vista Ultimate and now no
streaming content will play at all. Simple Flash animations work,
but nothing that accesses the Flash Media Server for content. I've
uninstalled and reinstalled multiple versions of the Flash Player
on his machine but nothing seems to work. I also tried the new
"Reset" feature in IE that is supposed to return it to it's
shipping state and that didn't work. I navigated to the "System 32"
folder and ran the Flash Updater EXE. I downloaded and installed
all of the available updates through "Windows Update".
I also tested Flash Objects that stream video on Adobe.com
and they don't play either. Has anyone heard of this happening or
know what I need to do to fix it? I don't know if this is a bug in
the Flash Player or with Windows Vista.This appears to be the solution:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=44&catid=184&threadid =1243464&enterthread=y -
Audio not streaming correctly from Flash Media Server
Our company has a Flex application (3.0.2) that is having a problem with audio dropping out in Windows 7. The problem appears worse with a wireless connection, but it can’t be consistently reproduced there, either. The only thing known for sure is that the problem has not been seen on any other version of Windows.
The application thinks the audio is playing, because it is calling the appropriate event listeners triggered when the audio completes and when any audio cue points are hit. The majority of our audio is streaming via Flash Media Server (3,0,2,201), but the problem was also seen using embedded sound effects. In one instance, several clicks of a button triggered an error saying the sound effect could not be loaded, and then about a minute later, all the sound effects played at once and the user could then continue with the application.
The problem has been repeated in IE 8, Firefox 3 and Chrome.Thanks for your details. But i need more info.
Server:
FMS 3.0.2 ?
FMS installed in which platform Linux/windows? more details about it.
Client:
IE 7
Flash Player version ?
WIndows 7
Wireless connection - Was the client placed in poor bandwidth.
Can you get the NetStream status info when u play the audio file.? We can check for the rebuffering happening at the client side.
Can you run your audio file through flvCheck Tool to check if the media file is in good form. It is available at "\$Root|Flash Media Server\tools\flvcheck.exe"
Now our intention should be to check the same media file with simpler application (since your production app is complicated) to ensure that the media streaming over 'client to server' is working fine.
Regards,
Janaki L -
FLEX 2.0 and Flash Media Server 2.0 Unable to stream from client to server
Hi All,
I have been trying to put together a quick demo to stream
and record audio from Client to Server. I get this error when
trying to connect to FMS.
ArgumentError: Error #2126: NetConnection object must be
connected.
at flash.net::NetStream/flash.net:NetStream::construct()
at flash.net::NetStream$iinit()
at Audio/toggle()
at Audio/__submit_click()
my Program fails at this line - ns = new NetStream(nc);
Your help is greatly appreciated. Here is the MXML file
Audio.mxml
This file contains a simple start and stop button start and
stop audio processing.
This page is served from Apache Tomcat on host : demoserver1
and port 8080
Flash media server is also installed on the same host
demoserver1.
I did not do any additional config at FMS except creating an
application called "DemoApp". All other settings are defaults.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
applicationComplete="startup()">
<mx:Script>
<![CDATA[
import flash.net.NetConnection;
import flash.net.NetStream;
public var started:Boolean = false;
public var nc:NetConnection;
public var ns:NetStream;
public var mp:Microphone;
public function startup():void{
lblMessage.text="Stopped";
public function toggle():void{
if (started==false){
submit.label="Stop";
started=true;
lblMessage.text="Started";
nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS,
netStatusHandler);
nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
securityErrorHandler);
nc.objectEncoding = flash.net.ObjectEncoding.AMF0;
nc.connect("rtmp://demoserver1/DemoApp");
ns = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS,
netStatusHandler);
mp = Microphone.getMicrophone(0);
ns.attachAudio(mp);
ns.publish("sample1", "record");
else{
started=false;
submit.label="Start";
lblMessage.text="Stopped";
ns.close();
nc.close();
private function netStatusHandler(event:NetStatusEvent):void
switch (event.info.code) {
case "NetConnection.Connect.Success":
trace(" connection success : " );
break;
case "NetStream.Play.StreamNotFound":
trace("Stream not found: " );
break;
private function
securityErrorHandler(event:SecurityErrorEvent):void {
trace("securityErrorHandler: " + event);
]]>
</mx:Script>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="400"
height="300">
<mx:HBox left="19" right="0" height="100" top="30">
<mx:Label text="Label" id="lblMessage" width="150"/>
<mx:Button label="Start" click="toggle()" id="submit"/>
</mx:HBox>
</mx:Canvas>
</mx:Application>Hi,
Are you trying to make an air app or a web application (flash) for streaming? You may want to check out the osmf framework to help you write a player for mobile platform. Check out http://www.opensourcemediaframework.com/ for more info on how you can write streaming video players using this framework. There are some good tutorials there and also you may post on the forum to get your specific queries solved.
Thanks,
Abhishek -
Live Streaming video and Flex2(3?) + Flash Media Server?
I've seen alot of topic on how to create video sites for
clips, etc. with Flex and Flash Media Server, but how about live
streaming video, like a concert or a seminar. I can't find any
information on this at all, could anyone point me in the right
direction?What you need is grab video/sound form camera/mic, publish it
on FMS and let the other clients play it. In a few steps:
// get camera and mic
var cam:Camera = Camera.getCamera(); // get default camera
var mic:Microphone = Microphone.getMicrophone(); // get
default mic
// if you have VideoDisplay, for monitoring
videoDisplay.attachCamera(cam);
// create new RTMP connection to FMS/your app
var nc:NetConnection = new NetConnection();
// new stream should be create *after* nc has connected, not
before
// so this is executed after the below nc.connect() succeeds
nc.attachEventListener(Event.CONNECT, function(){
var ns:NetStream = new NetStream();
ns.attachCamera(cam);
ns.attachMicrophone(mic);
ns.publish("streamname", "live"); // or "record" if you want
to live+rec
// connect to default instance of app 'appname' on your FMS
nc.connect("rtmp://fms.ip.address/appname");
If you're using Flex2 and FMS2 (the latest FMS is 3), you
might need to
cuange the connection encoding to AMF0 (which is what FMS2
uses) in order for this to work.
Hope this helps; I've written it from my head so it probably
has mistakes, but it's the general workflow; the docs in the
language reference for specific functions mentioned here will also
help. -
Encoding to H.264 FLV: Flash Media Server Streaming
Hi all,
I've been hoping to find the magic Compressor settings which would allow me to compress a stream-able FLV on our Flash Media Server.
I realize I can use the default QuickTime Export component to create an FLV, however this does not support distributive rendering/job segmenting. Currently I'm trying the 'QuickTime Movie' file format (last on the format list) without any luck.
As QuickTime can produce a streamable FLV with the export component I'm figuring there HAS to be a way to manually configure Conpressor to do the same: Has anyone worked this out?
Thanks for any assistance
- BillyRelated to my post above is it be possible to access and use the TrueMotion VP6 (Perian) format settings in Compressor? This format is also accessible through the QuickTime Export component option, and doing so would would both make the flash streams more compatible (w/ old players) and allow job segmenting.
Thanks again for any thoughts ...
- Billy -
Streaming from Flash Media Server into Captivate
Hi
We're fortunate to have a Flash Media Server (4) which we use to distribute video over our local network using Flash CS5 and have encountered no problems. However, when I try to use it for Captivate 5 files I've had no success (same with 4 incidentally). I've tried just about every string I can think of with no ext., with the ext, f4v's, flv's, /mp4:, different folders/ no folders (vod) etc etc. There must be something fundamentally wrong with what I'm doing but for the life of me I can't think what. The Media server currently delivers video over our Intranet and we also use it for Adobe Connect. Any help in this matter will be appreciated.
My string is rtmp://breezefms2/vod/<nameofvideo> (no ext.)Hi Crozzer,
We have published a blog post detailing the formats to be used for streaming video.
I would suggest you to have a look at the blog post : http://blogs.adobe.com/captivate/2011/03/workaround-for-video-streaming-issues-in-captivat e.html and try out the streaming formats mentioned.
Please incorporate the URI changes mentioned in the blog post and let us know if streaming video works for you.
Thanks
Ashwin Bharghav B
Adobe Captivate Team -
Streaming flash media server to the world and not just your local network
hello, i have downloaded and installed flashe media server.....but i have som problems which are: i am on a network which is connected to the internet and i was able to get the ip of my pc using the comand prompt (i.e typing ...ipconfig/all....in the comand prompt window) ...i used this ip in my flash media encoder in place of "localhost" in the fms url, and i was able 2 connect fine ,i the copied my fms url to the osmf player and i generated my html code and put it in my webpage and everything did work fine, but the proble is that only the people who are on thesame network with me were able to view the video on the webpage wereas people in other countries could not view the video....... so please how can i be able to make my video acessable to the whole world ,because i work in a television company and they have asked me to undertake the task to stream thier broadcast online to the whole world........please i would like u to put me through the right things to do because have been having sleepless night on flash media server.....would be expecting a reply from anyone who can help me as quick as possible. thanks
Hey Kristich,
Is the server that you have created behind some NAT, etc?
If you are using an IP of the form 10.x.x.x or 172.x.x.x or 192.168.x.x then these are private IPv4 address spaces and not public IPs(which is unique), and you wont be able access them from outside. -
Live Instance in Flash Media Server 4.0 crashes/causes stream failure
Hi,
I have a Flash Media Server streaming version 4.0 server that is expierencing some issues. Currently multiple inlet encoders are publishing live video content to this FMS. At random times, the live_definst_ instance will crash and then restart itself. The encoder does not recognize this new session and as a result, no new live video is being sent unless the encoder is stopped/started. This cannot be done during live events, however.
I also have an enterprise version 4.0 that does not have this issue. Is there a fundamental difference between the streaming/enterprise versions that would cause this issue and if so, is there any modifications that can be done to the streaming server that can fix this?
Also I've noticed on the master logs that the enterprise server has various
_defaultRoot_L_defaultVHost_:::_0 expierenced 1 failure's
After this it seems like it starts. However, the streaming server has this:
_defaultRoot_L_defaultVHost_:::_0 expierenced 2 failure's
Recovering core _defaultRoot_:::: with 2 failure[s] after 300 seconds!
What exactly is this "recovering" process, could this be what is causing this issue? Can I disable this in the config?You need to place the crossdomain.xml in the webroot folder. Create a text file in the webroot folder using notepad, and call it crossdomain.xml. The text below will give you a wide open access policy, which is fine for testing.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
For debugging HTTP streaming I recommend you get hold of something like Charles or Fiddler. These will greatly assist in pinpointing any issues. -
Streaming from Digital Rapids to Flash Media Server
Hello,
I am using a Digital Rapids StreamZ encoder (version 3.8.0) to stream towards YouTube, Dailymotion, Akamai. I wish to install a Flash server on the same VLAN as my Digital Rapids in order to check the encoding in case there is an issue on YT/DM's side. I therefore downloaded Adobe Flash Media Server and now wish to send my stream towards the AMS. Which Server URL and Stream Name should I use to configure my Digital Rapids? How should I configure the AMS to receive the stream from the DR?
Many thanks in advance for your help and advice,
mdicampThe Digital Rapids doesn't seem to recognize my destination Server URL. I guess it is because of a port issue.
Checking the ports situation on my AMS Server (cmd -> netstat -an), I realise port 1935 (which receives RTMP) is only listening locally (127.0.0.1:1935) instead of to the exterior (I would like to have 0.0.0.0:1935). The application does not seem to have forced the port to open (I don't have any firewall).
I hope this helps move anyone forward in helping me out. Thanks in advance ! -
Flash Media Server Stops Streaming
We are running Flash Media Server version 2.0.3 r68. Lately,
for some reason FMS will simply stop serving content. When this
happens, the FMS service is running and there is nothing in the
logs indicating anything out of the ordinary. The only way to fix
the problem is to stop and restart the FMS service. After doing
this, FMS will work fine for several days before failing in exactly
the same way. Anyone have ideas what's going on or what will fix
this?It seems a bit strange that this behavior started happening
"lately". Did you install some other piece of software or patch
recently? What is the load on the server? (cpu, connections,
memory, etc..)
When you say it stops serving content, does this mean that
you are able to connect to the application instance, but just not
able to play content?
If this behavior keeps happening capture the process state
while it is hung (use adplus -hang option on windows)
Maybe you are looking for
-
How do I make a ringtone from an app my default on my iphone?
I downloaded a song from an app on itunes on my iphone 5 and I cannot figure out how to make it my default ringtone. My mac OS.X 10.6 will not retrieve ringtone from phone and I cannot get a downloaded audio book from my mac onto my phone either. I t
-
This is my first time using this site, but it's helpful so far. Not sure if I need to retype the wording in the Discussion box above, but will do so just in case. Love Safari's new look, but on my 17-inch MacBook Pro the font on most pages is partly
-
Send to Soundtrack Pro Multitrack Project - All I get are empty tracks
I have a sequence in Final Cut Pro that has a collection of clips and sequences inside of it. When I right click the sequence in the browser and select Send To -> Soundtrack Pro Multitrack project, it opens STP as it should. When STP opens, though, I
-
WLS 6.1 sp2 & Xerces 2.0.0 - ClassCastException
I'm porting our application from WLS 5.1 to 6.1 sp2 under NT 4.0 w/sp6a. I'm using the JDK that ships with WLS 6.1. A 3rd party library we need for XML signature support requires Xerces 2.0.0, when I put that library before weblogic.jar in the classp
-
Error in executing ABAP dataflow
We are trying to integrate SAP ECC system with SAP BODS.While doing that we are trying to extract data from SAP tables in BODS with the help of ABAP dataflow.While we run the ABAP dataflow, an error is thrown saying that a file with .dat extension c