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

Multiple Videostreams

New Here ,
Aug 17, 2012 Aug 17, 2012

Copy link to clipboard

Copied

i have to instances of video. they differ in dimension and aspect-ratio.  If i attache netstreams to them the second video displays in dimension of first video. setting video size explicit by  new video (480,360) or video.width = 480; video.height = 460; does not solve the problem. If i Leave setting size completely second video is in correec dimension but display jiggered and returns wrong dimensioninfos. Any Ideas to to solve it?

TOPICS
ActionScript

Views

471

Translate

Translate

Report

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 Expert ,
Aug 17, 2012 Aug 17, 2012

Copy link to clipboard

Copied

LATEST

if video is the instance name of your Video object, use:

function onMetaData(info:Object):void {

    video.width = info.width;

    video.height = info.height;

}

Votes

Translate

Translate

Report

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