Media Server :: Send An Image Using NetStream Or NetConnection?
Jun 23, 2010Would I be able to send a image using NetStream or NetConnection?
View 1 RepliesWould I be able to send a image using NetStream or NetConnection?
View 1 RepliesBoth NetConnection object and NetStream object has a client property. Can I use the same client for both objects?
View 1 RepliesI have application that uses the send functionally in the NetStream on the server-side. When a connect to the app using rtmp I am able to see the send come thru but if the app uses rtmfp it does notI gone thru all the examples in setting up a mutlicast app and I know the app works because when I publish a video out everyone in the group sees the video. The only thing not working is send. I've also set dataReliable to true.
View 3 RepliesI'm trying to send metaData from client to FMS server when recording Webcam video and have implemented sending of metaData as stated on Adobe's help page at: http:[url]....
However when I play the recorded video from FMS, my custom metaData properties trace "undefined".I can trace default metaData properties such as duration or videocodecid successfully,but not my custom properties such customProp,width or height. Here is part of my code that is related to the issue: private function
ncNetStatus(event:NetStatusEvent):void [code].....
I'm trying to troubleshoot a Flash Media Server working with a little video playback application I wrote a few years ago that has suddenly stopped working.I'm using CS3/Actionscript 3.My app uses the FLVPlayback Component, and was working well last time I checked. I recevied a report that the videos stopped working, and have been looking into it.I figured I'd add a bunch of event listeners to the FLVPlayback's ncMgr.netConnection so I could get debug info on things like io errors, net status, etc.The problem I'm running into is that the netConnection is null when I set it to anything on my Flash Media Server, and adding any event listeners to this netConnection throws errors.Here's what I've tried so far:
Playback of a local FLV file works fine.In the FLVPlayback documentation, I found an example and stole the URL of the stream they were using in the example, and that works fine, although it is an HTTP protocol stream rather than RTMP.Any attempt to access FLV files on my Media Server, which has worked fine in the past, basically cause the FLVPlayback object to sit and hang in "buffering" mode and never progresses beyond this point.The netConnection object in this case is null.Here's my code:[code]........
Again the purpose of this is to troubleshoot the video streaming from the Flash Media Server, and it seems like there is no netconnection to the server being created.Does this mean that the server is not working, or is there a problem with the way I'm trying to access the content on the server?This was all working fine before, and I have set up the server-side application .ASC files and such to allow things to work fine on the server end.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="[URL]" layout="absolute" creationComplete="init();">
<mx:Script> <![CDATA[
import mx.controls.Alert;
import mx.core.mx_internal;
import flash.media.Camera;
[Code] .....
So, I play the record video , but there is no image , just voice
I'm using the RTMFP protocol to publish and play video and audio, but i'm with a little problem. I installed the FMS 4 Development Server in a Windows Server machine located in our local network and it works perfectly. In order to deploy our application, we have a remote server with a fresh install of the Ubuntu 10.04 Server, and the FMS 4 installed in this server. In other server we have the Java and Flex application, which will be used in the client browser.
The problem is that when trying to change the NetConnection url to the remote FMS server, which is the Ubuntu server, the netconnection can't connect to it. When changing to the RTMP protocol it connects, but with the RTMFP don't. I can't find any information in the log files or anything else.
I'm trying to make a software which sends video and audio data to a flash media server by using RTMP protocol. Currently, my program can communicate with a flash media server correctly. RTMP specifications does not describe about the raw data in video/audio messages, so I muxed raw H.264 and AAC data into video/audio messages and sent to the server. The server seems to accept them, but a video player cannot playback the stream sending from the server. The player just says "Loading..." For a test purpose, I sniffed the network packets between Wirecast and the flash media server and ripped off only video and audio data. Then, I muxed those data into video/audio message and sent to the flash media server. In this case, the video player connected to the server can playback the stream correctly.
I checked the stream sent from Wirecast, the stream seems not to be H.264 raw data because those data are not started from 0x17 instead of H.264 start code. With those situation, I am wondering what kind of container format I should use for H.264/AAC data to the flash media server.
[URL]
I followed the above example in AS2,but only get the error:
Call to a possibly undefined method getNetConnection through a reference with static type fl.video:INCManager.Here's my code: this.addEventListener(Event.ENTER_FRAME,
[Code].....
I need a solution for this: when the port 1935 is closed, the NetConnection switch rtmpt (port 80). The NetConnection class built in function: proxyType="HTTP" not works or I use not rightly.In the FLVPlayback class works this function, but I don't know how..
View 7 Repliesi m new for FMS I just wanna make a connection, I put swf file in FMS folder and here my codepackage{ import flash.net.NetConnection; import flash.display.Sprite; importflash.text.TextField; import flash.events.NetStatusEvent;public class main extends Sprite private var
View 3 RepliesCan anyone tell me why I would not be getting Netconnection.NetworkChange and Netconnection.Closed events would not be getting fired when I am working on Flash CS5?
I get the Success event, but when I am attempting to test my reconnection code I pull out my network cabled and I never get the closed event.
Interestingly, I do get the Closed and NetworkChange events when I am debugging, but not when I just run the movie.
I have FMS 3.5.2 installed on a VMWare CentOS image running under OS X. I have the CentOS IP mapped to the host "fms.vm" on both the host (OS X) and CentOS machine and can access the FMS Admin just fine, either via a browser on OS X or a browser on CentOS. No problem there.
[Code]...
Am publishing a live stream from server to server per:I noticed that about every 10 minutes or so the stream would seem to go down.n instance there is unloaded every 10 minutes like clockwork. Message reads "Instance _definst_ is shutdown by the script... Unloaded application instance _definst_." This is preceeded by the"NetConnection.Connect.IdleTimeOut" message.During the 10 minutes inbetween, the stream displays fine on the viewer.The live docs say this message means "the publisher of the stream is idle and not transmitting data
View 6 RepliesI am getting "NetConnection.Connect.Failed" error when trying to connect to my FMS 3.5 server from Internet.Things work pretty well when the application is hosted and accessed on my local network. Now when I want to connect my live stream application to Internet it isn't working. Public IP for my server is of type xxx.xxx.xxx.xxx:xxxx (My machine is mapped to the ip so to connect I need to mention the port as well).I am running IIS and FMS on the same machine. I have changed the default tcp/ip port of iis to 8080 and the ports for FMS are set to 1935,80.I have updated the HTTPPROXY.HOST value in fms.ini to HTTPPROXY.HOST = :8080 (port of IIS)HTTP tunneling and HTTP Proxy are also enabled.
View 1 RepliesI have a swf running within a web browser and publishing audio stream to the server. If the client's computer has a firewall, should it be configured for outgoing etconnection.connect() request?
View 1 RepliesLet's say user A connected to the FMS server with an RTMFP NetConnection, and user B connected to the server with an RTMP connection. If I want to connect them together, would it be better if I also connect A to an RTMP NetConnection to the server?
View 4 RepliesI'm creating a very, very basic AIR application which mainly just needs to check if a given FMS is up and running. To do that, I'm simply connecting to the FMS and after a successful connection, disconnecting to free up the connection slots. All is repeated at some interval. This is like a monitoring tool.
However, looking into the admin panel (Influxis) I can see that the number of active connections is ever growing, even though I'm calling close() on the NetConnection instance every time.
Also, adding a timer to trace the netConnection.connected value outputs always "true", after the close() function has been called.
I'm not creating any NetStreams, nothing.
If I'm streaming live video and chatting in an FMS app, should each component have its own instance of NetConnection or should they share one? Was thinking perhaps the quality of the live video stream would be hurt in a sharing situation but am not sure the architecture works like that.
From a development standpoint, I'd like to make one NetConnection instance in my main application file and connect with it. Then, when successfully connected, I'd like to pass that connection into any custom components that need it.
I've noticed that when I use NetConnection.call(methodName) in my client Actionscript it sends a POST request off to the server. I thought this was odd because requests for data are normally GET operations but I didn't worry about it because it doesn't impact my applicationow I have our sysadmin complaining about the amount of data I'm shifting over POST requests because POST requests aren't cached by the web servers (and we are working with the kind of traffic levels where that matters.) Is there anyway I can make call() use GET?The code I'm using is all fairly standard, but here is the relevant snippit:
var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
[code]......
I have a single server that runs IIS and FMS, both on port 80. The server has two internal IPs assigned to it, one for IIS and the other for FMS. I also have two static public IPs. My router maps one public IP to IIS' internal IP and likewise for FMS.
IIS works fine. Using an online port scanner, I was able to determine that port 80 is responsive for both public IPs. Before I had configured my Adapter.xml and fms.ini, only IIS' public IP was responsive. This seems to indicate that FMS is fine.
However, when my ActionScript creates a NetConnection and calls connect(), my netStatus callback takes about half a minute to be invoked, and I get "NetConnection.Connect.Failed". Which is not very informative. Is there a way to get more info about the cause of the error?
I am streaming pre recorded audio files (mp4) to an AIR client. I have tried two different solutions,
streaming the file directly with the NetStream.play("mp4:xxxxx.m4a") and creating a server side playlist, adding the same sound clip and then streaming the playlist. The problem is, when streaming the playlist i get a few NetStream.Play.InsufficientBW, this does not happen when streaming the file direct. Both solutions uses bufferTime=1.0
I would like to use a server side playlist to implement a simple key solution so that the client dont know the full path to the file, but instead sends a key to a custom server side function that looks up the file path and creates a stream for the client.
today I install fms3.5 on my pc.
1)I can use rtmp://localhost/vod/mp4:sample2_1000kbps.f4v , it works ok. But when I use rtmp://192.168.8.3/vod/mp4:sample2_1000kbps.f4v, I got Netconnect.connection.rejected. 192.168.8.3 is my fms server IP.
2)When I set fms use port 1935 and 80, rtmp://192.168.8.3/vod/mp4:sample2_1000kbps.f4v works ok on other pc. But using wireshark(Wireshark is a network protocol analyzer for Unix and Windows.) I found , the flash player connect 1935 port at first, it send "connect",the server replay "connection.rejected" and "no scope "vod" on this server". Than it connect to 80 port, so I see the video is not send throw 1935 port with rtmp, but throw 80 port with rtmpt. Why? How can I see video throw rtmp?
I have a big issue with FMS 3.0 and specially with netconnections. Sometimes, when one client closes its netconnection, all the other clients of the FMS are also disconnected automatically. I am trying to find an explanation but nothing... It seems to be a bug as, most of the time everything works very well, but sometimes (not often) this strange behaviour happens. I don't know what to do and it's really annoying as it affects the reliability of my application.
View 10 RepliesI want to limit server recorded netstream length to 10 secs at client side using as3. How can I do that?
View 2 RepliesI have a problem with shareobject. the Send method does not work. I work with AS3 My code
[Code]....
A client connected to the FMS for playing live video.The problem has been found that when FMS shutdown the network, the client's NetConnection didn't dispatch any event.But when the client shutdown the network the client's NetConnection will dispatch NetConnection. Connect.Closed event.How could flash client know the FMS' server side networking problem? Does it necessary to use heartbeat mechanism between FMS and client?
View 1 Repliesfunction Function() {}Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095: flash.net.NetConnection was unable to invoke callback onBWDone. error=ReferenceError: Error #1069: Property onBWDone not found on flash.net.NetConnection and there is no default value. at MinCam()
[Code]...
I'm trying to make an application that streams audio from an audio stream, but the NetStream seems to never connect. I don't have Flash Media Server.
View 3 RepliesI'm creating a video chat app using Flash Media Server 4 and Flex, using RTMFP for peer-to-peer.
No matter what I try, I cannot mute a user's NetStream. I tried receiveAudio(false) and that does not work.
I tried capturing the stream SoundTransform and setting the volume of that to 0, that does not work.
I tried setting the mx VideoDisplay volume to 0 and that does not work.
I can set the alpha of the VideoDisplay, so its really strange that I cannot set the volume.
BTW, I am not trying to mute the mic of the user who launched the app, that I can do. I'm trying to mute one of the other users stream in the Flex app, that way the app makes it possible to not hear people who are perhaps being offensive.