After closing video GUI, the sound keeps playing

3 ビュー (過去 30 日間)
taeyeonizer
taeyeonizer 2017 年 3 月 15 日
回答済み: Afiq Azaibi 2017 年 3 月 23 日
We created a simple video player GUI which also plays back the sound along with the video. My problem is, when we exit the GUI, the sound of the video keeps playing which is why I have to type
clear sound
to stop it. I also get errors basically saying that an object in the GUI was destroyed. If this helps, when the video is paused, I used uiwait() and when the video is played again, I added uiresume(). Thanks for the help.

回答 (1 件)

Afiq Azaibi
Afiq Azaibi 2017 年 3 月 23 日
Depending on how the video is being played, you should delete the video object in the callback function for the GUI being closed. If you post the entire error message, that would also be helpful.

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by