You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useNette\Application\UI\Presenter;
useMetisWF\Vimeo\VimeoContext;
class MyPresenter extends Presenter {
/** @var VimeoContext @inject */public$vimeo;
publicfunctionfoo() {
// you obtain instance of `/Vimeo/Vimeo` so you can call all methods though APItry {
$connection = $this->vimeo->createConnection();
...
} catch(\Exception$exception) {
...
}
}
}
Sample usage of VimeoPlayerControl
In Presenter
useMetisFW\Vimeo\UI\VimeoPlayerControl;
useNette\Application\UI\Presenter;
class MyPresenter extends Presenter {
publicfunctioncreateComponentVimeoPlayerControl(VimeoPlayerControlFactory$factory) {
$control = $factory->create(666555);
// autowired is possible but you have to register service - MetisFW\Vimeo\UI\VimeoPlayerControlFactory or$control = newVimeoPlayerControl(666555);
// set different template if u want$control->setTemplateFilePath(__DIR__ . './myVimeoPlayerTemplate.latte');
return$control;
}
}