Flex :: VideoDisplay Cannot Load Local Flv Files?

Jun 28, 2010

I have noticed that I have to put flv files in the same or sub-directories of the application file, for example myproject/bin-debug/flvs/1.flv, and use videodisplay.source="flvs/1.flv" to load.

If I put it in myproject/flvs/1.flv, I cannot load it in VideoDisplay, using videodisplay.source="../flvs/1.flv". However the metadata (duration for example) is retrieved, but play() cannot start it.

View 1 Replies


Similar Posts:


Flex :: AIR: Load Local Xml Files Outside The Application Folder?

Apr 22, 2011

I'm building an AIR application which will be used to edit slideshows for another app (also built by me, but not in AIR). The slideshows and other data are defined in several xml files which are in the other application's program folder. When trying to load these into my AIR app I get the following error:

fault(mx.messaging.messages::ErrorMessage)#0
body = ""
clientId = "DirectHTTPChannel0"

[code].....

View 1 Replies

Flex :: VideoDisplay Can Play MP3 Files?

Apr 12, 2011

Is it possible to play MP3 files using the VideoDisplay or VideoPlayer components?

View 2 Replies

Flex :: VideoDisplay Child Always To Be Same Size As VideoDisplay

Sep 9, 2009

i have a VideoDisplay [code]and i want to make the child inside VideoDisplay to resize with him to make his size 100%/100% (size of the child)cuz video.height and width accept only integers and ican't put % in there

View 1 Replies

ActionScript 3.0 :: Error #2148: Only Local-with-filesystem And Trusted Local SWF Files May Access Local Resources

Jul 4, 2010

I'm trying to load a local xml file:

xmlLoader.load(new URLRequest("../xml/xmlData.xml"));

But I'm getting this security sandbox violation:

#2148: Only local-with-filesystem and trusted local SWF files may access local resources.

I don't get this error when I embed the XML file directly with the EMBED metadata tag.

View 3 Replies

ActionScript 2.0 :: How To Load Local Files

Apr 28, 2004

is it possible to load something thats in you library, as a external movie. or is it possible to "preload" a external .swf?

View 2 Replies

ActionScript 2.0 :: Load Local Files From Disk?

Jul 26, 2011

I've posted this in the AS3 forum, but I was told its supposed to go here...I need to know if it is possible to do this in AS2...

Code:
w w w.kirupa.com/developer/as3/loading_files_disk_pg2.htm
(cannot add links... since I have less than 50 posts)

[code].....

View 5 Replies

ActionScript 2.0 :: Load Files From Local Disk To Flash Movie?

Nov 14, 2011

I got a very nice article to load files from local disk to flash movie directly.

article link : [URL]

i want to do same thing using as2.0

View 8 Replies

ActionScript 3.0 :: Save / Load Files From Flash To Local User Space (Not Network)

Sep 16, 2010

I've been fooling with this problem since AS2.0 (and shared Objects) and I'm not much closer to solving it, partly because every article I read on it is focused on php and server-side stuff that doesn't apply. How to load a String Array from a txt file in local user space (the folder from which the .swf is run). What I need to know: The easiest way for the user to save/load a file. The file has to contain Objects and Arrays reflecting his current status in the game. The goal is to avoid non-Flash apps and languages, and external Classes if possible (I do everything right in the main fla). I don't mind that the user has to initiate and approve the upload/download.

View 1 Replies

Release - Flex Build Use Local Files?

May 26, 2011

I have a very stupid problem. I'm using Flash Builder (Flex) 4. My application displays a video using VideoDisplay component and some images. The video filename is always named video.mp4 and the images are inside a folder called "real/". The video file and the real folder are in the SAME location of the .swf built.

The video source in the code is set like this: videoDisplay.source = 'video.mp4';

and the images, loaded dynamically, are like:

img.source = 'real/' + imageFilename;

[Code]...

View 1 Replies

Flex :: Force Flex Apps To Load On A Local Domain?

Jan 11, 2010

I have a situation where I need my swf to load from a domain. Currently my flex set up always loads a SWF from file [URL]...

View 1 Replies

Flex 3 :: Load A Local Resource Synchronously In It?

Jul 16, 2009

I want to store some test data for a FlexUnit test in small XML files in my Flex project, and access them trivially for the flex test. How can I load these bits of data synchronously? HTTPService is the way I'd be loading them _a_synchronously, but adding event handlers to my test cases seems like a bit of overkill.

View 2 Replies

Flex :: Load Local Javascript Using Stagewebview?

Jul 24, 2011

I'm currently developing a flex mobile project. I currently need to load local javascript using stagewebview. Like:

var str:String = '<head>'+
'<script src="myLocalJs.js"/>'+
'</head><body>...</body>';
webView:StageWebView = new StageWebView();
webView.loadString(str);

Is there any way to load local javascript using StageWebView? I'm not expecting an answer like 'There is a project called StageWebViewBridge' since it does't have all the features I need.

View 2 Replies

