Add seek functions into the playuver
This commit is contained in:
1 parent
585c402335
commit
50fd611291
5 files changed
+30
-4
No files matched your search
@@ -208,15 +208,21 @@ bool SubWindowHandle::playEvent()
|
||||
return false;
|
||||
}
|
||||
|
||||
Void SubWindowHandle::seekEvent( UInt new_frame_num )
|
||||
Void SubWindowHandle::seekAbsoluteEvent( UInt new_frame_num )
|
||||
{
|
||||
m_pCurrStream->seekInput( new_frame_num );
|
||||
refreshFrame();
|
||||
}
|
||||
|
||||
Void SubWindowHandle::seekRelativeEvent( Bool bIsFoward )
|
||||
{
|
||||
m_pCurrStream->seekInput( m_pCurrStream->getCurrFrameNum() + ( bIsFoward ? 1 : -1 ) );
|
||||
refreshFrame();
|
||||
}
|
||||
|
||||
Void SubWindowHandle::stopEvent()
|
||||
{
|
||||
seekEvent( 0 );
|
||||
seekAbsoluteEvent( 0 );
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user