Skip navigation
mjanoschekadfgwefg
Currently Being Moderated

Multiple Videostreams

Aug 17, 2012 2:19 AM

Tags: #video #netstream

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?

 
Replies
  • kglad
    72,189 posts
    Jul 21, 2002
    Currently Being Moderated
    Aug 17, 2012 7:04 AM   in reply to mjanoschekadfgwefg

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

     

    function onMetaData(info:Object):void {

        video.width = info.width;

        video.height = info.height;

    }

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points