scenepic 1.1.0
3D Visualization Made Easy
Public Member Functions | Friends | List of all members
scenepic::Video Class Reference

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...
 
Videodata (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...
 
Videoext (const std::string &value)
 The extension of the video (e.g. More...
 

Friends

class Scene
 

Detailed Description

Video that can be connected to a canvas.

Member Function Documentation

◆ data() [1/3]

std::vector< std::uint8_t > & scenepic::Video::data ( )

The encoded binary video data.

◆ data() [2/3]

const std::vector< std::uint8_t > & scenepic::Video::data ( ) const

The encoded binary video data.

◆ data() [3/3]

Video & scenepic::Video::data ( const std::vector< std::uint8_t > &  value)

The encoded binary video data.

◆ ext() [1/2]

const std::string & scenepic::Video::ext ( ) const

The extension of the video (e.g.

MP4, MKV)

◆ ext() [2/2]

Video & scenepic::Video::ext ( const std::string &  value)

The extension of the video (e.g.

MP4, MKV)

◆ load()

void scenepic::Video::load ( const std::string &  path)

Load an video file from the disk.

Parameters
paththe path to the video file

◆ to_json()

JsonValue scenepic::Video::to_json ( ) const

Convert this object into ScenePic json.

Returns
a json value

◆ to_string()

std::string scenepic::Video::to_string ( ) const

Return a JSON string representing the object.

◆ video_id()

const std::string & scenepic::Video::video_id ( ) const

A unique identifier for the video.

Friends And Related Function Documentation

◆ Scene

friend class Scene
friend

The documentation for this class was generated from the following file: