MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / SetTimelineSource

Method SetTimelineSource

src/QtPlayer.cpp:86–97  ·  view source on GitHub ↗

Set the source JSON of an openshot::Timelime

Source from the content-addressed store, hash-verified

84
85 // Set the source JSON of an openshot::Timelime
86 void QtPlayer::SetTimelineSource(const std::string &json) {
87 // Create timeline instance (720p, since we have no re-scaling in this player yet)
88 reader = new Timeline(1280, 720, openshot::Fraction(30, 1), 44100, 2, openshot::LAYOUT_STEREO);
89
90 Timeline* tm = (Timeline*)reader;
91 tm->SetJson(json);
92 tm->DisplayInfo();
93 tm->Open();
94
95 // Set the reader
96 Reader(reader);
97 }
98
99 void QtPlayer::SetSource(const std::string &source)
100 {

Callers 1

openMethod · 0.80

Calls 4

FractionClass · 0.85
SetJsonMethod · 0.45
DisplayInfoMethod · 0.45
OpenMethod · 0.45

Tested by

no test coverage detected