Flash - Servering Mulitple Flv Files From Custom Webserver While Keeping The Sockets Open Stops After The 6th Connection

Jun 28, 2010

This is driving me nuts and because it's a combination of various technologies together I have a hard time tracking the problem. I wrote a tiny HTTP server that serves .flv files; these flv files are encoded on the spot. The flv files are encoded with adobe's screencodec (I started with libflv but that was too buggy so I ended up implementing my own flv encoder). For the problem below it doesn't matter which codec I use or if I serve plain flv files instead of on-the-spot generated ones (the problem also occurs if I just send 12 h264 encoded files).

I also have a swf that I coded in as3. The as3 opens 12 connections to my server and requests 12 different flv's and just displays them as 12 different videos on the page. I tested the setup with Firefox and chrome and am using the latest flash client (version 10). The HTTP server is pseudo streaming those files; e.g. it tells the client the file is of mime type video/x-flv, tells the filesize is 2GB and just starts streaming. For sake of completeness here's a header it generates:

[Code]....

View 1 Replies


Similar Posts:


Flex :: Sockets - Open A Connection Back To The Server?

Aug 4, 2009

I want to open a connection back to the server using Flex so I can stream chat messages to the Flex front-end. How do I do this and does Flex enforce any same-origin restrictions on ports or subdomains?

View 1 Replies

HTML5 Web Sockets (TCP Connection) With Flash Fallback

Sep 20, 2010

I read about a project that enables the developer to program a HTML5 web sockets application that is compatible with older browsers by automatically falling back to using a flash method.

View 1 Replies

ActionScript 3.0 :: Connect Flash To A Server Using Sockets Connection?

Oct 5, 2009

how to connect Flash to a server Using Sockets connection using in AS3.

View 16 Replies

Flash :: (as3) URLloader Keeping Connection Alive?

Feb 1, 2010

I have a little problem with a simple URLLoader,it simply just loads the data from an url, and processes that data, nothing complicated. But, when ever i run it, it leaves the connection open. At the bottom of the browser it says:

Transfering Data From www....

The data is read sucessfully, so it should close the connection? but doesnt seem to want to do it. Is there anyway to close all open connections, or somehow remove such message?

View 1 Replies

Apache Webserver Stops Working Until Disable FMS 3.5?

Jul 14, 2009

I have installed FMS 3.5 on an Intranet server, and it installs its own version of Apache.This has now caused the localhost to open the FMS page. Disabling FMS 3.5 returns back to the Localhost page.It is not possible to run FMS 3.5 on an existing Webserver with Apache?

View 1 Replies

ActionScript 3.0 :: Create Mulitple Custom Events ?

May 14, 2009

I'm using the following code to create events my question is how do i create multiple events? I need each event to contain a diffrent data parameter.

PHP Code:

