WebSite X5Help Center

 
Steve B.
Steve B.
User

You tube video display question  en

Автор: Steve B.
Просмотрено 1384, Подписчики 1, Размещенный 0  

Hi is it possible for the you tube video link to not display the next video that it wants to show when the one that I have entered has ended?

Thanks in advance.

Размещено
7 Ответы
Axel  
Axel  
User

And don't forget to change now the script with HTTPS like tongue-out

<script src="https://www.youtube.com/player_api">

Читать больше
Размещено От Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Лучший пользователь месяца ESЛучший пользователь месяца PT

... in that case it was not required; ... but yes, of course, ... https mandatory for SSL sites...cool...

.

.

.

Mt:7.6

.

Читать больше
Размещено От  ‪ KolAsim ‪ ‪
Ross P.
Ross P.
User

KolAsim

Could you show the script in English please.

"(It > En) ... you can with the EXTRA code of an exclusive invention of mine, which you can see and also download from here:
https://helpcenter.websitex5.com/ru/post/223476

ciao"

Thanks

Ross

Читать больше
Размещено От Ross P.
Axel  
Axel  
User

Hello Ross,

This one is working fine

<!-- API YT by KolAsim -->
<div id="ytK"></div>
<script src="https://www.youtube.com/player_api">
</script>

<script>
var playerK;
function onYouTubePlayerAPIReady(){
playerK=new YT.Player('ytK',{
width:'700',
height:'400',
videoId:'WQ-nb4IjLyo',
events:{onReady:onPlayerReady,onStateChange:onPlayerStateChange}});}

function onPlayerReady(event){}

function onPlayerStateChange(event){
if(event.data === 0){ event.target.stopVideo();}}
</script>

Add this one into HTML object and you will not have the next youtube link at the end of the video.

Enjoy!
Axel

Читать больше
Размещено От Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator
Лучший пользователь месяца ESЛучший пользователь месяца PT

Ciao Ross, ... ... OK ... ... Axel's translation is fine too ...

... in attachment I have attached my same TXT of the previous Topic, with the addition of comments translated into English ...
... to try it right away, simply copy all the code and paste it into any HTML Code Object...

.

ciao

... ↓↓↓ ...

... ↓

Читать больше
Размещено От  ‪ KolAsim ‪ ‪
Steve B.
Steve B.
User
Автор

How do I put the extra line in when I am using the video object, where does it go?

Читать больше
Размещено От Steve B.