Flex :: Cancel 'seeking' State Of VideoDisplay Class?

Jan 12, 2011

I 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 Replies


Similar Posts:


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

Flex :: VideoDisplay Class Does Not Show Preview Of Frames When Draging The Track Slider?

Jul 15, 2011

I'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)?

View 2 Replies

Flex :: Querying The State Of A Class's Listener?

Dec 13, 2009

I have instantiated a class (class1) that loads some data via PHP in an AS3 Flex project.I instantiate class1, which is asynchronous and utilizes a URLLoader() to obtain its data.Then I would like to instantiate class2, which needs to USE the data from class1, but when I simply instantiate it I find that class1's instance variable is not populated yet because I am calling class2 too quickly.How can I create such a dependency that will link correctly?I am really new to using listeners, but I am imagining a listener in class2 might be what I need?Or maybe I can pass a reference to the listener in class1 into class2?I also know nothing about dispatching events... is this the key?Here's an example in pseudo code:

var class1:myC1 = new myC1("http://some/url/to/utilize");
//this never shows up because it hasn't loaded at the time i request it
trace("the stuff from class1 is: ", class1.myXMLList);

[code]....

View 2 Replies

ActionScript 3.0 :: Flex - Loading Page As One State And The Main Application Design In Another State?

Apr 9, 2011

It's my understanding that view states can be useful when switching the layout of design elements. Such as, a loading page as one state and the main application design in another state. Is this the correct use of them? Additionally, I have a label in State1 and I cannot figure out how to access that label via actionscript. labelID.text = "New Text"; is not working.

View 2 Replies

Flex :: Get State Group / Actual State Object For Current?

Mar 30, 2012

I'm using Flex 4.5 and trying to take advantage of the new state groups feature. I have two States (call them readType1 and readType2) that both belong to the same stateGroup (call it readOnly). There are several places where I'd like to do something based on the current state, and it would be the same thing for the two read states. [code]...

View 1 Replies

Flex :: Set Size Of State After Moved Child State Using AIR?

Jul 25, 2009

In my air project i used current state size is width="441" height="358" . i have link button like Singin then move to singin state (currentstate='singin')

<mx:State name="signin">
<mx:SetProperty name="height" value="616"/>
<mx:SetProperty name="width" value="919"/>

So application resize into 616,919 . After that function finished move to current state like(currentstate='') But size not be changed . How can i set the size for current state?

View 1 Replies

Flex :: Fade All The Elements Of The Next State When Transitioning From Any State?

Jan 27, 2010

I want to fade all the elements of the next state when transitioning from any state.I tried different things but I can't get it to work. And I don't want to manually add transitions for every state.

Something like:

<s:Transition fromState="*" toState="*">
<s:Fade target="*" duration="500" />
</s:Transition>

View 2 Replies

Flex :: Creating State Children Before Switching To State

Mar 25, 2010

In my view I have a welcome screen:

[Code]...

Which is a pretty small component and I have panelContainer:

[Code]...

Whilst the user is reading the warm and fuzzy welcome note in the welcome state I want to be creating the big expensive panels state so taht when we switch there is no delay. Before the panels state is set panelView is null but I presume there must be an IDefferredInstance floating around somewhere that I can use to kick off the creation of the view. How can I get hold of it?

View 1 Replies

Flex :: Video Player Seeking With RTMP?

Apr 15, 2010

Am working in flex video player with RTMP.How to skip the video file to the middle of a video without having to download the whole file using RTMP.Where i want to put the Video file(FLV). Red5 server location or any other folder.Where i want to put the flex project out put file Red5 server or any other server like XAMPP. How Can i skip the frames in flex using RTMP(*red5*)..

View 1 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 :: 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 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 :: 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

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 :: FLVPlayback Component Freezes When Seeking Beyond Loaded Content?

Mar 12, 2010

I'm creating a flex-based video player, using the FLVPlayback component (imported from Flash Pro CS3). I've reskinned all of the player controls and linked them in, and it's all working really well...However, if you try to seek beyond the point where the video has loaded (it's using progressive download), the video completely freezes. You can no longer pause, play, seek to somewhere else, or anything. I understand it can't actually play a point in the video that hasn't been downloaded, but the whole thing seems to just become unresponsive

View 1 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

Flex :: Make VideoDisplay Not To Save All Data It Played?

Nov 27, 2010

How to make s:VideoDisplay not to save all data it played?

View 1 Replies

Flex :: Spark VideoDisplay - Telling Whether The Video Is Currently Playing?

Jan 26, 2011

I'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.

View 2 Replies

Flex :: Air - VideoDisplay Record/Save To Disk/server

Aug 1, 2011

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.

View 2 Replies

Flex :: Resize Video Child Of VideoDisplay To The Same Size?

Nov 23, 2011

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]......

View 1 Replies







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