protected function Youku::oEmbedData in Video Embed Youku 8
Get the Youku oEmbed data.
Return value
array An array of data from the Youku endpoint.
File
- src/
Plugin/ video_embed_field/ Provider/ Youku.php, line 43 - Contains \Drupal\video_embed_youku\Plugin\video_embed_field\Provider\Youku.
Class
- Youku
- Plugin annotation @VideoEmbedProvider( id = "youku", title = @Translation("Youku") )
Namespace
Drupal\video_embed_youku\Plugin\video_embed_field\ProviderCode
protected function oEmbedData() {
return json_decode(file_get_contents(sprintf('https://api.youku.com/videos/show.json?client_id=8d025b9c897b22a8&video_id=%s', $this
->getVideoId())));
}