Hi, I hoped to use this plugin to print a list of videos, before the user goes into a video to view it, but ideally, I need the youtube ID, so I can generate an image, and the name, to display.
It's a different plugin but here's how I did it before so you can see the usage;
I'm so sorry for the late reply. I had missed the notification to your post and have only just seen it.
You can currently get the Youtube ID from .Id on the video object. Unfortunately, I don't yet store any of the meta information with the video, but its on my list.
So you can do something like (But cant get the Name or Publish date at this time):
@{
var typedVideo = Model.Content.GetPropertyValue<Videolizer.VideolizerVideo>("youtubeVideo");
var itemID = typedVideo.Id;
var previewUrl = "https://img.youtube.com/vi/" + @itemID + "/maxresdefault.jpg";
<article class="videoitem feature" style="height: 361px;">
<a href="@typedVideo.Url" >
<img src="@previewUrl" class="img-responsive">
</a>
</article>
}
I'll be looking at adding this in the next release as it would be a useful addition.
Access information such as ID, title
Hi, I hoped to use this plugin to print a list of videos, before the user goes into a video to view it, but ideally, I need the youtube ID, so I can generate an image, and the name, to display.
It's a different plugin but here's how I did it before so you can see the usage;
Are these variables available with this plugin? I cant use the prior, because it only supports one channel for youtube searching.
Hi Kieron,
I'm so sorry for the late reply. I had missed the notification to your post and have only just seen it.
You can currently get the Youtube ID from
.Id
on the video object. Unfortunately, I don't yet store any of the meta information with the video, but its on my list.So you can do something like (But cant get the Name or Publish date at this time):
}
I'll be looking at adding this in the next release as it would be a useful addition.
is working on a reply...