Developing an Application that contains video and a timeline

8 visualizaciones (últimos 30 días)
Hari
Hari el 10 de Abr. de 2016
Comentada: Geoff Hayes el 10 de Abr. de 2016
I want to develop an application that has a video and a timeline for it. The timeline acts as a seek bar to the video and so If I want to move to a particular part of the video,I can use the timeline to achieve it. I am done with placing the Play, Pause buttons. Is it possible to develop one in Matlab?

Respuestas (1)

Geoff Hayes
Geoff Hayes el 10 de Abr. de 2016
Hari - one way to achieve what you want is to place fast forward and rewind buttons within your GUI which, when pressed, would pause the video and allow the user to scrub in either direction. When scrubbing (i.e. pressing the button) the progress on the timeline would update and the user would get an idea of where they are now in the timeline. Pressing the play button would then restore the playback.
An alternative, which would be more complicated but still doable, would be to have your timeline respond to mouse button down and motion events so that the the user could drag the current position to some future or past position within the timeline. Again, the playback would pause when the user starts scrubbing and he/she would be required to press the play button to resume playback. (Or simply releasing the mouse button might be sufficient to restore playback.)
  2 comentarios
Hari
Hari el 10 de Abr. de 2016
Thanks a lot! I'll check how that might work. The actual project is to place clickable horizontal graph bar in place of timeline. Can that be done too?
Geoff Hayes
Geoff Hayes el 10 de Abr. de 2016
Yes, an axes object could be used in place of the scrub bar.

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by