- August 18, 2016 at 1:51 pm #15339PRANAV #682
How can I append the video id in the url of videolink in Salesforce?
How can I append the video id in the url of videolink?
For eg: https://www.youtube.com/watch?v=B6LULidOdA0
for YouTube link after ?v= video id, so how can I use this id and add to the Salesforce Visualforce page.
ThanksAugust 26, 2016 at 12:41 pm #15655Mohit #498
Here is the code,
String VideoUrl = ‘https://www.youtube.com/watch?v=B6LULidOdA0’;
String VideoId = VideoUrl.substringAfter(‘?v=’);
PagevideoUrl = ‘https://www.youtube.com/watch?’+VideoId;
And use this PagevideoUrl on the Visualforce PageSeptember 30, 2018 at 12:09 am #41246Avnish Yadav #3
Click Setup | Customize | Knowledge | Settings | Check “Allow users to add external multimedia content to HTML in the standard editor” to ‘True’ – This will provide a new tool in the WYSIWYG editor on Rich Text fields to “Embed Media” into a Knowledge Article. You can paste the iframe code from YouTube, Vimeo and Dailymotion videos.
Please Register to reply to this topic. /