Simplified Networks

Simplified Networks

Hi,

I'm working on a Samsung smart tv (d8000) javascript app.
I am trying to embed a vimeo video with the iframe universal player but with no success.

This is the error i get from the tv when i try to embed a video:
[JAVASCRIPT ERROR]
File : a.vimeocdn.com/p/1.4.1/js/player.core.opt.js
Line No : 39
Error Detail : TypeError: redeclaration of const id

my code is:

var ifrm = document.createElement("iframe");
ifrm.id = "vimeoPlayer_1";
ifrm.setAttribute("src", "player.vimeo.com/video/21438835?api=1&player_id=vimeoPlayer_1&title=0&byline=0&portrait=0&autoplay=1";);
ifrm.style.width = '100%';
ifrm.style.height = '100%';
ifrm.frameBorder = 0;
document.body.appendChild(ifrm);

I also tried to embed a single video with a simple object tag but it didn't work either.

What would be the best way to embed a vimeo player that support the javascript API in Samsung smart tv?

thanks,

Brad Dougherty

Brad Dougherty Staff

Hi, I'm not really familiar with Samsung Smart TV, so I'm not sure what is going wrong with their Javascript implementation. The player should work on anything with a decent Javascript implementation.

This conversation is missing your voice. Please join Vimeo or log in.