Asset representing a video.
Contains an URL to a video. This URL can be either local (using a file:// URL), or remote.
#include <asset/YiAssetVideo.h>

Protected Member Functions | |
| virtual std::pair< uint32_t, uint32_t > | GetApproximateSize () const override |
Protected Member Functions inherited from CYIAsset | |
| CYIAsset () | |
| ssize_t | GetID () const |
| void | SetPath (const CYIString &path, PATH_TYPE ePathType) |
| void | SetApproximateSize (uint32_t nSize) |
| void | SetLoaded (bool bAssetLoaded) |
| void | SetLoadParameters (std::unique_ptr< CYIAssetLoadParams > pParams) |
| virtual void | OnLoad () |
| virtual void | OnUnload () |
Protected Member Functions inherited from CYIScriptableRTTIObject | |
| virtual std::pair< const CYIRuntimeTypeInfo *, const void * > | GetRuntimeTypeInfoWithObject () const =0 |
Additional Inherited Members | |
Public Types inherited from CYIAsset | |
| enum | PATH_TYPE { PATH_ABSOLUTE = 0, PATH_RELATIVE } |
Static Protected Attributes inherited from CYIAsset | |
| static ssize_t | INVALID_ID |
| CYIAssetVideo::CYIAssetVideo | ( | ) |
| CYIAssetVideo::CYIAssetVideo | ( | const CYIString & | path, |
| PATH_TYPE | ePathType = PATH_RELATIVE |
||
| ) |
|
virtual |
|
overrideprotectedvirtual |
Calculates and returns the approximate number of bytes currently used by this asset. The first item of the returned pair object represents the memory currently taken in the CPU main memory, and the second item of the returned pair object represents the memory currently taken in the GPU memory.
Reimplemented from CYIAsset.
| const CYIUrl& CYIAssetVideo::GetUrl | ( | ) | const |
Returns the URL associated with this video asset.
| void CYIAssetVideo::SetUrl | ( | const CYIString & | path | ) |
Sets the URL for this video to one created from the path path. The path must be absolute. The assigned URL will use the file:// scheme.
| void CYIAssetVideo::SetUrl | ( | const CYIUrl & | url | ) |
Sets the URL for this video to url.