ObjectContainer
- 2 minutes to read
The ASPxObjectContainer control allows you to display media data (Flash, image, video, audio) on a web page. Use the ASPxObjectContainer.ObjectUrl property to specify the source of the media data. ASPxObjectContainer can automatically define the type of media data. To customize the container object’s settings, use the ASPxObjectContainer.ObjectProperties property.
HTML5 Audio
Supports MP3 audio files.
HTML5 Video
Supports MP4 video files.
Macromedia Shockwave Flash (SWF)
For more information on Flash object settings, see members of the following class: FlashObjectProperties.
Image
ASPxObjectContainer supports the following image types: BMP, GIF, ICO, JPEG, and PNG.
For more information on image object settings, see members of the following class: ImageObjectProperties.
Video
ASPxObjectContainer supports the following video file types: ASF, ASX, AVI, MP4, MPE, MPEG, MPG, WM, WMV, WMX, WVX.
For more information on video object settings, see members of the following class: VideoObjectProperties.
Audio
ASPxObjectContainer supports the following audio file types: AIF, AIFC, AIFF, AU, M4A, MID, MIDI, MP2, MP3, MPA, RMI, SND, WAV, WAX, WMA.
For more information on audio object settings, see members of the following class: AudioObjectProperties.
Note
The ASPxObjectContainer control includes comprehensive client-side functionality:
- The ASPxClientObjectContainer object is the ASPxObjectContainer control’s client-side equivalent.
- The ASPxObjectContainer.ClientInstanceName property specifies a unique client-side identifier for ASPxObjectContainer. This identifier allows you to access the control on the client side.
- The ASPxObjectContainer.ClientSideEvents property allows you to access the available client-side events.
You can use one the following techniques to enable the control’s client-side API:
- Set the ASPxObjectContainer.EnableClientSideAPI property to
true
. - Specify the ASPxObjectContainer.ClientInstanceName property.
- Handle any client-side event.
The ASPxClientObjectContainer object is disabled until the ASPxObjectContainer.ObjectUrl property is specified.