Flex :: Load Local File As JSON Source?

Nov 29, 2011

In a very simple first AIR application (I'm using Flash Builder 4.5), I am trying to accomplish the following on my MacBook:

Read a local file (JSON format) into the AIR app. Parse through the file. Display some selected contents in a grid.

That's it.

I've found an example that does some simple JSON parsing in Flex, but the problem is that it loads the JSON source from a remote web site.

So do I need to load any file-specific libraries to make this work in AIR? Or can I simply refer to the file by using the Mac file-path? I just want the local file to be the JSON source. The parsing is already taken care of.

View 1 Replies

ActionScript 3.0 :: Uploading Local Files Without Requiring User To Select Files?

Feb 3, 2009

My users upload a certain kind of text file that sometimeshas references to images stored locally on their hard drive. I needto check this file either on the server or within a flash app tosee if it has these references and then grab those images in aflash app to upload to my server.So I can use FileReference easily enough to have users uploadlocal images. But FileReference requires users to select their files with a dialog box. I can't have that. Myusers wouldn't know where to look and there are typically way toomany files, sometimes with the same name but in differentdirectories.

I can also just use URLLoader with a local URL, I guess I canprobably just use Loader too? That works great. The problem here isI can't communicate with both the server and the local filesystemin the same flash application due to Flash's security sandboxrestrictions. So I can get out of those security restrictions byplacing or editing a trust file in designated locations on variousOSes. I then need to install this trust file which is more invasiveand confusing to users then I want to be...Java's method of accessing local files from a web applet bysimply signing the applet with a certificate and having a dialogbox popup where the users grants access is ideal. Is there anything

View 4 Replies

Flex :: Load A Local File Without Having To Ask The User To Browse To It First In An AIR Application?

Jul 22, 2011

I'm writing a small application for myself and instead of using a database I'd like to just use Excel to store the small amount of data I have on my local file system. I want to be able to load that data without having to use the typical FileReference browse() method as it would just be annoying to do every time I use the application.

The code below seems to find the file fine as the file.exists method below and most of the other attributes seem to be correct but the file.data is always null.I'm guessing this is a security issue and that's why I'm running into this problem but I thought I'd ask and see if there is in fact a way around this problem.

var file:File = new File(fullPath + "\" + currentFolder + ".txt");
if(file.exists) {
var byteArray:ByteArray = file.data;
}

View 2 Replies

Flex :: Removing VideoDisplay In Flash

Nov 12, 2009

I have a videoDisplay object in a popup.When I remove the popup the video continues to play.How do I remove the videoDisplay object from memory?I have tried setting the variable to null but with no luck. I can just call the stop() function and forget about it but am wondering whether this won't come back and bite me.

View 1 Replies

Flex :: VideoDisplay Reconnect After Idletimeout?

Mar 26, 2010

I have a VideoDisplay that is able to connect to a source and play. After the connection times out I want the connection to be re-established when my play button is clicked. Right now when I reset the source and play the videoDisplay, it gets stuck in the loading state.

View 1 Replies

Flex :: PlayBook - Create A File Browser To Allow Users To Load Images From The Local System Into The Application

Mar 24, 2011

I'm developing an application for the Blackberry Playbook using Flash Burrito 4.5 and Flex. I'd like to create a file browser to allow users to load images from the local system into the application. I followed this example [URL] When I click on the Load Image button in the simulator however, the file browser pops up but tells me that "no file was found with the specified filter", even though I don't specify any filter or even if I specify a . filter.

View 2 Replies

Flex :: VideoDisplay MetaDataReceived Ready Totaltime

Nov 2, 2009

I'm building a video player that run's FLVs and cannot overcome the fact that flex foes not fire the metadataReceived event sometimes. Sometimes it does and sometimes it does not. Therefore the total time of the FLV remains -1. I understand its a known bug , I'm researching about it for a long time now , but could not find a good workaround by now, found one that says to set the buffer time to 0 and try that, but it's also does not work.

View 1 Replies

Flex :: Video Or VideoDisplay When Does It Make Sense To Use One Or The Other

Nov 19, 2009

Flex appears to have 2 video classes: Video and VideoDisplay. My question is when does it make sense to use one or the other?

What I can tell from initial glancing is that VideoDisplay responds to mouse events because it inherits from IntaractiveObject, but I'm not sure if it's a real difference, because Video seems to have a workaround for this in that you can add your own event listeners.

There's probably more to it, but this is the only difference I can see now. So my question for those who used these objects extensively, can you share your experience when you use one over the other.

View 1 Replies

Flex :: Adobe - Take Screenshots Of A Spark VideoDisplay?

Mar 2, 2010

I want to build a component, where the user can play a video in a Flex Spark VideoDisplay. There will be a button and whenever the button is pressed, I want to save the current time of the VideoDisplay plus a screenshot. The screenshot needs to be someway saved, because I want to display all times and screenshots in a DataGrid (screenshots should appear when the user hovers a time in the DataGrid). So, how can I take screenshots of the Spark VideoDisplay and save/display them?

View 2 Replies

Flex :: Random Point On VideoDisplay Isn't Accurate Enough

Mar 17, 2010

For a schoolassigment me and some buddies of mine are creating an application that is showing many similarities with the C-Mon & Kypski musicvideo on [URL]. The application is being developed in Flex.

We want to get a random point of a clip, let it pause so a user can mimic the pose and make a snapshot out of it.

What i managed to do is get a random point of the movie. I did this by getting a random value between 0 and de total duration of the movie.

But what i didn't managed to do is let the screen pause on every 24st of a frame. As the movie concist out of 24FPS. It looks like the the random value of the movie that is being requested is being rounded by the movie itself. As example: There appears to be no difference between the frames requested at 2.40 or 2.41.

It appears it got something to do with keyframing i've read on the Adobe® Flex™ 3.5 Language Reference. The movie is a FLV file and i use the VideoDisplay object to display the movie.

View 1 Replies

Flex :: VideoDisplay: How To Autoload Without Auto-running

Apr 15, 2010

I'm using videoDisplay MXML component for my Flex app.I would like to autoload videos (in order to display the first frame) without automatically run them.

View 2 Replies

Flex :: Url To Play Rtmpe On Videodisplay Component

Feb 1, 2011

I'm trying to play a video from amazon cloudfront in a videoDisplay component in flex3. My problem is that the source url is a rtmp with expire, key-pair-id and Signature parameters. I don't know what final url pass to the videoDisplay source. [URL]..

View 1 Replies

Flex :: VideoDisplay Control Does Not Open Stream

Jul 9, 2011

I'm trying to make VideoDisplay playing media with FlashDevelop. Here's the source of my application:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="[URL]">
<mx:Script>
<![CDATA[
import mx.events.VideoEvent;
private function pause():void {
[Code] .....

The problem is when I build application and run it (unfortunately, got no idea how to run it without KMPlayer or Mozilla - Flash Player is a plugin afaik) I got no video. The movie file is in the same directory as application's "Application.flv" one. But if I reload application (within player or browser) a few times, video starts. So, here are my questions: What's wrong with VideoDisplay component and how to fix this 'non-playing'? What's the better way to execute application than running it within movie player or browser?

View 4 Replies

Actionscript :: Streaming Video Using VideoDisplay In Flex?

Nov 30, 2011

i use this tag:

<mx:VideoDisplay id="myVid" bottom="0" width="100%" height="100%" live="true" autoPlay="true" source="http://localhost:5080/oflaDemo/{myvideo}"/>

but the only thing i get is the sound of the video and not the video itself,

View 1 Replies

Flex :: Restore Spark VideoDisplay Stream?

Dec 8, 2011

how to receive an event when the streams disconnects that would be great.

The documentation for this control is simply horrible. I have an application that will have a live video stream and I'm looking for a way to make the VideoDisplay control restore its connection in case of the occurrence of any of these specific scenarios:

The application starts and the stream is not online yet. The application is streaming and the user is disconnected from the internet. The application is streaming and the video server crashes and reboots.

I'm using Wowza Media Server and Wirecast to test this. 1 and 3 don't work, I'm not sure number 2 does. I made number 1 work by adding this very questionable piece of code:

[Code]....

View 2 Replies

Flex :: Spark VideoDisplay In Popup Causes Memory Leak

Jun 3, 2010

I'm currently building an air app with FB 4.

I have a custom control that contains a VideoDisplay control, and which loaded using the PopupManager.

Using the profiler, i've noticed that every time the my popup is loaded the memory for it gets allocated, but when it's closed the memory is never recovered.

There's nothing else holding a reference to the popup. And if I don't set the source of the VideoDisplay object, then there is no leak - but as soon as the source is set I get a leak.

I can't see any method to force close the stream or anything on the spark VideoDisplay control.

EDIT: I have tried setting the source to null before closing the popup but that doesn't change anything.

Also, I'm not holding any event listener to the video.

Edit 2: It doesn't happen if I replace the spark VideoDisplay with an mx VideoDisplay. Bug in the spark component?

View 1 Replies

Flex :: Attach Camera To Spark.components.VideoDisplay?

Nov 14, 2010

I'm using Flash Builder and created a spark-application Flex project that will stream video from the local camera. If I use mx.controls.VideoDisplay; there is no problem since it has attachCamera(camera) method. But Spark's VideoDisplay component does not have that method. I know I can use mx controls inside a Spark app but I want to know:

What is the real difference between spark.components.VideoDisplay and mx.controls.VideoDisplay?How do I attach camera to spark. components.VideoDisplay?Is there any advantages if I go with spark (since it's newer to mx library)?

EDIT: In the documentation this is mentioned: "Starting with Flex 4.0, Adobe recommends that you use the spark.components.VideoPlayer class as an alternative to this class. (mx.controls.VideoDisplay)"

View 4 Replies







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