Daniel Posted February 22, 2023 Posted February 22, 2023 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 Quote
Tech Support Posted February 22, 2023 Posted February 22, 2023 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? 1 Quote
Daniel Posted February 22, 2023 Author Posted February 22, 2023 Hello, Thanks for the info, The variables I need are: poster and video files for the player. That's about it. Quote
Tech Support Posted February 23, 2023 Posted February 23, 2023 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. 1 Quote
Recommended Posts
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.