Set the source JSON of an openshot::Timelime
| 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 | { |
no test coverage detected