Problem using Videoplayer in AppDesigner Standalone-App

조회 수: 4 (최근 30일)
Florian Schiffel
Florian Schiffel 2021년 6월 2일
답변: Sachin Lodhi 2024년 4월 29일
I use the Appdesigner to generate a standalone Application to analyse a videofile for certain objects.
When opening the file and generating the VideoPlayer it gives me the following error:
Warning: Configuration file not found. Property assignment is not allowed when the object is empty. Use subscripted assignment to create an array element.
Error in matlabshared.scopes.UnifiedSystemScope/launchScope (line 145)
Error in matlabshared.scopes.UnifiedSystemScope (line 23)
Error in vision.VideoPlayer
Error in combined/StartTrackingButtonPushed (line 287)
Error in appdesigner.internal.service.AppManagementService/tryCallback (line 368)
Error in matlab.apps.AppBase>@(source,event)tryCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event) (line 37)
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 386) Error while evaluating Button PrivateButtonPushedFcn.
The line calling the VideoPlayer is:
videoPlayer=vision.VideoPlayer('Position',[0,0,app.videoReader.Width,app.videoReader.Height]);
The error only occurs when running the exported standalone application and not when running the application in the AppDesigner or as an internal Matlab App.
How can I fix this error? Thanks in advance!

답변 (1개)

Sachin Lodhi
Sachin Lodhi 2024년 4월 29일
Hello Florian,
I understand that you are facing an error while using "vision.VideoPlayer" in a stand-alone application. It is because, "vision.VideoPlayer" object is not deployable. The following documentation lists all the functions that can be deployed on a stand-alone application:
As it is stated in the documentation that "vision.DeployableVideoPlayer" is deployable on stand-alone application, you can use it in place of "vision.VideoPlayer" to resolve this issue.
videoPlayer = vision.DeployableVideoPlayer('Position', [0, 0, app.videoReader.Width, app.videoReader.Height]);
For more information on "vision.DeployableVideoPlayer" please refer to the following documentation:
I hope this helps!

카테고리

Help CenterFile Exchange에서 Application Deployment에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by