Media Server :: Application Read From External Xml File Not In It
Aug 22, 2010I have below code
[Code]....
I need this application read from exteral xml file not in it.
I have below code
[Code]....
I need this application read from exteral xml file not in it.
I've looked through the scripts in the scripts/ directory, but haven't seen anything obvious.
I would like to be able to specify the file name to capture the stream to. At present, the capture file is always named the same as the stream, which means if I stream for a bit, stop, then restart, the originally captured file gets overwritten. I'd like to be able to incorporate something, i.e. the stream start time, into the capture file name.
The server hosting our FMS does not have space to adequately store the media files over time. I have since connected a 500GB external drive to the server. This drive is mapped as the Z drive. I am not exactly sure how I need to edit my application.xml for all http requests to point to this external drive. Below is a small sample of the file. How would I correctly edit this file? Would I just add a line that says <Streams>/;${Z:VOD_DIR}</Streams> ? Do I need to delete either of the below lines?
- <Application>- <StreamManager>- <VirtualDirectory>- <!-- Specifies application specific virtual directory mapping for recorded streams. --> <Streams>/;${VOD_COMMON_DIR}</Streams> <Streams>/;${VOD_DIR}</Streams> </VirtualDirectory> </StreamManager>
[code].....
I have successfully been able to write some client-side ActionScript that allows me to record my webcam and mic data to my FMS server. The .flv files get saved to a directory under the applications directory. However, I need to process those flv files for a web application and would like those .flv files to be saved to the web app's directory (outside of the FMS application directory). I have tried changing the <Streams> tag in the Application.xml file that I placed in the FMS application directory, but that simply did not work.My goal is simple: to save the recorded stream data outside of the FMS application's directory. I have been going crazy trying to do this, but would like to know any pointers that any of you experts have. Can this be done? If not, how can I execute a server side PHP script after the stream is done recording. I know about using the exec() function in PHP, but am unsure as to how to execute that script via client-side actionscript.Here is the path to my FMS server (Linux OS) installation and the application directory. The application name is "ngale"./opt/adobe/fms/applications/ngaleHere is the path that my client-side ActionScript is placing the .flv files of the recorded streams/opt/adobe/fms/applications/ngale/streams/recordings/Here is the path to my web application/home/user/public_html/dev.ngale.net/public/Here is the path that I would like for the .flv recording files to be saved to/home/user/public_html/dev.ngale.net/public/audio/.flv
View 5 RepliesRecently, I writed a programe about creating a text file and writing data into it in the server application folder. My code is as following:
[Code]...
Supplement: The text file named test.txt doesn't exist before create the fileObj, an instance of File Class.
I'm running Flash Media Streaming Server and have only been serving VOD up until now. I had my network administrator open up port 1935 to the outside world during the setup process and now I can't remember if that was actually required for streaming VOD to clients. Most documentation I've read says that this port should be open, but I seem to recall reading something at one point that suggested it wasn't necessary.
I've just started messing around with publishing live streams using Flash Media Live Encoder to the Flash Media Streaming Server. I have that working without issue but was surprised to find that no authentication is required before a client running the live encoder can publish a stream to the Flash Media Streaming Server. An authentication module is available however it only works with Flash Media Interactive Server and Flash Media Development Server.
If I leave port 1935 open to the outside world, there would be nothing to stop anybody anywhere from streaming video via my server. Anyone else running a default install of Flash Media Streaming Server and with port 1935 open to the outside should see that this is true of their setup as well. I'm wondering if I can safely close port 1935 without limiting the functionality of the server or if there's some way I can require authentication prior to publishing a live stream even though I'm not on the four-and-a-half-times-more-expensive edition of the product.
I need the main.asc file to return the current directory listing to a flash application.
[Code]...
I do understand the differance between ssas and as3. Not all, but all most everything I see written in SSAS can be writen into a external AS3 file. This leads me to quite a few questions I'm hoping you kind people can shed some light on for me.
1) What is the advantage of writing a SSAS file over an external AS3 file?
2) Can I write an .asc file in AS3 or do I have to use AS1? Please understand I'm using tuts from fmsguru.com and the books "Learning Flash Media Server" (pdf) and "Programming Flash Communication Server". I'm not a javascript programmer so nothing I do in AS1 seems to make any sence while everything I do in AS3 does. It may not seem like it to you people that are programmers, but to those of us that aren't, AS1 and AS3 are miles apart.
3) kind of off topic, but a security question. I'm not a "hacker" and don't like the jerks that are. My question is on external AS / SSAS files and swf files. When my fla is compiled into a swf does my external AS files remain external? I assume they do, but then what is the threat of the swf being decompiled? In most projects I would do I could care less if somebody had access to my fla as long as they don't have my actionscript files.
I don't know. Maybe on questions one and two I'm getting confused becasue I'm using out dated material. Again I assume that even though fms was built off of the javascript engine it should be able to read and execute my AS3 file. Other wise what was the point of the evolution of actionscript into a fully functional programming language?
We have an application that works no problems on our server with FMS in test mode. As soon as we enter our FMS license key we get this error: "application is not a valid signed application loading access denied".We removed the license key and it works again, but with user limits obviously, so this is not an acceptable fix.
View 5 RepliesI have a device which sends MPEG2 multicast udp live stream, I can read it from URL.. for instance. Next it is transcoded with vlc.[code]My question is how to read from udp://@127.0.0.1:10013 using FMS and send it to flash clients ?
View 3 RepliesIs there any application which can relay another application on Flash Media server? For exmaple I have a "live" application on the server. I want another application, "liverelay" which can basically relay what is coming on the "live" application. Is it possible? If so how can I implement it? Looking forward to a response.
View 12 RepliesDear community, i am searching for 6 days for a solution but i couldnt find. I installed the trial version of Adobe Media Server 4.5. I am trying to host live stream and it is working without error. but when i activate protection (PHDS), server gives en error code: 20...
Here is the server log...
After i could take the Live HDS, i made these settings as described at [url]
My application.xml and event.xml files are:
I have configured FMS on Amazon EC2 I am trying to capture data from my webcam and push it to the server.For storing the webcam i created a new folder but as it is recommended in other forums "You need to replace the signed Live application (main.far) with main.asc in[FMS-Install-Dir]/samples/applications/live/ ;(For more Info: refer to documentations & live/readme.txt) "I am not able to locate samples folder from where i can get my main.asc file
View 4 RepliesThe server on which FMS was running crashed due to a power failure. FMS is set to start, and it restarted with the server.Unfortunately it restarted with no applications loaded, including the application, which we need to run continuously.Is there some way to ensure that the server always starts with a particular application loaded? The only way I could find to load it was through the systems console.
View 1 RepliesSo I have a basic application descriptor file for my AIR app. It looks something like this, shortened for sanity:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<application xmlns="http://ns.adobe.com/air/application/2.0">
<version>1.0.10</version>
[code].....
I need to be able to read an XML file from my flash application. I found this tutorial:
republicofcode.com/tutorials/flash/xml/ But it doesn't seem to work even on their own examples. I can trace whole XML file, but when it comes to childNodes whatever I try to trace I always get "undefined". My XML is like a quiz DB with 25 <question>'s and 4 <answer>'s in each. So I need to operate with XML data as with an array.
Im doing live streaming directly from webcam like Ustream.TV. Im using Flash Media Server 3.5, and I record cuepoints of broadcaster with the method ns = new NetStream(); ns.send('functionName' , 'value'); I publish the content and record it in a .flv file. However when I download this FLV file and extract the metadata with tools like FLVTOOL2, or FLVMETA, the cuepoints that I recorded with ns.send() method doesn`t show. I know they are there since when I play the FLV file in another client, I can receive the calls for the 'functionName' in the exact time that I call while recording. What I`m doing wrong? I would like to encode recorded video with Flash Media Encoder and insert into it CuePoints that can call to the same function that I do with live streaming. To do that, first I need to know how the CuePoints are created and fixed into the FLV file that I record directly from webcam. I need to know how they are stored to do it manually in Flash Media Encoder.
View 19 RepliesWhat is the best way to open and parse and excell file from a Flex Application built using Adobe Flash Builder 4.5. I have done tons of research, most lead me to external libraries, I could deal with that if that is the best approach, but prefer a built in method.
View 3 RepliesHow to perform file read write operation on server in flex web application?
View 2 RepliesI'm exploring the feasibility of reading data from a local Excel file in a Flash application.
XLSX READER [URL], it's possible to read Excel 2007 files.
It works beautifully.
However, that function doesn't read Excel 97-2003 files.
I found this:
[URL]
Which should read Excel files in Flex, but I'm working on a Flash application, and it looks like as3xls relies on a number of Flex only functions and types (ArrayCollection, NumberFormatter, etc.)
Since I'm not familiar with Flex, I'm having a difficult time making the adjustments myself.
Has anyone built a Flash app that reads Excel 97-2003 files, and is willing to share tips or code?
I am running FMS 3.5.2 on Windows Server 2008. The server only has 40GB free. Is it possible to store media on an external drive connected to the FMS? Then have my http or rtmp requests go to the external. Am I making sense? I'm sure there is a script to accomplish this, but I am afraid it will degrade the media files.
View 4 Replies[URL]i have my client app in my local system.. i m using rtmp://my server/Helloworld to connect server.. but while running my client app nothing happed.how to launch and run app in fms server?
View 3 RepliesI am trying to make video two way chat application through FMS streaming in AS3.0.Its working fine with Mozilla but not working in Internet Explorer.
View 3 RepliesI have created a folder inside Flash Streaming Server/conf/_defaultRoot_/ called Test with some FLV in the folder. When I log into the console its shows the server and _defaultHost_ and Test but says You are not logged into:Test; make a seperate connection. Does this mean it wants a new application created for Test? How do I fix this?
View 5 RepliesI am trying to playback recorded streams from a Flash Media Interactive Server using the VideoPlayer component in Flex 4/Flash Builder 4.If the stream is located in the serverpath>/ streams/vod/_definst_ directory then I can get to it by setting the 'source' parameter of the VideoPlayer to [code]What I can't get to work is when I have a stream recorded to an instance within an application directory.So if the application is "app1' and the instance name is "inst1" it would be literally located in <serverpath>/ app1/ streams/ inst1 directory. Setting the source parameter to this "<server>/ app1/ inst1/ streamname" does not work.It seams to be ignoring the 'inst1' part of the path because the server side log shows '_definst_' as the instance name being run.I know this is in part a Flex 4 question, but manually writing a video player works. I would just like to get the Flex 4 VideoPlayer component to play the video.
View 2 RepliesI have an FMS Clustered in Edge-Origin configuration. Can I have different Origins for different applications but the same edges?.I have multiple edges forwarding the requests to the Origins based on the application name?[code]And if its possible, can someone advice the advantageous of having different Origins for different Applications?
View 6 RepliesWhen a client connects to an application (nc.connect) this is catched at server side using application.onConnect; so, when the client asks for a stream (ns.play) ... does this have some correspondence at server side ? Can we catch this event in some way?Or, seen from another point of view: is there any way, from within an application, to know what stream(s) the application is serving ? I mean, if we want the list of connected clients we have the application.clients array; is there any correspondence from streams ?
View 2 RepliesI'm trying to record a video to the default FMS vod application with a flash movie, i'm getting this error: "NetStream.Record.NoAccess". I think the problem is not in my code, but just to make it sure, here is it:
var mycam:Camera = Camera.getCamera();
mycam.setMode(320,240,25);
var myvid:Video = new Video(mycam.width,mycam.height);
[code]...
i checked and the connection to the server is fine.if i use live streaming, than it's fine (of course in this case i use the live application).It's maybe a file system related problem. I use windows 7, and given all permissions for all the users.. still dont working.
we are hopping to develop a text chat by flash sites.
View 3 RepliesI am following this: [URL]. And parsing the logs to get the stats of applications is hard if theres heavy traffic its hard to get everything to parse right. Would it be easier to import all the stats into mysql db once an hour that way its easier to work with?
View 1 Replies