:: VideoMarcro[widget]
<<widget 'video'>>
    <<set _path = $media_path+_args[0]>>
    
    <<if _args[1] or _args[1] === 0>>
        <<set _path = _path.replace('#',rand(_args[1],_args[2]))>>
    <</if>>

    <<if setup.isWebVersion>>
        <<image `_args[0].replace(_path.split('.').pop(),'webp')` _args[1] _args[2]>>
    <<else>>
        <video autoplay loop muted @src="_path"></video>
    <</if>>
    
<</widget>>
