DR Developer's Guide
DR Interfaces | DR Methods | DR Types and Misc API

IMoaDrMediaValue

Interface ID: IID_IMoaDrMediaValue
Pointer type: PIMoaDrMediaValue
Inheritance: IMoaUnknown
Header file: drivalue.h

Description

The IMoaDrMediaValue interface provides Director-specific value types for media. It complements the features of IMoaDrValue, providing application-specific services to Xtras.

Methods

ValueToMedia()
MediaToValue()
ValueToPicture()
PictureToValue()

MediaToValue()

Syntax
MediaToValue(const MoaHandle hMediaData, PMoaMmValue pValue)
Parameters
hMediaData
Handle that has the media data
pValue
Pointer to a MoaMmValue to receive the result
Returns
MoaError
Description
This method creates a Lingo value from a binary handle that was acquired by calling ValueToMedia(). This Lingo value can be passed as a parameter to a Lingo handler.

PictureToValue()

Syntax
PictureToValue(const MoaHandle hPictureData, PMoaMmValue pValue)
Parameters
hPictureData
Handle that has the picture data
pValue
Pointer to a MoaMmValue to receive the result
Returns
MoaError
Description
This method creates a Lingo value from a binary handle that was acquired by calling ValueToPicture(). This Lingo value can be passed as a parameter to a Lingo handler.

ValueToMedia()

Syntax
ValueToMedia(ConstPMoaMmValue pValue, MoaHandle * phMediaData)
Parameters
pValue
Pointer to a value
phMediaData
Pointer to a handle to receive the media data
Returns
MoaError
Description
This method converts a media Lingo value to a binary handle for saving to a file or network streaming. The binary value can be moved to a different platform and passed back to Director or Shockwave.

ValueToPicture()

Syntax
ValueToPicture(ConstPMoaMmValue pValue, MoaHandle * phPictureData)
Parameters
pValue
Pointer to a value
phPictureData
Pointer to a handle to receive the picture data
Returns
MoaError
Description
This method converts a picture Lingo value to a binary handle for saving to a file or network streaming. The binary value can be moved to a different platform and passed back to Director or Shockwave.

Copyright © 1995-2008 Adobe Macromedia Software LLC, Inc.