Jump to content

Changing the kvs player to a player of your choice


Daniel

Recommended Posts

Hello,

I couldn't find a wayt to change the player to a different one, the variables are hard to deal with.

You have $flashvars and you have $data

There's alos player/iframe_embed.php which is encoded which you can't touch

And you also have template/block/view_video/video_view_video_view.tpl

 

I would need to change player and place in values like poster, video source and that's about it.

So let's say I can grab the screenshot with $flashvars.preview_url

The video link in flashvars doesn't work but the one in $data works

I could only debug it using print_r or var_dump

 

There should be a way for us to change the player and documentation on how to do it

 

Thanks

Link to comment
Share on other sites

7 hours ago, Daniel said:

There's alos player/iframe_embed.php which is encoded which you can't touch

You can change embed player template in Settings -> Embed player settings, it will be 100% the same code as inside video_view block template. So just test in one place and then migrate to another.

7 hours ago, Daniel said:

the variables are hard to deal with

Which variables do you need?

  • Like 1
Link to comment
Share on other sites

Poster is:

{{$flashvars.preview_url}}

Video files are:

{{foreach from=$data.formats|smarty:nodefaults item="format"}}
	{{$format.postfix}}: {{$format.file_url}}
{{/foreach}}

But please note that you have to switch off Enable links obfuscation option in Settings -> Content settings, because this feature only works in KVS player.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...