function varargout = playmtv(varargin)
% PLAYMTV M-file for playmtv.fig
% PLAYMTV, by itself, creates a new PLAYMTV or raises the existing
% singleton*.
%
% H = PLAYMTV returns the handle to a new PLAYMTV or the handle to
% the existing singleton*.
%
% PLAYMTV('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in PLAYMTV.M with the given input arguments.
%
% PLAYMTV('Property','Value',...) creates a new PLAYMTV or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before playmtv_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to playmtv_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help playmtv
% Last Modified by GUIDE v2.5 08-May-2008 14:40:39
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @playmtv_OpeningFcn, ...
'gui_OutputFcn', @playmtv_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before playmtv is made visible.
function playmtv_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to playmtv (see VARARGIN)
pos=[0 0 0 0];
MovieControl=actxcontrol('AMOVIE.ActiveMovieControl.2',pos)
handles.MovieControl=MovieControl;
mp=handles.MovieControl.MediaPlayer;
% if (length(varargin)==2&strcmpi(varargin(1),'file')&(2==exist(varargin(2),'file')))
% Open(mp,varargin(2))
% end
handles.output=mp;
guidata(hObject, handles);
% UIWAIT makes playmtv wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = playmtv_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --------------------------------------------------------------------
function Untitled_2_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
[filename pathname]=uigetfile('*.*','Please select a movie file');
if ~filename
return
end;
mp=handles.MovieControl.MediaPlayer;
Open(mp,[pathname filename])
% --------------------------------------------------------------------
function Untitled_3_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
close(gcf);
% --------------------------------------------------------------------
function Untitled_5_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function Untitled_1_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --------------------------------------------------------------------
function Untitled_4_Callback(hObject, eventdata, handles)
% hObject handle to Untitled_4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes when figure1 is resized.
function figure1_ResizeFcn(hObject, eventdata, handles)
% hObject handle to figure1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
units=get(handles.figure1,'units');
set(handles.figure1,'units','pixels');
pos=get(handles.figure1,'position');
set(handles.figure1,'units',units);
pos=[0 0 pos(3:4)];
move(handles.MovieControl,pos);
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
GUI Player.rar (2个子文件)
GUI Player
playmtv.fig 2KB
playmtv.m 5KB
共 2 条
- 1
资源评论
- YuanShuTech2022-03-09就是骗人的,都别被坑了
- tang_siyu2014-12-14编译不通过。。。
- shijieming2014-06-11全是错,根本不能用啊…………是不是版本问题……
- leilei08302018-07-19用不了,只有两个文件,不是exe
IT&MAN
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Android源码新基线代码更新的方法
- 1_二级程序设计题(34).rar
- 二级程序调试题(填空27+改错7).docx
- HM2314-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 基于深度学习的危险驾驶检测算法python源码+视频判断是否闭眼或者张开嘴哈欠和吸烟打电话等手势行为功能涵盖7类.zip
- Free-Fs 开源文件管理系统
- HM2314B-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 毕业设计:Python高校学生学业预警系统(源码 + 数据库 + 说明文档)
- HM2312-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 毕业设计:Python的在线自主评测系统(源码 + 数据库 + 说明文档)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功