scenepic 1.1.0
3D Visualization Made Easy
|
Video that can be connected to a canvas. More...
#include <video.h>
Public Member Functions | |
void | load (const std::string &path) |
Load an video file from the disk. More... | |
std::string | to_string () const |
Return a JSON string representing the object. More... | |
JsonValue | to_json () const |
Convert this object into ScenePic json. More... | |
const std::string & | video_id () const |
A unique identifier for the video. More... | |
const std::vector< std::uint8_t > & | data () const |
The encoded binary video data. More... | |
std::vector< std::uint8_t > & | data () |
The encoded binary video data. More... | |
Video & | data (const std::vector< std::uint8_t > &value) |
The encoded binary video data. More... | |
const std::string & | ext () const |
The extension of the video (e.g. More... | |
Video & | ext (const std::string &value) |
The extension of the video (e.g. More... | |
Friends | |
class | Scene |
Video that can be connected to a canvas.
std::vector< std::uint8_t > & scenepic::Video::data | ( | ) |
The encoded binary video data.
const std::vector< std::uint8_t > & scenepic::Video::data | ( | ) | const |
The encoded binary video data.
Video & scenepic::Video::data | ( | const std::vector< std::uint8_t > & | value | ) |
The encoded binary video data.
const std::string & scenepic::Video::ext | ( | ) | const |
The extension of the video (e.g.
MP4, MKV)
Video & scenepic::Video::ext | ( | const std::string & | value | ) |
The extension of the video (e.g.
MP4, MKV)
void scenepic::Video::load | ( | const std::string & | path | ) |
Load an video file from the disk.
path | the path to the video file |
JsonValue scenepic::Video::to_json | ( | ) | const |
Convert this object into ScenePic json.
std::string scenepic::Video::to_string | ( | ) | const |
Return a JSON string representing the object.
const std::string & scenepic::Video::video_id | ( | ) | const |
A unique identifier for the video.
|
friend |