필터 지우기
필터 지우기

Error accessing a file with activex player

조회 수: 2 (최근 30일)
Lawson Hoover
Lawson Hoover 2012년 12월 13일
I have a GUI and simple button with the call back:
function [] = free_bird_call(varargin)
m=figure;
h=actxcontrol('WMPlayer.OCX.7', [150 150 300 300], m);
%[filename, pathname] = %uigetfile('*.*,','Please select a file');
h.URL='Stronger.aviC:\Users\Lawson\Documents\MATLAB\Videos\'; % [pathname filename];
h.controls.play;
end
When I press the button the figure pops up along with the player, but then a pop up box shows saying:
The file you attempting to to play has an extension (.) that does not match the file format. Playing the file may result in unexpected behavior.
My file was downloaded as a .flv and then converted to .avi

채택된 답변

Lawson Hoover
Lawson Hoover 2012년 12월 13일
I have solved it on my own.
h.URL='Stronger.aviC:\Users\Lawson\Documents\MATLAB\Videos\';
The code above should have been written:
h.URL='C:\Users\Lawson\Documents\MATLAB\Videos\Stronger.avi';

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by