| 26 | static constexpr int ANDROID_MINIPROGRAM_ALIGNMENT = 16; |
| 27 | |
| 28 | std::shared_ptr<VideoElement> VideoElement::MakeFrom(val video, int width, int height) { |
| 29 | if (video == val::null() || width < 1 || height < 1) { |
| 30 | return nullptr; |
| 31 | } |
| 32 | return std::shared_ptr<VideoElement>(new VideoElement(video, width, height)); |
| 33 | } |
| 34 | |
| 35 | VideoElement::VideoElement(emscripten::val video, int width, int height) |
| 36 | : ImageStream(width, height), source(video) { |
nothing calls this directly
no outgoing calls
no test coverage detected