jmarshall
Team-XBMC Developer Posts: 24,564 Joined: Oct 2003 Reputation: 138 |
2007-08-20 00:36
Post: #31
No idea - try it in regular mplayer
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
DrDDT
Senior Member Posts: 186 Joined: Apr 2006 Reputation: 0 |
2007-08-21 17:04
Post: #32
How do I add a 'buttonhandler'?
Say I want to add a 'skip to next cutpoint/scene' button, and use it to seek to the next/previous cutpoint/scene marker? I have code ready to generate the correct seek position. |
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2007-08-21 17:08
Post: #33
first, define the appropriate action. then map it in keymap. finally handle the action in OnAction() whereever you want it (most like CGUIWindowFullscreen).
actions are defined in guilib/Key.h ButtonTranslator.cpp maps it to a 'human' name which you use in keymap.xml Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2007-08-21 17:11 by spiff.)
|
| find quote |
DrDDT
Senior Member Posts: 186 Joined: Apr 2006 Reputation: 0 |
2007-08-22 01:33
Post: #34
spiff Wrote:first, define the appropriate action. then map it in keymap. finally handle the action in OnAction() whereever you want it (most like CGUIWindowFullscreen). Okay, but how does for example <skipminus>SkipPrevious</skipminus> map to an action in key.h? |
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,564 Joined: Oct 2003 Reputation: 138 |
2007-08-22 02:01
Post: #35
ButtonTranslator.cpp does that.
Another option is just re-using the "Next Chapter/Previous Chapter" actions that already exist (in the DVD player). You'd have to implement an OnAction() in mplayer I think to do this. Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
DrDDT
Senior Member Posts: 186 Joined: Apr 2006 Reputation: 0 |
2007-08-22 21:57
Post: #36
Next problem:
I'm trying to debug seeking in a movie using xbmc_pc. I see the time running of the movie I'm trying to play, but the buttons I defined are not handled by CGUIWindowFullScreen somehow. Is another class handling these buttons, since the movie is not really playing? |
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,564 Joined: Oct 2003 Reputation: 138 |
2007-08-23 01:21
Post: #37
The next/previous chapter seeking is done by the DVDPlayer, which should be working on XBMC_PC, at least for some videos.
If it's not, you can make a quick change to PlayerCoreFactory.cpp to make sure it's being used. If a video is playing the action gets sent to the player first for processing (so it can do dvd menu stuff for instance) and only if not handled (returns false) drops back to CGUIWindowFullScreen. Cheers, Jonathan Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
DrDDT
Senior Member Posts: 186 Joined: Apr 2006 Reputation: 0 |
2007-08-23 11:06
Post: #38
jmarshall Wrote:The next/previous chapter seeking is done by the DVDPlayer, which should be working on XBMC_PC, at least for some videos. I'm working on EDL integration with MPlayer, or in XBMC_PC, Dummyvideoplayer. I can see the correct keycodes in the debugscreen, but the OnAction in Dummyvideoplayer is not triggered somehow. |
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,564 Joined: Oct 2003 Reputation: 138 |
2007-08-23 11:40
Post: #39
Not sure I can give you any hints, other than to dump a breakpoint in CGUIWindowFullScreen::OnAction() and checking that it goes into that function. Work your way back to CApplication::OnKey() until you find the issue.
Cheers, Jonathan Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
DrDDT
Senior Member Posts: 186 Joined: Apr 2006 Reputation: 0 |
2007-08-23 11:57
Post: #40
jmarshall Wrote:Not sure I can give you any hints, other than to dump a breakpoint in CGUIWindowFullScreen::OnAction() and checking that it goes into that function. Work your way back to CApplication::OnKey() until you find the issue. Ok, I'll try that. |
| find quote |

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
Search
Help