4#ifndef _SCENEPIC_VIDEO_H_
5#define _SCENEPIC_VIDEO_H_
18 void load(
const std::string& path);
32 const std::vector<std::uint8_t>&
data()
const;
35 std::vector<std::uint8_t>&
data();
38 Video&
data(
const std::vector<std::uint8_t>& value);
41 const std::string&
ext()
const;
54 std::vector<std::uint8_t> m_data;
55 std::string m_video_id;
Representation of a JSON value according to the specification at https://www.json....
Definition: json_value.h:30
Top level container representing an entire ScenePic.
Definition: scene.h:58
Video that can be connected to a canvas.
Definition: video.h:13
const std::string & ext() const
The extension of the video (e.g.
Video & ext(const std::string &value)
The extension of the video (e.g.
const std::string & video_id() const
A unique identifier for the video.
Video & data(const std::vector< std::uint8_t > &value)
The encoded binary video data.
std::string to_string() const
Return a JSON string representing the object.
JsonValue to_json() const
Convert this object into ScenePic json.
std::vector< std::uint8_t > & data()
The encoded binary video data.
const std::vector< std::uint8_t > & data() const
The encoded binary video data.
void load(const std::string &path)
Load an video file from the disk.
Definition: audio_track.h:14