Code: Select all
AfxGetApp()->BeginWaitCursor();
m_Player.SetPos(fPos);
m_Player.Play();
AfxGetApp()->EndWaitCursor();
Thanks.
Code: Select all
AfxGetApp()->BeginWaitCursor();
m_Player.SetPos(fPos);
m_Player.Play();
AfxGetApp()->EndWaitCursor();
Well, no help from the gurus on this one so here's the hack I ended up using:
1) Save the position sent to SetPos() as "seekposition"
2) Set the hourglass cursor
3) Start a timer function that periodically checks the video position with GetPos()
4) When return from GetPos() > "seekposition" the video is playing again (Unset the hourglass cursor)
Hope this helps someone else.
Code: Select all
struct intf_sys_t
{
vlc_timer_t timer;
};
int Open(vlc_object_t *obj)
{
intf_thread_t * p_intf = ( intf_thread_t * ) obj;
intf_sys_t * p_sys = p_intf->p_sys;
...
if ( vlc_timer_create( &p_sys->timer, TimerFired, p_intf ) )
msg_Err( p_intf, "Failed to create timer\n" );
return VLC_SUCCESS;
}
Return to “Development around libVLC”
Users browsing this forum: No registered users and 14 guests