View Full Version : FMS 3.5/RTMP problem
greetification
06-05-2009, 04:42 PM
Hi everyone, I was hoping someone can help me out.
So I have FMS 3.5 set up, and I'm trying to build a custom player. The problem is that it doesn't play anything. When I run it I get the ouput:
NetConnection.Connect.Success
NetStream.Play.Reset
NetStream.Play.Start
but that's it doesn't play anything. However, If I use FLVPlayback it works perfectly.
I've attached the project if anyone want's to see the code.
Thanks in advance!
xxneon
06-05-2009, 04:54 PM
what was the full path you were setting as the FLVPlayback source.. just curious??
one thing i noticed though is your connection string should stop at the vod/
and if its using default settings i thought that you had to stick your videos in the media folder that sits in the vod folder.
Is your ppd folder inside the vod folder or media folder?
also is the video standard .flv.. or H.264 ?? also whats the file extension?
greetification
06-05-2009, 05:01 PM
Hi thanks for the quick response! Holy S*** that worked!
THANK YOU SO MUCH!!!!
Before I had this:
private var videoURL:String = "NJDHSS_WhatYouDontExpect_Ad";
private var nc:NetConnection;
private var ns:NetStream;
private var _video:Video;
public function Player() {
nc = new NetConnection()
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
nc.addEventListener(SecurityErrorEvent.SECURITY_ER ROR, securityErrorHandler);
nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
nc.connect("rtmp://video.njspeakup.com/vod/ppd", true);
nc.client = new CustomClient();
}
And I changed it to:
private var videoURL:String = "/ppd/NJDHSS_WhatYouDontExpect_Ad";
private var nc:NetConnection;
private var ns:NetStream;
private var _video:Video;
public function Player() {
nc = new NetConnection()
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
nc.addEventListener(SecurityErrorEvent.SECURITY_ER ROR, securityErrorHandler);
nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
nc.connect("rtmp://video.njspeakup.com/vod", true);
nc.client = new CustomClient();
}
So for anyone else having this problem, in nc.connect() the RTMP stream needs to be:"rtmp://video.njspeakup.com/vod"
and then you put the sub folder that contains the flv (or other video) into the videoURL string "/ppd/NJDHSS_WhatYouDontExpect_Ad"
Thanks again xxneon!
xxneon
06-05-2009, 05:06 PM
yea you need to have the NetConnection connect to the FMS application 'vod'.. and then you target the video with anything that would follow the application in the rtmp url..
see the FLVPlayback component splits the url.. so that it can internally connect to the 'vod' app .. and then anything after 'vod/' would be used to find the video that is supposed to be streamed.. which explains why it worked in the component.. and not in your custom code.
also where is the ppd folder ?? inside the media folder?
greetification
06-05-2009, 05:12 PM
I'm not sure, I didn't set up the server. :-/
xxneon
06-05-2009, 05:25 PM
aah.. yea if you were to setup FMS on your own computer.. when using the vod application that comes with FMS .. there is a media folder that you dump all your videos.. or you can dump them into sub directories that reside in the media folder..
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.