Flex :: VideoDisplay: How To Autoload Without Auto-running
Apr 15, 2010I'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 RepliesI'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 Repliesi 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 RepliesI have an app. in which I have placed a ViewStack with (16) Tabs, and Im using a Timer set up to cycle every five (5) seconds through these VS Tabs automatically.
Each VS Tab has an IFrame included to load a particular web site, and I use the auto cycling to not need to go to each Tab manually and wait each time until the page loads before I can use it.
(Note: The IFrame does not need to do anything else other than to show the page nothing else)
All works very well on the work computer running the app. with CPU activity of around 20 to 30%, but when I address the app. on the sever I have increased CPU activity starting with around 30% on the first sequence, and running the second Tab sequence it is going up to around 90% in Semi-auto or Full-auto modes with five (5) seconds beak in between Tab switches and between each sequence.
To explain more in detail I do have six (6) sequences and an arrangement which uses Semi-auto or Full-auto mode (Looping).
I do use (timerName.reset) instead of (timerName.stop) and have also have used (timerName.removeEventListener .) as each Timer sequence get called separately.
I have a website im making in which jpgs are loaded through the loader component (using flash pro 2004) and I set the path and to autoload but the jpg. files won't load; something to note I have many instances of one loader but with different paths for different pictures.
View 1 RepliesI 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 RepliesI 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 RepliesIs it possible to play MP3 files using the VideoDisplay or VideoPlayer components?
View 2 RepliesI'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 RepliesFlex 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.
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 RepliesFor 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.
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.
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 RepliesI'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?
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,
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]....
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?
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)"
How to make s:VideoDisplay not to save all data it played?
View 1 RepliesI have a VideoDisplay instance playing some video. When I click on the video slider (also my component) the property videoDisplay.playheadTime is set and the videoDisplay.state goes from 'playing' into a 'seeking' state for a brief moment (the videoDisplay seeks for a new position and then plays the video again). Intended bevaiour. But if I'm (or any random user) fast enough, I can set the playheadTime again while the player is still in 'seeking' state. When repeated several times every click is enqueued and the videoDisplay jump on every place of the video I have clicked(this is happening in an interval about 10-15 second after my last click). When I use live dragging the videoDisplay, overwhelmed by seekings, goes into 'error' state.My question is - is there any way to cancel seeking state of the VideoDisplay class? For example player is in 'seeking' state, I set playheadTime, and the player forgets about last seeking and try to find the new place of the video.
View 1 RepliesI'm writing a Flex video player with a "slow advance" button, and my first approach is to simply toggle between play() and pause() on a timer. I'd like to say something like
if (video.isPlaying) {
video.pause();
} else {
video.play();
}
But I can't find anything like an 'isPlaying' property.
I want to also add cuepoints to a live recording video as it is incoming.
I have a live feed incoming from a VideoDisplay object in my Flex Air app, and I would like to be able to record the video/audio of this and save it to disk and/or upload to server.
Is this possible? If so, would it be possible to add CuePoints to the video as it is being streamed live? Right now I am just trying to record a live stream from my VideoDisplay.
i have the following code to play a video stored in the media server:
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[code]......
i have encountered a problem last night. my code looks like the following:
[Code]...
I am passing to the source property of a VideoDisplay component a DynamicStreamingVideoSource object with 3 different dynamic live stream items, described by this XML, for your consideration:
src="rtmp://88.87.56.214:1935/live/fashiontv_tmo_h.stream" bitrate="19200"
src="rtmp://88.87.56.214:1935/live/fashiontv_tmo_m.stream" bitrate="9000"
src="rtmp://88.87.56.214:1935/live/fashiontv_tmo_l.stream" bitrate="3600"
But the player then runs the stream with the lowest bitrate, out of those 3. Wasn't it supposed to go for the stream with the highest bitrate, that is viewable by the end-user? All 3 streams have been individually tested and they are all viewable.
If I have a flex swc emebbed in my html page, and the flex swc contains an flex 4 videoDisplay player, which has an option for fullscreen. How do I make the fullscreen work. Because when I click on fullscreen button for the videaDisplay, I get an error: [code]Connect with the people you need to get the job done. Unlike other tools, Cloud Groups lets you work with anyone, whether they're inside or outside the company firewall. Invite them into Cloud Groups to work together on projects, share files, assign tasks or catch up in real-time.
View 1 RepliesI'm using Flex 3 VideoDisplay class for playing streaming video. When I drag the track slider(change the playheadTime) there are no preview frames even if that part of the video is already loaded.
Is there anything I can do to enable this feature (from the configuration of media server or in the Flex client)?
I've created a Flex website that plays a video using the Spark VideoDisplay component. When selected, the VideoDisplay loads in the PopUpManager.
This works fine in all the browsers, except Google Chrome take significantly longer to start playing, during which the CPU usage peaks, then goes back down once video starts playing.
I've traced the player states it goes through and they are as follows:
Loading ready (hangs for ages with high cpu) buffering playing (immediately after buffering, CPU usage goes down, video plays smoothly)
What could be causing this to temporarily hang for so much longer in Chrome? I thought I could expect the same functionality and behaviour throughout all the browsers, as Flash is simply a plugin that runs as a separate process?
Edit: It seems that it's the same in Opera too. Is there any commonality between the two that would explain this behaviour?
[Code]....
Is it possible to run a Flex client in IntelliJ internally and have it talk to a separately deployed server instance? The server's a java webapp. This will make developing, especially debugging, much easier. What I'm trying to avoid is having to rebuild and redeploy the webapp to get the updated Flex code in it. I want to just build flex and run it against the server.
The flex client is embedded in an HTML page on the server, so in production the users access the client by going to a web page. We're using GraniteDS if that's important.
Update
I'm managed to cobble something together, but it's ugly.I made a copy of our wrapper HTML page and fixed the links to refer to the SWF in target.I setup the IntelliJ run config to point to that HTML page.I set the 'Place SWF file in a local-trusted sandbox' to true
Hardcoded the {server.name}, {server.port}, and {context.root} values in the service-config.xml GraniteDS config file to localhost, etc.
I can mavenize #1, but #3's isn't really a permanent solution. That part is still a problem because I can't check this in.
For some reason I cannot catch the Ctrl + Z keyDown event in my Flex application when it runs in IE. It works fine in FF/Chrome/Safari.
I have a simple Group control where I listen for keyDown and try implement my own Undo logic. I need to catch Ctrl + Z because any other key combination would feel unnatural to most users.