Some fixes and code-refactored on media preview functions.
Video and image functionality working and first test with audio receiving.
fix on js syntax
some fixes on refactored code :S ( #163)
Merge pull request #177 from aarizkuren/master

Some fixes and code-refactored on media preview functions.