Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

FLV newbie needs some video help

Community Beginner ,
Feb 23, 2009 Feb 23, 2009
Hi,

I have a Flash video player, built in ActionScript 2, that I've recently needed to change from a 4:3 ratio to a 16:9 ratio. The videos are brought in from a Flash Media Server. The player is getting rebuilt in ActionScript 3 later, but for now it should stay in v.2 for a quick turnaround. Back to the point...

The original videos were 400px x 300px. The widescreen videos will be 534 x 300. Since the 4:3 videos aren't wide enough, I want to float them in the center of the player, with black "bars" on the left and right sides. Is there anyway to center the videos streaming from the FMS while keeping each video's original proportions intact? It looks like YouTube is doing this already. Are they actually centering the videos or are they "faking it" somehow?

Any help would be really appreciated. Thanks in advance!
TOPICS
ActionScript
394
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Feb 24, 2009 Feb 24, 2009
Hi dzedward,

Thanks for your help. Got it figured out. I placed the video object in a movie clip and made sure the movie clip changes its width and height based on the meta data it receives.

Many thanks.
Translate
Mentor ,
Feb 23, 2009 Feb 23, 2009
I assume you're attaching the video stream to an object, well when you receive the meta data, check the width of the video, and center it to the controls or some point.

If your player doesn't have a default black background, you can just attach an object under the stream that is the widescreen width, giving it the "bars" look.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 24, 2009 Feb 24, 2009
LATEST
Hi dzedward,

Thanks for your help. Got it figured out. I placed the video object in a movie clip and made sure the movie clip changes its width and height based on the meta data it receives.

Many thanks.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines