Embedded Vimeo videos
Hello everyone,
I'm trying to integrate videos from Vimeo on a Ninox form. The problem is that my videos are limited to specific domains so they can't be seen by anyone.
For example, I copied the embed code proposed by vimeo into an HTML field and the following message appears: "Sorry, unable to play this video due to privacy settings. But this same embedding code works fine on the other sites I authorized for this video.
html("
<div style='padding:44.2% 0 0 0;position:relative;'><iframe src='https://player.vimeo.com/video/724263771?h=76576d8445&badge=0&autopause=0&player_id=0&app_id=58479' frameborder='0' allow='autoplay; fullscreen; picture-in-picture' allowfullscreen style='position:absolute;top:0;left:0;width:100%;height:100%;' title='Enregistrement de l&rsquo;&eacute;cran 2022-06-26 &agrave; 223412'></iframe></div><script src='https://player.vimeo.com/api/player.js'></script>
")
I asked Ninox about this and they say they are aware of a limitation of Ninox for site integration in HTML fields. Has anyone ever successfully embedded Vimeo videos on Ninox?
6 replies
-
I have only experience with Youtube, but this code is working :
html("<iframe width=""560"" height=""315"" src=""" + 'Youtube embed' + """ title=""YouTube video player"" frameborder=""0"" allow=""accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"" allowfullscreen></iframe>")
-
Jacques TUR
Seems like you can also use the Vimeo API player used in a <div> when you have problems to display in an iframe.
html(" <script src='https://player.vimeo.com/api/player.js'></script> <div id='vimeo-player'></div> <script> var player = new Vimeo.Player(document.getElementById('vimeo-player'), { id: 'VIDEO-ID', width: 640, height: 480, }); </script> ")
Change the VIDEO-ID to yours.
Content aside
- 1 yr agoLast active
- 6Replies
- 359Views
-
3
Following