Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi, Is it possible to ouput the selected video URL rather than render in an iFrame?
Could not see any mention of it in the docs.
Thanks
Gav
Realised after posting that you are accessing the YouTube API so just looked at what it returns - https://developers.google.com/youtube/v3/getting-started
and then referenced for the video ID so can build the URL from that.
@typedVideo.Id
If there is a better way let me know.
Sorry for my very delayed response, but yes you are correct I return the API response from YouTube's own API.
So you could string concat the video URL quite easily like so
@{ var videoId = typedVideo.Id; var videoUrl = string.format("https://www.youtube.com/watch?v={0}, videoId); } <a href="@videoUrl">My Video</a>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Razor output - video Url
Hi, Is it possible to ouput the selected video URL rather than render in an iFrame?
Could not see any mention of it in the docs.
Thanks
Gav
Realised after posting that you are accessing the YouTube API so just looked at what it returns - https://developers.google.com/youtube/v3/getting-started
and then referenced for the video ID so can build the URL from that.
If there is a better way let me know.
Thanks
Sorry for my very delayed response, but yes you are correct I return the API response from YouTube's own API.
So you could string concat the video URL quite easily like so
is working on a reply...