Skip navigation
ionflow
Currently Being Moderated

LayoutMetadata Ignored With Parallel Elements

Jun 3, 2010 2:25 PM

I'm having difficulty getting my parallel data to scale properly. Here's my execution:

 

 

private function createMediaElement():MediaElement

{

 

     var layoutMetada:LayoutMetadata = new LayoutMetadata();

     layoutMetadata.scaleMode = ScaleMode.LETTERBOX;

     layoutMetadata.horizontalAlign = HorizontalAlign.CENTER;

     layoutMetadata.verticalAlign = VerticalAlign.TOP;

     layoutMetadata.top = 0;

     layoutMetadata.left = 0;

     layoutMetadata.right = 0;

     layoutMetadata.bottom = 100;

 

     var resource1:StreamingURLResource = new StreamingURLResource(BASE_STREAM_URL + REMOTE_STREAM1, null, 0, 5);

     var videoElement:VideoElement = new VideoElement( resource1 );

     videoElement.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, layoutMetadata);


     var swfElement:SWFElement = new SWFElement( new URLResource(BASE_PROGRESSIVE_URL + REMOTE_SWF1) );

     swfElement.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, layoutMetadata);

     var durationElement:DurationElement = new DurationElement( 5, swfElement );

     durationElement.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, layoutMetadata);


     // First child is an swf overlayed for 3 seconds onto a streaming video.

     var parallelElement:ParallelElement = new ParallelElement();

     parallelElement.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, layoutMetadata);

     parallelElement.addChild( videoElement );

     parallelElement.addChild( durationElement );

 


     var serialElement:SerialElement = new SerialElement();    

     serialElement.addMetadata(LayoutMetadata.LAYOUT_NAMESPACE, layoutMetadata);

     serialElement.addChild( parallelElement );

 


     // second child is a video.

     serialElement.addChild( mediaFactory.createMediaElement( new URLResource(BASE_PROGRESSIVE_URL + REMOTE_STREAM2) ) );

 

     return serialElement;

 

}

 

The SWF loads in scaled to fit the Sprite bounds, but when the video loads and starts playing, both the SWF and video resize smaller to match the video's original width and height. They no longer scale. Am I putting the metadata assignments in the wrong place or at the wrong time?

Thanks!

 
Replies
  • Currently Being Moderated
    Jun 3, 2010 5:39 PM   in reply to ionflow

    Can you file this as a bug here? https://bugs.adobe.com/jira/browse/FM

     

    Thanks,

     

    Ryan

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 7, 2010 1:10 PM   in reply to rshin
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 20, 2010 10:19 AM   in reply to rshin

    is there a fix or a workaround for this???

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 20, 2010 1:17 PM   in reply to David_RealEyes

    David,

     

    We haven't had it looked by an eng who can address this.  This bug is on que on the way to fix though.  Is there any urgent for your use case? If so, can you add a brief comment on the bug so that we can set it a higher priority?

     

    Ryan

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 20, 2010 2:28 PM   in reply to rshin

    After a fair bit of bashing my head against a wall the only work around I came up with is use fix width/height for the meta data values. They seem to work though left/right/top/bottom and percent values are ignored. This is a challenge because I need to be able to update these dynamically at runtime from the application to the media element the plugin generates but I already have communication channels so it will have to do until a fix or better solution comes up.

     

    The use cases for this are very broad - seems to be an issue for any video element in a parellel with custom layout meta data. advertising is one biggy.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 20, 2010 2:53 PM   in reply to David_RealEyes

    That doesn't sound like a real workaround if you have to fix w/h in the metadata.  I'll ping the team how's the lead time on fixing this.

     

    Ryan

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 23, 2010 6:17 PM   in reply to rshin

    Any word on this would be valuable - the workaround is causing other issues. If there is any info on where/what the root problem is it would help to handle and do a proper fix if we have to.

     
    |
    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