Inherits from Z.Texture
ZapWorks Studio contains a Video Player Symbol built upon Z.Video.
The Z.Video object allows playback of streaming video in the 3D view using a URL to a hosted video file.
The URL needs to link directly to a video file as opposed to one uploaded to a video hosting site such as Vimeo or YouTube. The server hosting the video file also needs to support range requests in order for the video to play properly across all devices. We recommend using a CDN for faster, more scalable video serving e.g. AWS CloudFront or CloudFlare.
Zappar uses the device's built-in video functionality to provide this feature. The following format is supported across a wide range of mobile devices, and is the recommended format for video played with Z.Video:
- "Web-optimized" with the index at the start of the file
- Baseline or Main profile
- 800 kbps bitrate in order to support playback over cellular connections
Z.Video supports HLS (HTTP Live Streaming), a format that automatically adjusts the quality of a video stream between multiple bitrates and resolutions, based on the bandwidth capacity of a users device. For more information see the Wikipedia article.
Provided by Z.Video
||Emitted when the aspect ratio of the video is known, or subsequently changes.
||Emitted when more data must be downloaded before playback can continue.
||Emitted when the duration of the video is known, or subsequently changes.
||Emitted when there's an issue with video playback.
||Emitted when the video completes.
||Emitted when the video is paused.
||Emitted when playback first occurs.
||Emitted when the width/height in pixels of the video is known, or subsequently changes.
||Emitted when the seek position of playback changes.
||Gets the aspect ratio of the video file.
||Gets the duration of the video file in milliseconds.
||Pauses playback at the current seek position.
||Restarts playback from the start of the video.
||Gets the resolution of the video file in pixels.
||Gets the URL of the video file.
||Sets the URL of the video file.
||Continues playback from the current seek position.
||Gets the current seek time in milliseconds.
||Seeks the video to the specified time in milliseconds.
||Gets the current volume.
||Sets the current volume.
Inherited from Z.Texture
||A color channel of a texture.
||The mipmapping mode for textures.
||The wrap mode for textures.
Inherited from Z.Base
||Calls the handler functions attached to an event.
||Returns true if this object has the specified tag.
||Removes a handler function from an event.
||Attaches a handler function to an event.
||Attaches a single-use handler function to an event.
||Adds a tag to this object.
||Removes a tag from this object.
||Gets an array of the tags that this object belongs to.
||Sets the array of the tags that this object belongs to.