Developing an Application that contains video and a timeline

조회 수: 5 (최근 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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by