Skip to main content
May 17, 2012
Question

FMS video will not play using the FLVPlayback 2.5 component

  • May 17, 2012
  • 3 replies
  • 2965 views

I am working on developing a Flash video player for the company I work for.  I am not having any luck getting the video to play from FMS in the player I am creating with Flash CS 5.

What works:

Our FMS Installation when played through the OSMF Hosted Player. http://www.osmf.org/configurator/fmp/

SharePoint 2010 utilizing Content Editor Web Parts.

Why I can't use this:

The company I work for does not want the url to the FMS server visible via a 'view source' for security reasons.  So for each video asset I need to publish, I need to basically create a player that has the URL in the compiled SWF to obsfucate where the stream is coming from.

What doesn't work:

Following  Beginning Flash Media Server 4.5 – Part 2: RTMP streaming on-demand video  

This looks to be a really simple 5 part process to get Flash video streaming from our video server to the end users, but no matter what I've tried, I can't get the video to play.

This is what I'm doing.

I'm running Flash CS 5 on my Apple laptop, and creating the .fla and publishing the.swf and .html assets.  I open up a new Action Script 3 project, change the size, and then drag out the FLVPlayback 2.5 component.  In the component inspector, I put my working url (rtmps://mydomain.mil/vod/low_bandwidth/netcom/how_to_navigate) in the source property and leave the defaults as the tutorial states and save my .fla file.  I publish, and I get the following error: "The video player is in the connection error state. It enters this state when a video stream attemped to load but was unsuccessful. There are two possible reasons for the error: no connection to the server, or the stream was not found" This error is actually OK - the development laptop I am using is not allowed to connect to the network where the FMS Server is located.  I have to manually pass the associated files over to another machine that is connected to the network. I upload to SharePoint (having to switch to the Page Viewer Web Part to bring in the multiple .swf), and I get nothing - the Flash player appears with no content, so it's a big white empty space. If I try and use the files on the computer that is on the same network as the FMS Server via running the HTML in the browser, I get the .SWF and the chrome overlay to pop, but the the status bar just spins and no content loads.

Is there a setting somewhere I'm missing in the Component Properties for using FMS that's not listed in that document?

I should be getting a copy of the flash tool on a device that will allow me to be on the same network as the FMS server shortly, so I can at least take that transfer issue out of the equation.

Thanks for your help.

C

This topic has been closed for replies.

3 replies

Sv_Bell
Known Participant
May 18, 2012

I'm myself after a solution to monitor the streams on my server so I have little help on this. But for the security thing, can't you just whitelist a domain in particular to block requests to that server coming from other domains? It won't really 'hide' the path to the server, but it will certainly decline any requests from unwanted visitors. If I recall well it's set in the crossdomain.xml file.

sv

May 18, 2012

@Sv Bell - About the security thing, not really. FMS uses headers provided by the client to determine the referrer. While it's not something the average user will be likely to be able to do, these headers can be modified by anyone with the knowhow to make a low level socket connection to the server (they can supply their own header values). Same goes for HTTP requests.

Doing domain restriction will work in low security environments, but won't really help in critical applications.

Known Participant
December 28, 2012

@jay Charles

What would you recomend as a high security enviroment for the FMS?


Thanks,!

May 17, 2012

1. Hardcoding the rtmp url into the swf doesn't protect anything. Anyone who wants that URL can do a simple packet sniff, or just decompile the .swf. Your company's security person should reconsider his or her tactics... trying to hide a URL is not a security measure. If security is required on the server side, it should be done on the server side.

2. You likely need to set the content path on your flv playback component. See this thread: http://forums.adobe.com/thread/778836

May 17, 2012

Jay-

1.  I won't go into this other than agree with you and say that the end customer doesn't care.  IMO - I would just use the OSMF player .swf I ripped and be done with it as this SharePoint sites has enough measures to keep out the "honest brokers" from snooping for the training video source. If there are dishonest brokers on the network, there are much more value-rich targets to hit.  There are politics at play, and they are a reality for who I work for.  They tell me "No Visibile URL", I salute and move down the road.

2. I am setting the content path according to the tutorial I linked.  (pretty much the same thing as yours, but my link has a little more info).

Thanks

C

May 17, 2012

Hi,

Just wanted to clarify a few things to try and eliminate what could be causing the problem.

1. You are using rtmps protocol. Do you have SSL certificate configured and port 443 enabled?

2. When you tried playback via the hosted OSMF player was it via rtmps?

3. The standard way the request url is protocol://server-domain-or-IP/fms-app-name/[fms-app-instance-name/][codec-prefix:]file-path[filename-extension]. Could you try with that?


I tried to reproduce your issue with simple rtmp prtocol and here are my observations/suggestions :

1.When I first entered the source url I got the error you mentioned : "The video player is in the connection error state." However, when I publish the same .fla again it works fine.

2. When you are placing the on a computer on the same network and running the html in the browser, it might not have permission to access the network. You will generally get a pop-up saying "Flash Player has stopped a potentially unsafe option". In any case, in your Flash player settings manager you can go to the Advanced tab and add the location of the folder containing the swf as a Trusted location and then try to reload the page again. I get the "status bar spin" when the folder did not have permissions.

3. Also, when you try playback via Share Point can you go back to FMS and check if a connection request has actually come to the server. You can check under the access logs in root_install/logs or the application logs under root_install/logs/_defaultVHost_/vod/

Please let me know if this helps.

Thanks,

Apurva

May 17, 2012

Apurva-

1.  Yes, and it's working.  I have port 1935 and port 80 blocked through the proxy that all traffic is funneled through so there's no way the OSMF player would be able to get any stream besides 443/SSL. 

2.  Yes, and it works.  See #1 above.

3.  I will try that. 

1.  That's odd.  I tried multiple publishes, but I tweaked things a bit before each publish.  I will try publishing it a couple of times to see if that changes things.

2.  I will make that a trusted location  - thanks for the pointer.

3. Thanks for this.  Will try it.

Appreciate your time.

C