enabled preview function for audio and video