Changing $video_files


#1

Dear CB developers,

I tried to change file format mp4 to something new “.vdo”
Tested and working fully manually with jwplayer, ( its actually mp4 but in player I add new format : video/vdo ) and its working

output have to be like this:
{file:‘http://sample.com/files/videos/2018/03/08//1520522676941f6b-240.vdo’, type:“video/vdo”, label:“240”},
{file:‘http://sample.com/files/videos/2018/03/08//1520522676941f6b-360.vdo’, type:“video/vdo”, label:“360”},
{file:‘http://sample.com/files/videos/2018/03/08//1520522676941f6b-480.vdo’, type:“video/vdo”, label:“480”},

its kinda cool :smiley:
but in CB when is use :
{foreach $video_files as $file}
{ldelim}file:’{$file}’, type:“video/vdo”, label:"{strtoupper($quality)}"{rdelim},
{/foreach}

already output is like :
{file:‘http://sample.com/files/videos/2018/03/08//1520522676941f6b-240.mp4’, type:“video/vdo”, label:“240”},
{file:‘http://sample.com/files/videos/2018/03/08//1520522676941f6b-360.mp4’, type:“video/vdo”, label:“360”},
{file:‘http://sample.com/files/videos/2018/03/08//1520522676941f6b-480.mp4’, type:“video/vdo”, label:“480”},

$video_files will generate video links + .mp4 format, where to change this ?
which function is generating $video_files ? which file to edit ?
address me please


#2

PS:
all files originally will stay as MP4 on server, but when rendering links in player, its just .vdo
Nothing will change on main and programming codes of CB