Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Servicenow portal

tejasgautam
Tera Contributor

My requirement is :- I want to play sharepoint video on servicenow widget inline within servicenow widget.

 

Video is playing on next tab when I click on play icon

 

Flow:- whenever any user upload a video through add content (widget) it goes to sharepoint and sharepoint gives me metatdata which stored in my custom table..

 

For example:-  id , weburl etc etc.

 

I am trying to embed the video used <iframe>

 

I was abel to create embed url 

But video is not playing inline servicenow widget

 

When I click on play button it ask me login to Microsoft 365 when I login ig I get white window , video is not playing ..

 

And in console I get error some tenant policy is restricting inline javascript code .

 

So I want to understand is that issue from my end or some sharepoint policy which is restricting embedding for servicenow domain?

 

 

 

 

2 REPLIES 2

Nawal Singh
Tera Guru

Hi @tejasgautam ,

 

I have tested the below code in my PDI and it's working fine, please review in your end and let me know

<video width="640" height="360" controls>
  <source src="https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4" type="video/mp4">
  Your browser does not support the video tag.
</video>

 

If you found my response helpful, please mark it as helpful and accept it as the solution.

Thank you
Nawal Singh

tejasgautam
Tera Contributor

Hi @Nawal Singh  :- Thing is that it works fine for Yt Videos but for sharepoint its not showing in console i am getting x-frame option to deny

refused to exceute inline script because it  embed.aspx?UniqueID = 62932932032932y374934fbf(anything) violets the following security policy directive : "script-src