How to stop autoplay of videos in Video carousal(CD).

R Akash
Kilo Expert

Hello 

I am using video carousel(CD) in ESC Portal. I am able to add videos from YouTube through link. But i need to upload some local MP4 videos which will not present in youtube, So i added videos to the (db_video) table and giving /video name in link content which will bring local video to carousel. Now videos coming from db_video table are auto playing. how can i stop that?

 

Also alignment is different for local videos compared to youtube videos. Please see attached images. How can i make it common size foe both local and youtube videos?

1 ACCEPTED SOLUTION

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

Hello,

You have to add this new code or switch from iframe to video element - See if that works!

 

<video id="video_{{$index}}_{{data.spInstanceId}}"
title="{{c.i18n.format(data.messages.frameTitle , $index + 1)}}"
ng-class="c.multipleSlides()?'video-player':'video'"
ng-src="{{item.url || 'blank.do'}}"
frameborder="0"
allowFullScreen="true"
controls=true
ng-if="item.video_source === 'unknown'"></video>

 find_real_file.png

View solution in original post

3 REPLIES 3

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

Hello,

You have to add this new code or switch from iframe to video element - See if that works!

 

<video id="video_{{$index}}_{{data.spInstanceId}}"
title="{{c.i18n.format(data.messages.frameTitle , $index + 1)}}"
ng-class="c.multipleSlides()?'video-player':'video'"
ng-src="{{item.url || 'blank.do'}}"
frameborder="0"
allowFullScreen="true"
controls=true
ng-if="item.video_source === 'unknown'"></video>

 find_real_file.png

Thanks for your answer. Now videos are not auto playing after replacing the code you mentioned.

Sid564
Tera Contributor

I am using the Carousel Widget in the Employee Center and I added the Carousel slide to play videos in the portal
Steps:

1.Uploaded video in the db_table

2.Format of the Video is mp4

3.I added the Link of the Video in the Carousel Side

In the Link Field I added the Link(?id=db_video&sys_id=AAAAAAAAAAAAAAAAAA) 

I am trying to open the carousel from the Employee Center but its not playing the video , I am receiving the "Page Not Found".

Can anyone help me on this? I am adding the link in Wrong format?