Azzera filtri
Azzera filtri

Developing an Application that contains video and a timeline

4 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

Geoff Hayes
Geoff Hayes il 10 Apr 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 Commenti
Hari
Hari il 10 Apr 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 il 10 Apr 2016
Yes, an axes object could be used in place of the scrub bar.

Accedi per commentare.

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by