Kodi Community Forum
XBMC Slingbox Client - Development Status - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: XBMC Slingbox Client - Development Status (/showthread.php?tid=82597)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


- ktjensen - 2011-06-22

Harry Muscle Wrote:What exactly do you mean by "slingbox server" ... are you simply referring to a remote Slingbox? If that's the case, then yes this will work with it. Or has Sling Media released some sort of server I'm not aware of?

Thanks,
Harry
Yes Harry. You answered the question. Hope I can access my slingbox over the Internet. If I do not have a port blocked on the remote router-modem. The sling web site gets through, so assume I can get through with the xbmc tool also. More testing.


- ktjensen - 2011-06-23

Harry Muscle Wrote:What exactly do you mean by "slingbox server" ... are you simply referring to a remote Slingbox? If that's the case, then yes this will work with it. Or has Sling Media released some sort of server I'm not aware of?

Thanks,
Harry

After trying this out last night. Couple more questions. It is mentioned during setup that the default port is 5001 for the slingbox. Is that TCP or UDP or public or private or both (I can just set up both)? Most routers-modems have a built in firewall that will prevent communication outside the LAN to the internet (if activated correctly). So I assume? that I need to open up this port on my remote LAN (or on both of the two LANs remote and local) to allow communication between XBMC-SLING and the remote slingbox?

Guessing here.


- bladeds - 2011-06-26

ive update my xbmc in june on my atv2 to a nightly build so i am assuming it should have the code in it, im trying to connect to a remote slingbox not in my lan. with details

********* Port: ****
> Password: ******

so i went to video section add source and used
code

sling://administrator:******@*********:****

i can connect to it on my pc fine am i missing something obvious here. i get unable to connect, could not retrieve network directory, when i click to add.

is the code not in the version of nightly build i have i download the lastest atv 2.deb on the 12th of june. anyone help please


- bladeds - 2011-06-26

mine plays perfectly on atv2 at 640 by 320 , just mentioning incase you did no think to try and that resoultion

mediumdry Wrote:I'm using your XBMC windows build, no special settings (so no SlingboxSettings.xml) and I'm controlling a Slingbox Pro.

Sorry for the late response, but haven't been able to do anything much with the slingbox, as it has moved to a friends place now. The first test I did was with the Slingbox Pro connected to a simple antenna, watching free to air digital tv. Now it is connected to a cable (coax connection) with regular analog channels.

So, stock XBMC with Sling, Slingbox Pro, connecting over the net. Changing channels works by punching the numbers in. xbmc.log of channel changing is here.

Once there's a Mac OS version with the Slingbox code, I'll probably add settings so I can do channel up/down from my Apple remote. Also, I might change the resolution, as I think 320x240 might not look very good on tv and I consistently do 4Mbps from this slingbox with the official player/website. (the Slingbox Pro supports both)

Any idea where I can find the available options for video quality settings that I can use in SlingboxSettings.xml?



- bladeds - 2011-06-26

bladeds Wrote:mine plays perfectly on atv2 at 640 by 320 , just mentioning incase you did no think to try and that resoultion

640 by 478 works perfectly, try that


Schedule channel change - cooli - 2011-06-27

Is there any way with your plugin or via an http request to schedule a channel change Huh


- rdoac - 2011-06-27

I have an issue with one slingbox but not the other. One slingbox changes channels correctly, the other hangs after sending the channel change request, it sticks while buffering. If I stop it, right after changing channel (takes a while to stop) then restart it, the new channels streams in ok. However, if I just leave it, xbmc sits on buffering and does nothing else. Sometimes I've had to kill and restart xbmc to stop it..


- Manuito - 2011-06-27

bladeds Wrote:640 by 478 works perfectly, try that

How do you change the resolution? Are you doing that in XBMC on ATV2, or directly in the Slingbox?


- Harry Muscle - 2011-06-28

For anyone posting problems/asking for help ... there's not much to go on without full debug logs ... so if you'd like me to take a look at your issue you'll need to supply full debug logs. Also, please take a look at http://forum.xbmc.org/showpost.php?p=819725&postcount=234 Big Grin

Thank you for being a XBMC and Slingbox customer Laugh
Harry


