function PlayVideoFile(filepath)
handles.filepath = filepath;
handles.hFigure = figure('position', [50 50 960 560], 'menubar', 'none', 'numbertitle','off','name', ['Video: ' filepath], 'tag', 'VideoPlay', 'resize', 'off');
handles.hTogglePlayButton = uicontrol(handles.hFigure, 'position', [0 540 80 21], 'string', 'play/pause', 'callback', @TogglePlayPause);
handles.hSeekToZeroButton = uicontrol(handles.hFigure, 'position', [81 540 80 21], 'string', 'begining', 'callback', @SeekToZero);
handles.vlc = actxcontrol('VideoLAN.VLCPlugin.2', [0 0 960 540], handles.hFigure);
filepath(filepath=='\')='/';
filepath = ['file://localhost/' filepath];
handles.vlc.playlist.add(filepath);
handles.vlc.video.deinterlace.enable('x');
handles.vlc.input.time = 0;
handles.vlc.registerevent({'MediaPlayerTimeChanged', @MediaPlayerTimeChanged});
guidata(handles.hFigure, handles);