Flash :: Get Dimension Of Video In VideoDisplay
Nov 2, 2011I'm trying to get the dimensions of the videosource in a VideoDisplay:
private function loadMovie () : void {
vid = new VideoDisplay();
vid.source = _item.itemLg;
[Code]....
I'm trying to get the dimensions of the videosource in a VideoDisplay:
private function loadMovie () : void {
vid = new VideoDisplay();
vid.source = _item.itemLg;
[Code]....
I am streaming flash video and the dimension of the video is 1280 by 720 (same size as the stage)
but just before the video streams, there is a quick flash of the video (about 320px by 240px) at the top corner of the stage, and then it plays the videos at the correct size (which is 1280 by 720) .... a quick flash is the best way I can explain it.
This is my code:
function clicked(event:MouseEvent):void {
var video:Video = new Video();
addChild(video);
[Code]....
is there anyway I can stop that quick flash of the video .... so when I click on the button, it just plays the video, at the correct size?
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 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 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,
I want to use VideoDisplay components just to show the first frame of the videos, as a preview. So, what I do is
video.autoPlay = false;
video.autoDisplayFirstFrame = true;
But the problem is that they start downloading the entire videos. I've read some topics and docs and I feel that there is a way to avoid it For example, I've tried this line: video.mx_internal::videoPlayer.bufferTime = 1;
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.
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]......
The issue I'm having is that I have a main "wrapper" 100x100 (but it could be any size) - it's just there to hold and display whatever content, swf, gif, etc we may want to throw into it. As long as the loaded content doesn't have 3D animation like rotationY going on, it displays fine. But when it does, the 3D "anchor" properties (like projectionCenter) of the loaded swf inherit those of the main timeline (i.e. 100x100 (main) vs 728x90 (loaded)). If I change the dimension of the main "wrapper" in Flash IDE to match what's coming in - the 3D behaves fine, but I won't know what the dimensions of the content will be until it comes, so I need a way (if there is one) to dynamically alter the main "wrapper" or root display object through AS. Stuff like "this.width = loader.width" or "stage.width = loader.width" or "root.width = loader.width" etc doesn't work. Flex has the hBox and vBox
View 1 RepliesI am trying to create an HTML page that is showing a video (SWF file calling an SFV file). The video is the exact size of the SWF file. When I embed the SWF in the HTML page, I have set up width at 100% and height at 100% Though the result is not the one I want, as I would like the movie to match the biggest window dimension, not the smallest. A good example can be found here : [URL]
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 RepliesWhat ist the best dimension for photography portfolio in Flash?I would like to make my portfolio website with my photographs.
View 3 RepliesWhat is the right dimension when creating flash website?
View 1 RepliesI 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.
Recently i made flash animation in 500x300px, now i need to re-create the same animation in 100x65px, plz tel me how can i decrease the dimension of same animation widout re-creating it in new dimension. is there any codes or tools or plugins?
View 3 Repliesi'll be straight to point,well i'm now working on a project using action script 3 now what i'm trying to make is a Main SWF that load whatever other swf into it the tricky thing is that i used 1 xml document read the external swf source nad it's setting(such as it's x,y position and it's width and height) and i'm having problem setting it's width and height (i mean the loaded swf width and height)
Code:
//variable list
var swfList:XMLList; //hold all the zone list from the xml
var totalZone:uint; //total of zone there is in the xml
var myURLLoader:URLLoader = new URLLoader();
[Code]....
i want to ask how to make a placeHolder in flash actionscript 3..,what i do need to know is that how to sett a placeholder width and height:confused::confused::confused:
Code:
import flash.display.*;
var placeHolder:Sprite = new Sprite();
[code].....
I have a class (ImageLoader) that extends Sprite container and loads an external image to its instance. When i instantiate an object of this class from another (Main) class i want to have the dimensions (width, height) of the loaded image being known to this (Main) class. It seems that is difficult for me as the dimensions are known after the image compete loaded. But i don't know how to pass this information from completeHandler event handler to the Main class.
package
{
import flash.display.Sprite;
import flash.events.Event;
[Code].....
Is possible to change the browser dimension dynamically in flash? I have a ball that bounce up and down on the stage and I would like that everytime it bounces on the bottom the broswer window gets bigger ..
View 1 RepliesI've made this code:
Code:
var txt:TextField = new TextField();
var frmt:TextFormat = new TextFormat();
txt.autoSize = TextFieldAutoSize.LEFT;
frmt.font = "Arial";
frmt.size = 800;
frmt.color = 0xFF00FF;
txt.defaultTextFormat = frmt;
txt.text = "TRY WITH THIS";
I've seen around the web flash websites with text bigger than the max flash dimension of 72 pt. How can I make that? I've tried with the code above but it seems that flash set the text size to 72.
Cut and pasted example with buttons for videodisplay control in chp 9 of Adobe Flex 3 developer guide. Having problems.
History - take avi, create flv. In my mxml, file define mx:videodisplay, refs flv file and define buttons for play and pause, all within mx:application.
Compile mxml with mxmlc to create swf. Call swf file within html using <object> and <embed>. Run html.Result is that the buutons show but the video control is black - no video.i have written mxml file as an air file (so use mx:windowedApplication) and compile with amxmlc and the resultant app runs as expected.I can also convert the flv into an swf file and run that from html but then I do not get buttons.
Do you know why the VideoDisplay.seek() would always go to the same frame at 1 second, no matter whether it is asked to seek forward or backward? This happens to some MP4 and other others. Is there some functions or variables I need to set?The MP4s that don't work with VideoDisplay.seek(), can be seeked using Quicktime.
View 5 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 Repliesthe API documentation for the VideoDisplay control(http:[url]....)indicates that one should use the "connected" property to determine if it is safe to set the playHeadTime property. Alas, there is no "connected" property anywhere to be found, either in the API document itself or in the accessors listed for the control within Flex Builder.So I assume this is a major typo or something.
View 0 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 RepliesI 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'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 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.