How can i have / embed a video on the service portal front end?

thiraj
Tera Contributor

Hi Team,

I would like to have a video posted on the front end of the service portal. So when a user logs in, the video should be playing on the side of the service portal. I know that we can create a widget for this but i have zero idea on how to do it and all the coding.

Concerns -

1. Where can i store the video? Can i store it within servicenow?

2. Is there a sample code i can follow because i think i need server scrip, client script and css.

3. Can i change the video based on different logged in users?

All help is appreciated. I have not done this before and i would love if anyone has any idea on how to code for the widgets or experience doing something like this in their own environment.

Thank you!

9 REPLIES 9

Zeeshan Khan1
Kilo Guru

Hi,



You can go through the below link which is fairly similar to what you are trying to achieve


https://www.servicenowguru.com/knowledge-management/adding-video-knowledge-articles/



Few changes would be required to make it work with widgets in service portal and to change the video based on different users.


sachin_namjoshi
Kilo Patron
Kilo Patron

Hi,



You can create a new widget and inside the HTML part for the widget, you can include the piece of code which pulls in the content from youtube.


For example if you want to include a video from youtube, you can use the following code inside the widget HTML (this code will be provided the content hosting service, in this case it is youtube).



<iframe width="560" height="315" src="https://www.youtube.com/embed/K7niFZmGawM" frameborder="0" allowfullscreen></iframe>



Hope this helps.



Regards,


Sachin


Hi Sachin,



Sorry for the late reply. Yes that seems to work with YouTube links. But if we are creating our own video and do not want to publish it to YouTube, how can we go about this?


- We have our own video (Not on YouTube)


- Where can we store the video WITHIN SERVICENOW


- Can we use that video to show in the Service Portal



Thank you!


Sorry not getting it. I went to the Source Code of the HTML portal widget and added 

the code   <pre class="language-markup"><code>&lt;iframe width="560" height="315" src="https://www.youtube.com/watch?v=VH_RqY34u8E" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt; </code></pre>

 

this is what I get