• #15339
    Salesforce | PRANAV PRANAV #682
    Forcetalks

    How can I append the video id in the url of videolink in Salesforce?

    Hi All,

    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.

    Thanks

     

    #15655
    Salesforce | Mohit Mohit #498
    Forcetalks

    Hi Pranav,

    Here is the code,

    String PagevideoUrl{get;set}

    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 Page

    #41246
    Forcetalks

    Hello,

    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.

    Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?