MediaFrameElement
MediaFrameElement
and represents a versatile media frame capable of displaying different types of media assets, including images, videos, 3D models, and PDFs.
Example:
const mediaFrame = new MediaFrameElement();
mediaFrame.mediaType = "video";
mediaFrame.networkable = true;
mediaType: MediaFrameType
Specifies the type of media this frame will display. This affects rendering, interaction models, and supported content formats.
Possible values: "all" | "2d" | "3d" | "video" | "image" | "pdf"
Example:
mediaFrame.mediaType = "2d";
networkable: boolean
Controls whether media playback or state changes should be networked across clients. When true
, all viewers see synchronized media states (e.g., video play/pause).
Example:
mediaFrame.networkable = true;