- bladeds - 2011-06-28

you have to ssh into apple tv 2 and place xml file into it

here is the code create it in notepad and name it

SlingboxSettings.xml

with

<slingboxsettings>
<slingbox>
<width>1280</width>
<height>720</height>
<videobitrate>1500</videobitrate>
<framerate>30</framerate>
<smoothing>50</smoothing>
<audiobitrate>64</audiobitrate>
<iframeinterval>10</iframeinterval>
<buttons>
<channelup>09</channelup>
<channeldown>0A</channeldown>
<zero>3A</zero>
<one>31</one>
<eight>38</eight>
<nine>39</nine>
</buttons>
</slingbox>
</slingboxsettings>

and then put into directory : var/mobile/Library/Preferences/XBMC/userdata/SlingboxSettings.xml

test what resolution you can get to work by changing width and height in the xml file. i could only get upto 640 by 478, no width above 480, see what works for you



Manuito Wrote:How do you change the resolution? Are you doing that in XBMC on ATV2, or directly in the Slingbox?



- rdoac - 2011-06-29

Finally got the TV off my son.. He's watching reruns of Heroes.

Log here: http://pastebin.com/uupayLPB


- Harry Muscle - 2011-06-29

rdoac Wrote:Finally got the TV off my son.. He's watching reruns of Heroes.

Log here: http://pastebin.com/uupayLPB

Thanks for the log ... it's quite interesting. The failure is actually during the channel change request, but it's odd, cause the code is designed to restart the stream even if the channel change fails. But the stream restart fails too. I'm actually thinking that maybe your Slingbox is taking more than 1 second to do the actual channel change, which is the time the code waits before confirming a channel change and trying to start the stream again.

May I ask which Slingbox model this is? Is it connected to regular cable TV? To truly fix this I would probably need to connect to your Slingbox and debug the code while connected, if you are OK with that. Unfortunately I'm currently swamped with other stuff, so it wouldn't be for a while.

Thanks,
Harry


- Harry Muscle - 2011-06-29

bladeds Wrote:you have to ssh into apple tv 2 and place xml file into it

here is the code create it in notepad and name it

SlingboxSettings.xml

with

<slingboxsettings>
<slingbox>
<width>1280</width>
<height>720</height>
<videobitrate>1500</videobitrate>
<framerate>30</framerate>
<smoothing>50</smoothing>
<audiobitrate>64</audiobitrate>
<iframeinterval>10</iframeinterval>
<buttons>
<channelup>09</channelup>
<channeldown>0A</channeldown>
<zero>3A</zero>
<one>31</one>
<eight>38</eight>
<nine>39</nine>
</buttons>
</slingbox>
</slingboxsettings>

and then put into directory : var/mobile/Library/Preferences/XBMC/userdata/SlingboxSettings.xml

test what resolution you can get to work by changing width and height in the xml file. i could only get upto 640 by 478, no width above 480, see what works for you

Take out the <buttons> section, unless of course you need special button config for your Slingbox. If you leave the <buttons> section in as is it'll mess up your channel changing, since it's just a sample one shown.

Thanks,
Harry


- Harry Muscle - 2011-06-29

cooli Wrote:Is there any way with your plugin or via an http request to schedule a channel change Huh

No way to do it via the XBMC gui, but via a http request there might be. You'd have to dig thru the wiki to find out or possibly create a new thread hoping to get the attention of one of the devs more familiar with the http requests in XBMC.

Harry


- Harry Muscle - 2011-06-29

ktjensen Wrote:After trying this out last night. Couple more questions. It is mentioned during setup that the default port is 5001 for the slingbox. Is that TCP or UDP or public or private or both (I can just set up both)? Most routers-modems have a built in firewall that will prevent communication outside the LAN to the internet (if activated correctly). So I assume? that I need to open up this port on my remote LAN (or on both of the two LANs remote and local) to allow communication between XBMC-SLING and the remote slingbox?

Guessing here.

Unfortunately I'm a little short on time, so I can't give you a full description, but your best resource is to look for details on how to configure things if you were using the actual Sling Media SlingPlayer. The router settings, etc. are identical to what's needed for the XBMC client to work.

Hope that helps,
Harry