Video Player in Flex - apache-flex

I am developing an application in Flex in which I need to play an MP4 file. The video is playing properly but not fitting in the video player window; some back area is left above and below the video clip. I tried to adjust the size but all in vain.

First of all, are you using the Flex "VideoPlayer" component?
If so, try changing the "scaleMode" property for your video player, by default it has the value of "letterbox", which is why you're seeing those black areas above and underneath the video. (Possible values are "none", "stretch", "letterbox", or "zoom".)

Related

How to change the orientation of a canvas in fabric.js?

I am loading a background image and then adding different texts/shapes on the canvas.
I am trying to implement a functionality for the user to change the orientation of the whole canvas in fabric js, from portrait to landscape and vice-versa.
I am not restricted on the exact functionality, but I don't have too many ideas on how to do it.
Changing the transform property from CSS, then changing the angle of all objects in canvas, doesn't seem good. Transform property messes up some functionalities of fabric js (selection, moving, scaling, etc...)
Any other ideas on how to do it?

Flex VideoDisplay: setting the thumbnail on a video which hasn't been played yet?

I have an mx:VideoDisplay object in Flex, and I wanted to change the initial image which is displayed for the VideoDisplay for the source video. The reason being, the frame that is initially being shown simply looks too funny to be taken seriously? An alternative is to layer an image on top of the videodisplay and then just remove it from the stage once I have set the video to play, but I would like to avoid having to do that.
You can use states and show the image before playing the video and use timer to remove it after n seconds and play video.
I am not sure it its the correct way, but I implemented the same way, when I got the same requirement.
Let m

Resize Sprite Flex/ActionScript

I am creating Sprite objects as simple shapes, and would like to know how to resize them dynamically.
my question:
How can I enable the Sprite to be re-sized on mouse drag(perhaps enabling a only a portion of the Sprite for this behavior)?
It might be important to note that I am using the Flex SDK, and therefore do not have full
access to the Flash libraries.
Thank you in advance.
You might want to check out the Flex Object Handles open source library. Check out the demo to see how it can be used to allow users to resize any object in a Flex app.
Doesn't the sprite always adapt itself to its contents to set its height and width? (like movieclips in as2). If you want to resize a sprite, I guess you'd have to draw something as background?
What do you mean by enabling a portion of the sprite to be re-sized?

Lightbox with Flex

I want a fusion chart in my flex app to display with a Lightbox effect like the effect you get when you click on any of the charts here or checkout the demos here
These effect have been attained with the help of javascript. How do i get the same effect via Flex? Any idea?
Thanks a lot
I built a Flex component called PopUpThumbnail that is very similar to HTML/JavaScript lightbox components.
Here's an example application that I created with it to displays Flickr images.
Add a mask over the top of the whole application with the content area in the middle and the semi alpha area around it. Clicking on the surrounding mask removes the layer, and you can interact with the content area as normal (make it look like a popup rather than actually using one...)

Flex VideoDisplay text quality

I am trying to display arbitrary mp4 videos in a flex application. Often videos have text on them.
Sometimes when I have to scale the video down (on the client size height or width less then videoHeight or videoWidth) keeping the aspect ratio Flash Player makes text look blurry.
Is there way to tell Flash to handle scaling more accurate?
Thanks
No idea if this will work but: you can maybe try to Enable Smoothing on VideoDisplay

Resources