How to configure iframe embeded player?


#1

Hello everyone, I am a classic user of the Kaltura platform available to me. To show a video outside the Kaltura platform I have the possibility to embed it with iframe. The code provided looks like this:

<iframe id="kmsembed-0_ya0u8f2i" width="400" height="285" src="https://tube.video.abc.com/embed/secure/iframe/entryId/0_ya0u8f2i/uiConfId/23449533" class="kmsembed" allowfullscreen webkitallowfullscreen mozAllowFullScreen allow="autoplay *; fullscreen *; encrypted-media *" frameborder="0" title="Kaltura Player"></iframe>

I would like to make the following configurations on the player:

  • autostart of the video with activated sound.
  • adjusting the color of the progress bar
  • hiding the border of the control buttons

Are these interventions possible by calling the player with an iframe? If so, how can the corresponding wishes be implemented?

Thank you very much for your support.
Greetings Michael


#2

Hello @Guenther,

It is possible to set these attributes dynamically per embed code if that’s what you wish to accomplish but if you want all embeds using a given player [UI conf ID 23449533 in your case] to behave this way, it’s far easier to edit this player’s UI conf once so you won’t have to manually change the embed code every time.
This can easily be done via KMC->Studio->YOUR player but can also be done by making direct API calls.

In the studio, for auto play, check ‘Automatically play video on page load’ under ‘Basic Display’, for the progress bar colour, under ‘Look and Feel’, check ‘Custom styles’ and edit ’ Slider color’ and ‘Slider watched color’.

With regards to auto play in Chrome, please find a detailed description of Chrome’s current auto play policy here:


This policy became effective in April, 2018 and is, of course, not specific to the Kaltura player.

From that doc:
"Autoplay with sound is allowed if:
- User has interacted with the domain (click, tap, etc.).
- On desktop, the user’s Media Engagement Index threshold has been crossed, meaning the user has previously play video with sound.
- On mobile, the user has [added the site to their home screen].


#3

Hello jess, thank you so much for the feedback. I don’t have access to studio but only to the iframe code. How can I change the desired parameters? Thank you very much.


#4

Hello, is there somewhere an overview / example available, how to dynamically set attributes (see first post of this thread) per embed code?

Thanks for your help.

Best regards,
Michael