Closed arifje closed 5 years ago
Not a bug, but more a request for example; I want to access the Transcoder methods from another plugin (Elements API) and I don't know how.
I tried to access services:
$transcoderService = \nystudio107\transcoder\Transcoder::$plugin->getInstance(); $transcoderService->Transcode->getVideoUrl();
But no luck.
Thanks in advance!
You'd do something like this:
use nystudio107\transcoder\Transcoder; $url = Transcoder::$plugin->transcode->getVideoUrl($filePath, $videoOptions);
Not a bug, but more a request for example; I want to access the Transcoder methods from another plugin (Elements API) and I don't know how.
I tried to access services:
But no luck.
Thanks in advance!