Flex :: Get Flv Length Before Uploading To Server
Dec 10, 2009I'm using the FileReference class to upload flvs to a server. Is it possible to check the flv length not size before allowing an upload?
View 2 RepliesI'm using the FileReference class to upload flvs to a server. Is it possible to check the flv length not size before allowing an upload?
View 2 RepliesI want to upload data (not a local file) with Flex (4.1), and show what the progress is of the bytes sent. Now I use a URLLoader, but I know that URLLoader was designed to download data, I can connect a listener to ProgressEvent.PROGRESS but that has no effect. I also know there is a FileReference object which supports uploading. The problem here is, I do not want to browse for a file and upload it. I have a byte array which I want to send to the server, but the data property of FileReference is read-only. How can I send the byte array (which is actually a PNG encoded image) to the server and be able to track the progress of the bytes sent to server?
View 1 RepliesI'm using Flex 4.5 in a Mobile air for android application. So, Using the Camera/Camera roll [URL]I want to do a simple upload using amfphp Note: Since this is how you get pictures on devices, i cant use the filreference because it wants you to get the pictures using "browse" which cant be done on android or ios My plan is, after I select a picture or capture one with the camera, in the event I can get the local url to the picture that was taken like this:
[URL]
I'm putting this in the imageURL var (i'm assuming i should make it into a byte array to transfer it, im not exactly sure this is my first time making something like this)Here's how i'm taking that image, making it into a byte array, and using amfphp to send the upload to the server:
protected function upload_btn_clickHandler(event:MouseEvent):void
{
var request:URLRequest = new URLRequest(imageURL);
var urlLoader:URLLoader = new URLLoader(request);
[code]....
But i'm getting an error NetConnection.Call.BadVersion.This is the first time im trying something like this so im not even really sure if im going about it right. All the examples I find online go about using the fileReference class, but that seems to require me to use the "browse" method, and im on a mobile application that uses the camera and camera roll to grab pictures off the device, and im not sure how to incorporate that into the fileref class. I figured i could just get the byte array and send it to php myself and it should be just fine.
I'm a C++ programmer, but I'm a newbie in Flex. I'm developing a Flex 3 application for a social network using the FlashDevelop. For debugging I'm using the stand-alone FlashPlayer (10.3 debug) downloaded from Adobe. The application is a simple audio player which shows artist/album images.
The application worked properly on both local computer and remote server until I made some layout changes in Main.mxml. I added some HBoxes and changed Image placement. After that the application still works on my local computer, but it doesn't work properly after I upload it to a server.
Application buttons are not highlighted on over/out/click events, images loaded from the Internet are not displayed, text changed dynamically is not displayed, but when I click buttons a sound file is loaded from the internet and starts playing. It looks like some events which are responsible for components displaying are not dispatched, because some part of functionality not related to displaying still works.
To make sure that this is not a server problem, I rolled back to the previous revision. All works fine.
I suppose that this is a known issue, but I have no idea what is the reason.
I 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 on streaming my files with the FMS 4. There are several testfiles on my VOD-directory, most of them with a length about 2 minutes. Altough there are some with 12 minutes. So if i want to play all those files with the StrobeMediaPlayer, only the files with a 12 minutes length are working, on the others the player ist sayin "We are unable to connect to the content you´ve requested. We apologize for the inconveniece.".ind any option or notice where it says there is a minimum lenght to stream... so whats going wrong here?Additional Infos:FLV, MP4H.264 + AAC
View 1 RepliesI imported a video in flash cs4 and media encoder did it's thing. I saved the file as a swf flash file and uploaded to server.
View 1 RepliesI want to upload my images to server,But i have no idea.pl share if u have any good sample.
View 1 RepliesI want to upload multiple files. For this I used FileReference and it works fine. I m able to upload the files properly.
When i upload a file i change its file name from "pic1.jpg" to something like "asdfwer.jpg"
Now i want to get this new name of a file - so for that i set cookie using setcookie() in php. But the problem is "Cookie is not being set" I dont get the reason for that.[code]...
I'm developing a drawing application in flash and I want that when a user has finished his drawing, he can upload the file to a server I found a code on the web that does what I need, but when I upload the image to the server, there open another window and I don't want it does that, I want that simply upload the file to the server without opening another window.
[Code]...
I have a nice, small animation in a header I've made for a website that looks very crisp and clean in flash, but when I upload it onto my website or preview it in a browser the framerate is lower than how I designed it.
View 7 RepliesI'm building an app that needs to upload multiple files to my server. Ask of these files are in one folder. I was told I carnot directly tell a fileReference which files to upload, they would have to be selected manually through browse ().
View 2 RepliesI am trying to upload an image on my server using Flash and PHP. The following code works fine on 1 server but doesn't work on other 2 servers where i have to implement it. Please check it and see where am i going wrong.
[Code]....
is it possible to upload an image from local computer to online flash application, but without actual uploading it to a server, just in memory. Need to load picture, make some manipulations, print it from flash and forget.thrashing the server with loads of photos is worst scenario.
View 5 RepliesI'm developing a drawing application in flash and I want that when a user has finished his drawing, he can upload the file to a server. I found a code on the web that does what I need, but when I upload the image to the server, there open another window and I don't want it does that, I want simply upload the file to the server without opening another window.
This is the AS code:
Code:
import com.adobe.images.JPGEncoder;
save_btn.addEventListener(MouseEvent.CLICK, guardarImg);
function guardarImg(e:MouseEvent):void
[Code].....
We are using influxis fms connect, we need to upload videos and audios using php script, i dont know what to do exactly with this fms connecti need the answer for the following query, so that i can get into it, How to upload audio or video files to rtmp server using php script, since my php scripts is in one server and the fms is in another rtmp server?
View 1 RepliesI did a bit of search without success to find if anything like this was answered before.Sorry for asking a silly question, I am a newbie and hence maybe missing something obvious.I used the Encoder to create the flv file and embedded the file in the timeline and the swf file plays the video just fine locally. For some reason, it's not playing after I uploaded it to the server. I did copy over all the files (swf)s) & flv). It's a very small video and I can't even see the video(just blank) while running the swf file after uploading the files on to the server. All other frames are working as expected.
View 1 RepliesI'm trying to use uploadify to upload images to a remote server. I've have done everything I can think of for the cross scripting issue or whatever. Here is what i've done. scriptAccess to 'Always' in the uploadify function. I have a crossdomain.xml on my ww2 server with uploadify.swf in the root as well. I have uploaded my javascript jquery lib file to the remote ww2 server and put it in the header I put the jquery.uploadify.js and the swfobject.js in the root directory as well.
If I try to click the X to cancel a file I get the error: Error calling method on NPObject Or uploads don't work either. If anyone can help with this that would be great. If there are any other good flash based or non flash based multi uploaders that will do remote files with no issue please let me know.
Ive been trying to create this code for some time now and just wondered if someone out there who may read code better than me may work out why the image doesnt end up on my server as i seem to have brain freeze on this :(
var fileRef:FileReference = new FileReference();
fileRef.addEventListener(Event.SELECT, selectHandler);
fileRef.addEventListener(Event.COMPLETE, completeHandler);
[code]......
I have a big problem : My gallery ( with xml) was working perfect until yesterday . I uploaded my files to my server to test them. This morning I reopened the fla to make modif and big surprise : only the big image appears but no thumbs anymore in the scroller. I tried to trace the xml nodes but thay are now undefined. WHY? Everything is in the same folder.Nothing changed. I turned everything upside down but nothing. Does a uploading can affect some configuration ? Are the xml modified modified after being uploaded ?
View 3 RepliesI was using the script on the [URL] page to upload files and I get 403 on my mediatemple grid server. (It works fine on localhost). I tried adding the following to .htaccess:
SecFilterEngine Off
SecFilterScanPOST Off
But it gives me Internal Server Error - 500
I created a website in Flash, published it, and uploaded the swf and html file to the server. When bringing up the website Flash doesn't play automatically. I first must right click and select play. When I was testing my flash site on another server, it worked great and played automatically. Is there something within flash that I need to modify or is this an issue with the server?
View 3 RepliesI'm trying to use Flash Media Server (on Amazon) to read in a video feed from a user's webcam, process it via my own executable, and return processed data (not video) to the user. For simplicity, let's say my executable finds the darkest pixel in the image and returns its coordinates, and I want the client to draw a cross at this location.
The client-side is working fine. It can send the video stream, and receive vertex data to draw. The server is half-working. It can accept connections, and send fake vertex data to the client. However I can't find any way to access the webcam stream.
Ideally, I would pass each frame from the stream into my executable for processing, with no saving to disk (or perhaps minimal saving to disk as a cache for P-frames). I've got the impression that this is impossible though, so another acceptable solution is to save the stream (live) to disk, and read it (live) from my executable.
Also, somewhat relatedly, I would like to secure the video feed as much as possible. Eventually I'll use SSL to secure it in transit, but for now I have the more serious problem of FMS sharing every stream it recieves. I'm sure there's an option to disable this somewhere, but I just can't find it.
Is there any way to have a function which connects to a server and uploads a local file without calling FileReference.browse?I have an application at a kiosk which is recording a short webcam movie of a guest. Once completed, I'd like for the video to be put on a server and a link send to the guest. I've got the link part working, but am not sure how to get the file up to the server automagically.
View 4 RepliesActionscript:
System.security.allowDomain("http://" + _root.tdomain + "/");
import flash.net.FileReferenceList;
[code].....
I am trying to record a video chat being done through FMS. I have made my program start recording only when the second stream publishes. Then, I stop recording when either streams stops publishing. In my last test I recorded a 45 minute chat. The resulting flv files show that there are 13 seconds difference between them. The video gets more out of sync as it goes along. My first guess is that it is something to do with dropped frames. Is there any way to force FMS to fill in dropped frames. I'm posting my code for starting and stopping recording:
[Code].....
Let's say I have array foo and a positive integer y, where foo.length > y.I want to remove elements from foo so that foo.length becomes y (or very close to it).Also, I need to preserve the first and last element of foo. The indices of the removed elements must be spaced apart as equally as possible. Foo can be sliced, or it can be used to create a new array.
Example: if foo = [a,b,c,d,e,f,g,1,2,3,4,5] and y = 6, then trimmedfoo could be [a,c,e,g,2,4,5] or maybe [a,c,e,2,4,5], but not [a,c,e,g,2,4] because the last element of foo is missing.
how to do this
function foo(x:*, ...args):* {
}
function bar(x:*, ...args):* {[code].....
how to expand args ? when I call bar(1,2,3), I wish it call foo(1,2,3), but it call foo(1,[2,3])
Is there any way to determine if a (anonymous) function has defined the ...(rest) parameter in ActionScript 3? I know there's the function.length property, but it only counts the explicitly defined arguments.
View 2 RepliesI am trying to get the length of arrays within an array, here is my example (MX 2004):
[Code]...
I get an output of of 3. the number of variables within the first array, this is not what I had expedted.