Added preview support
Added get media encoded