| 68 | bool videoIsLoaded = false; |
| 69 | |
| 70 | CardinalEmbedWidget(CardinalEmbedModule* const m) |
| 71 | : ModuleWidget(), |
| 72 | ExternalWindow(), |
| 73 | module(m), |
| 74 | pcontext(m != nullptr ? m->pcontext : nullptr) |
| 75 | { |
| 76 | setModule(module); |
| 77 | setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/MPV.svg"))); |
| 78 | |
| 79 | if (m != nullptr) |
| 80 | { |
| 81 | embedWidget = new EmbedWidget(box.size); |
| 82 | addChild(embedWidget); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | ~CardinalEmbedWidget() |
| 87 | { |