| 347 | } |
| 348 | |
| 349 | MediaPlayerControl* MediaPlayerControl::create(SpriteFrame* frame) |
| 350 | { |
| 351 | auto* widget = new MediaPlayerControl(); |
| 352 | if (widget->init(frame)) |
| 353 | { |
| 354 | widget->autorelease(); |
| 355 | return widget; |
| 356 | } |
| 357 | AX_SAFE_DELETE(widget); |
| 358 | return nullptr; |
| 359 | } |
| 360 | |
| 361 | MediaPlayerControl::~MediaPlayerControl() |
| 362 | { |
nothing calls this directly
no test coverage detected