package NetConnections.Call{
// Import class
import flash.events.Event; [code].........

View 1 Replies

Mysql :: Database - Connection With Sockets Or PHP?

Jan 9, 2012

So, we want to move out from Air (Adobe stopping support and really bad implementation for the sqlite api, among other things). I want to make 3 things:

Connect with a flash (not web) application to a local mysql database.
Connect with a falsh (not web) application to a remote mysql database.
Connect with a flash (web) application with a remote mysql database.

[Code]...

if you can connect with socket wit mysql server, why use a web server (for example with php) to connect like a inter connectioN? why not connnect directly? I have done this a lot of times, using AMFPHP for example, but wouldn't be faster going directly? In the case of accessing local machine, it will be a more simple deploy application that only require the flash application + mysql server, not need to also instal a web server.

View 2 Replies

Flex :: Sockets And Looping - Getting The Valid Connection?

Jan 13, 2012

On my network I have a couple of pc's all running a bespoke server which will return the username of the person logged in when queried.I have the following piece of code.

private function LoopAndList():void
{
var loopSocket:Socket;
var fourthOctet:Number = 6;

[code]....

Now when this runs it doesn't work as I first thought. The iterations go though. the fourthOctet value is decremented. But somethinjg strange happens. You will notice in the above code that I have a hardcoded IP address in the loop. I have put this there to ensure that there is always a valid connection. So am aware it will always be connecting to 192.168.0.4.

But the connection only happens on the last connect call.

The ouput is:

192.168.0.6
Connecting to 192.168.0.6
192.168.0.5
Connecting to 192.168.0.5

[code]....

View 2 Replies

ActionScript 3.0 :: Sockets Not Closing Data Connection On Windows

Nov 10, 2009

I've written a basic FTP client to allow me to upload files through the browser without using the FileReference.upload() func (because it's damn slow). I've got all the socket logic worked out and it works for one upload. When the upload is completed, the FTP data socket is closed by the socket.close() func which triggers a response from the command socket and starts the whole process over again. This logic works perfectly on my Mac in both Safari and FF.

I can upload files and cancel uploads and it all works as I want. When I test it on Windows (IE 8, FF 3.5, Safari 4 on WinXP and Win7) it is busted. I've tracked down the problem to the fact that on Windows, the socket.close() function is not causing the server to close the connection. I don't know if this is because it's not sending a proper command or what... but that's where it's at.

View 4 Replies

Python :: Flash - Python FLV Checker - Check The Uploaded Files To Webserver Are Flash Media (FLV), By Reading The Flv Header?

Jul 27, 2010

i need a simple python lib that check the uploaded files to my webserver are flash media (FLV), by reading the flv header (metadata) and not the mimetype extension.

View 1 Replies

ActionScript 3.0 :: Package Files Deployment - Webserver?

Jan 30, 2009

I've have an asp.net app that uses flash for its navigation bar...the flash app uses two class files wrapped in packages that create the functionality of the whole navigation bar.When I run the swf file alone, the flash app works fine...but when I try it in the webserver it fails. Whats more, the flash app in the web server will work fine if I type the full URL to the swf file....it will not work however as an embeded object...and what I mean by that is that the flash app will show up embedded into the .net app but the additional functionality created by the other two class files fails!!!

View 1 Replies

ActionScript 2.0 :: Open Multiple XML Sockets With An Array

Sep 2, 2011

I'm currently working on a project where I need to access multiple devices with differing IP addresses and Ports. I've defined "buttons" that will go to specific devices depending on the user input (sorry, hard to explain but I'm sure you'll get it). Everything works like a charm but I'd really like to see if there is a better way to code the following (maybe with an array) but I can't get it to work.

I will have up to 20 different devices so I'd like to streamline the code instead of having a bunch of "if" statements. As you can see, it's all the same just incrementing the TKsocket name.

[Code]...

View 3 Replies

Java :: Any Good APIs For Maintaining Open Connection With Flash?

Oct 31, 2010

I have a flash app which will send/receive a constant stream of data. The flash app should open a connection to the Java server, keep it open, and attempt to reconnect on socket failure. Are there any good APIs that offer this functionality? Smartfox Server is one option, but if I had my way I'd embed an API in my app rather than contort my app to run under Smartfox. Ideally it would offer an API on the flash end, another on the Java end, and efficiently (java nio preferably) handle the network component in between. I would just define handlers on both the client & server.

View 1 Replies

Media Server :: Flvplayback Stops Playing But The Client Is Still Listed As A Connection In FMS 3.5

Apr 7, 2010

I have a live streaming application using RTMP. Sometimes the playback works fine but sometimes it stops without any trace or errors in the log file, while still appearing as a connected client.

View 7 Replies

Professional :: Flash CS4 Can't Open .fla Files Or Lose Files/graphics?

Mar 20, 2010

I installed Flash CS4 Professional trial version for school use.  It wouldn't install successfully.  I deleted the font files the troubleshooting guide said to, tried again, but gave up. (I'm afraid to run regedit and mess up everything else I have loaded.)  (I previously had the Fireworks CS4 trial version loaded, then uninstalled it.)  My problem is this- I have it running, but it saves files and then they can't be opened, even if I use the save function often- it's worse when I create the file, test the movie and then save.If I try to open it again, it says "cannot open file."  Once it opened a copy I had saved, and it appeared blank, even though it was 544 kb file size.  I only need it for a few more days, one more assignment and I'm afraid my previous files are corrupt.  I have Windows Vista Home Edition.

View 4 Replies

ActionScript 2.0 :: Keeping Track Of Which Clip Is Open?

Aug 5, 2004

I have three movie clips which launch three different sections of my flash site when clicked. These clips are tiny images of three products.

When you click them I want another group of 3 clips which contain animations of the products zooming in to play an appropriate frame when they are clicked to zoom in.

Then, once the animation is done... the appropriate section loads.

Here is the problem. I can do the button actions fine. BUT -- When the next product has to zoom up I cannot get the one that is already zoomed up to zoom down and then play the next products zoom up animation.

Anyone know of a way to track and update the states of these? Or determining which of the 3 products was clicked and let them zoom in and out dynamically?

View 1 Replies

