scene streaming php code