0.2.0-dev Download ZIP
27 lines ·1.3 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="VideoStream" inherits="Resource" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Base resource for video streams. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Base resource type for all video streams. Classes that derive from [VideoStream] can all be used as resource types to play back videos in [VideoStreamPlayer]. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | <link title="Playing videos">$DOCS_URL/tutorials/animation/playing_videos.html</link> |
| 11 | <link title="Runtime file loading and saving">$DOCS_URL/tutorials/io/runtime_file_loading_and_saving.html</link> |
| 12 | </tutorials> |
| 13 | <methods> |
| 14 | <method name="_instantiate_playback" qualifiers="virtual required"> |
| 15 | <return type="VideoStreamPlayback" /> |
| 16 | <description> |
| 17 | Called when the video starts playing, to initialize and return a subclass of [VideoStreamPlayback]. |
| 18 | </description> |
| 19 | </method> |
| 20 | </methods> |
| 21 | <members> |
| 22 | <member name="file" type="String" setter="set_file" getter="get_file" default=""""> |
| 23 | The video file path or URI that this [VideoStream] resource handles. |
| 24 | For [VideoStreamTheora], this filename should be an Ogg Theora video file with the [code].ogv[/code] extension. |
| 25 | </member> |
| 26 | </members> |
| 27 | </class> |