EDL (and ComSkip) integration

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
Post: #31
No idea - try it in regular mplayer Smile

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.


[Image: badge.gif]
find quote
DrDDT Offline
Senior Member
Posts: 186
Joined: Apr 2006
Reputation: 0
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 Offline
Grumpy Bastard Developer
Posts: 12,185
Joined: Nov 2003
Reputation: 82
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 Offline
Senior Member
Posts: 186
Joined: Apr 2006
Reputation: 0
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).

actions are defined in guilib/Key.h

ButtonTranslator.cpp maps it to a 'human' name which you use in keymap.xml

Okay, but how does for example <skipminus>SkipPrevious</skipminus>
map to an action in key.h?
find quote
jmarshall Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
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.


[Image: badge.gif]
find quote
DrDDT Offline
Senior Member
Posts: 186
Joined: Apr 2006
Reputation: 0
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 Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
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.


[Image: badge.gif]
find quote
DrDDT Offline
Senior Member
Posts: 186
Joined: Apr 2006
Reputation: 0
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.

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

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 Offline
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
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.


[Image: badge.gif]
find quote
DrDDT Offline
Senior Member
Posts: 186
Joined: Apr 2006
Reputation: 0
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.

Cheers,
Jonathan

Ok, I'll try that.
find quote
Post Reply