How can I interrupt a movie based on user input to a GUI
Mostrar comentarios más antiguos
I have a GUI that displays video to a user. I want the video to stop playing when the user presses a particular button. Unfortunately, the movie (I am using the movie() command) continues to play until it is done on its own.
How can I interrupt the playback of movie() based on a buttonpress event (i.e. from a user event callback).
BTW, I don't believe Ctrl-C will work, because I don't want the GUI to stop running. I want to terminate the movie running in a particular axes on the GUI, and start another movie in the same axes.
Thanks in advance, Sean
1 comentario
Sean
el 15 de Jul. de 2011
Respuesta aceptada
Más respuestas (2)
Sean de Wolski
el 15 de Jul. de 2011
0 votos
You could kill the axes inside a try/catch block so that the error is not reported and so that nothing bad happens.
1 comentario
Sean
el 15 de Jul. de 2011
Categorías
Más información sobre Read, Write, and Modify Image en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!