Developing an Application that contains video and a timeline

8 ビュー (過去 30 日間)
Hari
Hari 2016 年 4 月 10 日
コメント済み: Geoff Hayes 2016 年 4 月 10 日
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?

回答 (1 件)

Geoff Hayes
Geoff Hayes 2016 年 4 月 10 日
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 件のコメント
Hari
Hari 2016 年 4 月 10 日
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 2016 年 4 月 10 日
Yes, an axes object could be used in place of the scrub bar.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by