<?php
if(isset($_POST['action'])){
echo("{'data':[{'url':'./vid.mp4'}]}");
}else{
echo("{'data':'$_POST[0]'}");
}