Difference between revisions of "Video input"
(→Built-in/HDMI-in Camera) |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | A-SMIL players may support showing video from external source if the appropriate hardware is available. To display the video content, play it using a <tt>< | + | A-SMIL players may support showing video from external source if the appropriate hardware is available. To display the video content, play it using a <tt><video></tt> whose source is "adapi:capture". |
== Composite Video Source == | == Composite Video Source == | ||
+ | Applicable device : '''XMP-340, XMP-3450 and XMP-2400''' | ||
The following code shows how to display video sourced from the composite video capture hardware. | The following code shows how to display video sourced from the composite video capture hardware. | ||
Line 18: | Line 19: | ||
* '''adapi:videoFormat''': encoding format of the video source. Can be one of the following values: auto (auto detection), NTSC_M, NTSC_M_Japan, PAL_BG, PAL_M, PAL_N, PAL_Nc. If unspecified, default value is "auto". | * '''adapi:videoFormat''': encoding format of the video source. Can be one of the following values: auto (auto detection), NTSC_M, NTSC_M_Japan, PAL_BG, PAL_M, PAL_N, PAL_Nc. If unspecified, default value is "auto". | ||
* '''adapi:videoAspectRatio''': display aspect ratio the video source. Can be one of the following values: auto (auto detection), 4:3, 16:9. If unspecified, default value is "auto". | * '''adapi:videoAspectRatio''': display aspect ratio the video source. Can be one of the following values: auto (auto detection), 4:3, 16:9. If unspecified, default value is "auto". | ||
+ | |||
+ | == Built-in/HDMI-in Camera == | ||
+ | Applicable player: '''XDS-1068, XMP-6400''' | ||
+ | |||
+ | The following code shows how to display video sourced from the device's built-in camera. | ||
+ | |||
+ | <source lang="smil"> | ||
+ | <video src="adapi:capture" /> | ||
+ | </source> | ||
+ | |||
+ | The video input media item can be placed in a [[SMIL Playlists|playlist]] and used similar to the video object (see [[SMIL Media Objects]]). | ||
== Related == | == Related == |
Latest revision as of 08:50, 23 June 2017
A-SMIL players may support showing video from external source if the appropriate hardware is available. To display the video content, play it using a <video> whose source is "adapi:capture".
Composite Video Source
Applicable device : XMP-340, XMP-3450 and XMP-2400
The following code shows how to display video sourced from the composite video capture hardware.
<video src="adapi:capture"> <param name="adapi:videoInput" value="composite" /> </video>
The video input media item can be placed in a playlist and used similar to the video object (see SMIL Media Objects).
Several parameters are available when displaying from the composite video source.
- adapi:videoInput: must be "composite" for the composite video source
- adapi:videoFormat: encoding format of the video source. Can be one of the following values: auto (auto detection), NTSC_M, NTSC_M_Japan, PAL_BG, PAL_M, PAL_N, PAL_Nc. If unspecified, default value is "auto".
- adapi:videoAspectRatio: display aspect ratio the video source. Can be one of the following values: auto (auto detection), 4:3, 16:9. If unspecified, default value is "auto".
Built-in/HDMI-in Camera
Applicable player: XDS-1068, XMP-6400
The following code shows how to display video sourced from the device's built-in camera.
<video src="adapi:capture" />
The video input media item can be placed in a playlist and used similar to the video object (see SMIL Media Objects).
Related
- SMIL Media Objects: video, image, and audio objects
- SMIL Tutorial