Skip to main content

Can I create a link that opens a specific On-Demand video on my website?

Yes. But you will need to customize some settings and add code to your website.

Randall Elmo avatar
Written by Randall Elmo
Updated this week

Yes.

If you are using embed codes gotten after January 2022, it is possible to create a link that opens a specific video directly on your site. It requires enabling "Custom Share URL" in the On-Demand Settings section of your ViewMedica account and adding the following script into the head of your website.

<script src="https://ondemand.viewmedica.com/lib/vm.js" defer></script>

An example link would be formatted like this:

<a href="https://yourdomain.com/page-viewer-is-on/#vm_VIDEOID">Text</a>

Please be sure you replace the corresponding parts of the example to match your website information and the video you want to play [VIDEOID].

If your website uses an SEO optimization plugin or asset performance rules, be sure to exempt https://ondemand.viewmedica.com/lib/vm.js so it is not loaded (or deferred) after the ViewMedica player appears on the page.

Did this answer your question?