Some fixes and code-refactored on media preview functions.
Video and image functionality working and first test with audio receiving.