ActionScript 3.0 :: Open External Link Using It / Keeping New Window In Front

Aug 8, 2011

I am displaying a photo from an external link when called upon from my swf. When the user clicks a button, up pops a corresponding photo in a new browser window.  After the photo window has opened, if the user clicks another button the photo browser will update but its no longer in front.  I know I need to use the focus() command but cannot figure how to incorporate it into my AS3 code.[code]....

View 3 Replies

Media Server :: Flash Media Server Stops Accepting Connection?

Oct 21, 2010

We have one application in which we are using flash media server 2.0.5. We dont know why it's stop taking connection occasionally at that time we can't enter into the managment console. We get a white screen. When we try to enter user name and password it's does not accpet the credentials. We are not getting anything in the log.Port number 1935 and 1111 of the particular system where FMS has placed are working fine.

View 7 Replies

Flex :: Open Database Connection Only One Time?

Mar 14, 2011

When working with CRUD operation in flex, I want to know how to open only one time for all update and delete operations. How can I do this?

View 2 Replies

ActionScript 3.0 :: Check To See Local Connection Is Open?

Jan 10, 2009

I need to check to see if the connection is already open, and if so, remove it so I can reconnect (sending a new variable on the new connection).[code]...

View 9 Replies

Media Server :: Connection Timed Out When Open The Html File

Jul 19, 2011

i opened the html file and it said connection timed out?

View 2 Replies

Can't Open Flash / Fla Files (with CS4)

Sep 12, 2011

I am trying to edit a website for a friend (built with Flash and XML) and i can't seem to get into any of the .Fla files.I don't know if it is my version of Flash (CS4) or the files and not sure how i could test it. Could also just be a CS5 file hence i can't open it.URL...

View 5 Replies

Flash :: CS4 Cannot Open SOME .fla-files?

Jun 27, 2009

I use the translator. Not for a long time has decided to pass from the version cs3 and to put itself the version cs4 flash. All has risen like normal, was installed... But is while one any not clear thing to me, cs4 cannot start SOME source codes.fla (from template monster.com) which at me were easy started on the version cs3, the program simply starts to hang, and as a result I need to finish the appendix

View 1 Replies

Flash 8 :: Possible To Open CS3 / CS4 Files?

Oct 20, 2009

I'm trying to access a Flash file, created in CS4, in Flash 8 but am getting an "Unexpected file format." error.Is it just not possible to open the file in Flash 8?

View 2 Replies

CS5 :: Can't Open Flash Files

Nov 2, 2010

Download and install CS5 trial version but can't open flash files with flash CS5. Got error message like this:'Slides and forms documnets are not supported in this version of Flash.

Does full version support flash file with slides? If not, what can I do with the old flash files which created by Flash MX2004.

View 3 Replies

Can't Open Flash/fla Files?

Sep 11, 2011

I am trying to edit a website for a friend (built with Flash and XML) and i can't seem to get into any of the .Fla files.I don't know if it is my version of Flash (CS4) or the files and not sure how i could test it.Here is an upload of one of the files i am talking about

View 2 Replies

Flash Files Open With No Timeline?

Jan 5, 2010

I just uprgraded my Mac OS from 10.4 to 10.6. Now some of my Flash files open with no timeline and nothing on the stage. If I try to open a library item it crashes. I tried reinstalling Flash and installing all updates to the OS.

View 1 Replies

Flash :: Builder 4 Cannot Open Fla Files?

Apr 12, 2010

I cannot open any .fla file with FlashBuilder 4 under Windows:When I click on a .fla file I get the following error: "Windows cannot find 'Flash'. Make sure you typed the name correctly, and try again."

View 3 Replies

Professional :: FLASH CS3 Won't Open Files

May 3, 2010

I make all the Flash banners for my company including onsite events and IMAX films. There are pre made banners that I (we) are allowed to download and use from trusted sites (Paramount/Universal/IMAX/ etc). These are sent out so we can plug in our branding to promote the films locally. In the past year, all the Flash files that I have downloaded or had mailed to me on a disc will not open. The error that I get says:Failed to open document./Users/myname/Desktop/Flash Banners/FLASH/genericflashfile.fla.I first though that maybe the studios were using CS4 or now CS5, but the icon that comes with the .fla files are definetly CS3. I even purchased the SWF Decompiler as a work around, but once I decompressed the swf file, and then re-exported as a fla file, I received the same failed to open error.Files I create on my own work fine.I was wondering if I missed an update for CS3, but I double checked and am up to date.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved