[mythtv-users] How to stop a playing Movie with a Function() call?
Suchit Rout, Noida
rsuchit at hcltech.com
Thu Nov 24 01:04:36 EST 2005
I have been studying the code of mythtv for a while now.
I understand that while a movie is being played in mythfrontend, a loop
in tv_play.cpp gets on executing.
While a movie is being played, if I press the "Esc" button, the movie
stops playing and MythTV returns to the screen where we have
* Watch Recordings
* etc etc
Now, what I wanna do is simulate this "Esc pressing" with the help of a
single function call that can cause the movie to stop and make MythTV
return to the above mentioned screen. Due to my poor knowledge in QT I
am unable to solve the problem in hand.
Can anyone help me figure this out?
I would like to run a thread alongwith the RunMainLoop (if i am correct)
in tv_play.cpp that wuold keep on checking for some signal (not exactly
signal per se, it could be a change in value in a database table etc).
the moment I detect that change, my function is called and the movie
play stops, making MythTV to return to the abov screen.
Regards,
sr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20051124/132a8d03/attachment.htm
More information about the mythtv-users
mailing list