added support for m4v video file format
refactoring the platform core engine