i am porting the sipx-api (http://www.sipfoundry.org/sipxphone/) to xbox, because i want to add a sip-feature to xbmc.
(how) can i access the soundbuffer or through xbmc? (so i dont have to handle the whole directsound-crap ;) )
are there any "how to add features to xbmc"-tutorials or documentations?
thx ia
edit: i have made my own window class. it can activate it by xbmc.activatewindow in keymap.xml.
but how can i access it from home-screen?
(the label is shown already, but i cant select)
if you're using a skin that's still using the button scroller on the home screen, just add this to xboxmediacenter.xml:
*<homebuttons>
* * * * ...
* * * * <button>
* * * * * *<description>sip</description>
* * * * * *<label>sip phone</label>
* * * * * *<execute>xbmc.activatewindow(2800)</execute>
* * * * * *<icon>###</icon>
* * * *</button>
*</homebuttons>
for the icon, add an image control to home.xml and give it a unique id. *then use that id above.
if you're using the default pm3 skin, then u need to create a custom button.
...so xbmc already got a 'kind-of' voice-over-ip (voip) phone function via the ported version of libspeex we got from team-avalaunch (http://cvs.sourceforge.net/viewcvs.py/xbmc/xbmc/docs/libspeex.rar?rev=1.1&sortby=date&view=log) :saint:
and you do get the home screen to do it the same way. you add a button which uses xbmc.activatewindow(). (hyperlink is the old way of doing it.)
cbuttonscrollersettings::cbutton *button8 = new cbuttonscrollersettings::cbutton(9, "xbmc.activatewindow(2800)", icon_type_sip);
and
g_settings.m_buttonsettings.m_vecbuttons.push_back (button8);
in csettings::loadhomebuttons
home.xml i have adapted too.
but i cant select the button :-/
nearly everything should be working. the last thing to do by now is replace the hmixers, hwaveins and hwaveouts by xbox/xbmc routines
:sniffle:
#If you have any other info about this subject , Please add it free.# |