Archive:Slingbox: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Harry Muscle
No edit summary
m (Robot: Changing Category:XBMC Manual to Category:Manual)
(23 intermediate revisions by 7 users not shown)
Line 1: Line 1:
Beginning with nightly builds from June 2, 2011 (commit 91d5076), XBMC can function as a [http://www.slingmedia.com Slingbox ] client.
{{mininav| [[Media sources]] | [[File sharing]] }}
{{cleanup}}
<section begin="intro"/>Beginning with v11, XBMC can function as a [http://www.slingbox.com Slingbox ] client.<section end="intro"/> {{editor note|<-- SD only? see [[forum:122878]]}}


In order to add a slingbox, add a source in the following format:
In order to add a Slingbox, add a source in the following format:
sling://username:password@slingboxaddress:port/input
sling://username:password@slingboxaddress:port/input


Where username is either administrator or viewer and slingboxaddress is either an IP address or DNS name that you can resolve locally and input is the input number you want to watch. Input is optional, if none is specified it will default to the first input. Port is also optional, it will default to 5001 (default Slingbox port) if none is specified.
Where username is either "administrator" or "viewer" and slingboxaddress is either an IP address or DNS name that you can resolve locally and input is the input number you want to watch. Input is optional, if none is specified it will default to the first input. Port is also optional, it will default to 5001 (default Slingbox port) if none is specified.


If you want to change the default connection settings for connecting to your Slingbox, you can create a SlingboxSettings.xml file in the userdata folder (where the AdvancedSettings.xml file would normally be created also, for example) with the following layout:
If you want to change the default connection settings for connecting to your Slingbox, you can create a SlingboxSettings.xml file in the userdata folder (where the AdvancedSettings.xml file would normally be created also, for example) with the following layout:


<source lang="xml">
<syntaxhighlight lang="xml" enclose="div">
  <slingboxsettings>
  <slingboxsettings>
   <slingbox>
   <slingbox>
Line 34: Line 36:
   </slingbox>
   </slingbox>
  </slingboxsettings>
  </slingboxsettings>
</source>
</syntaxhighlight>


Every settings is optional, so if you only want to override the audio bitrate, then that's all you have to specify, all the other settings will keep their default values. If you need your Slingbox to send IR commands to control whatever your source is, you need to enter your button details in the button section. Currently only the channel up/down and 0-9 buttons are supported. They need a value somewhere between 00 and FF in hexadecimal notation. The problem currently is that the only two ways to find the correct values are either by trial and error (most Slingboxes I tested had values under 50 for all these buttons, if that helps), or to analize the network traffic between the Slingbox and Sling Player ... not a very user friendly act (see below).
Every setting is optional, so if you only want to override the audio bitrate, then that's all you have to specify, all the other settings will keep their default values.


If you are connecting to more than one Slingbox, you can specify settings for them seperately, by adding hostname=slingboxaddress to the slingbox entry in SlingboxSettings.xml ... so it would look something like this:
If you need your Slingbox to send IR commands to control whatever your source is, you need to enter your button details in the button section. Currently only the channel up/down and 0-9 buttons are supported. They need a value somewhere between 00 and FF in hexadecimal notation. There are a few ways to find the correct values. One is by trial and error (most Slingboxes tested had values under 50 for all these buttons). Another method is to analyse the network traffic between the Slingbox and Sling Player ... not a very user friendly act. The third method is to get the information from the Sling Player itself. To do so, open Sling Player and go to your Slingbox directory. Select your Slingbox and then the Edit button. Next select the Information tab. Look for a field called Key Codes or IR Codes. The IR code for button 1 maps to the fourth character in the Key Codes field. The IR code for button 2 maps to the fifth character, and so on. The correct mapping for the channel up/down IR codes still hasn't been determined. Please remember that the codes listed in Sling Player are in decimal notation, while in XBMC they need to be listed in hexadecimal format.


<source lang="xml">
[[File:SlingboxIRCodes.jpg]]
 
One good source for IR codes is the [http://www.hifi-remote.com/forums/dload.php?action=category&cat_id=87 JP1 forums for Slingbox Custom Remotes]. If you find your source device listed, download the zip file. For my device (a Tivo Premiere) there was an enclosed zip file that had remote control definitions. Property.xml contained all the remote code mappings available on the remote.
 
If you are connecting to more than one Slingbox, you can specify settings for them separately, by adding hostname=slingboxaddress to the slingbox entry in SlingboxSettings.xml ... so it would look something like this:
 
<syntaxhighlight lang="xml" enclose="div">
  <slingboxsettings>
  <slingboxsettings>
   <slingbox hostname=slingbox1address>
   <slingbox hostname=slingbox1address>
Line 49: Line 57:
   </slingbox>
   </slingbox>
  </slingboxsettings>
  </slingboxsettings>
</source>
</syntaxhighlight>


'''Possible alternate method of finding IR code values.'''
[[Category:File sharing]]
 
[[Category:Manual]]
Open Sling Player and go to your Slingbox Directory.  Select your Slingbox then the edit button.  Next select the Information tab.  Look for a field called IR codes.  The IR code for button one maps to the fourth character in the IR Codes field.  The IR code for button two maps to the fifth character, and so on.  Please remember that the codes listed in Sling Player are in decimal format, while in XBMC they need to be listed in hexidecimal format.
[[Category:Live TV]]
 
[[File:SlingboxIRCodes.jpg]]

Revision as of 21:42, 17 November 2014

Home icon grey.png   ▶ Media sources ▶ File sharing ▶ Slingbox
Cleanup.png This page or section may require cleanup, updating, spellchecking, reformatting and/or updated images. Please improve this page if you can. The discussion page may contain suggestions.


Beginning with v11, XBMC can function as a Slingbox client. Editor note: <-- SD only? see forum:122878

In order to add a Slingbox, add a source in the following format: sling://username:password@slingboxaddress:port/input

Where username is either "administrator" or "viewer" and slingboxaddress is either an IP address or DNS name that you can resolve locally and input is the input number you want to watch. Input is optional, if none is specified it will default to the first input. Port is also optional, it will default to 5001 (default Slingbox port) if none is specified.

If you want to change the default connection settings for connecting to your Slingbox, you can create a SlingboxSettings.xml file in the userdata folder (where the AdvancedSettings.xml file would normally be created also, for example) with the following layout:

 <slingboxsettings>
  <slingbox>
    <width>320</width>
    <height>240</height>
    <videobitrate>704</videobitrate>
    <framerate>30</framerate>
    <smoothing>50</smoothing>
    <audiobitrate>64</audiobitrate>
    <iframeinterval>10</iframeinterval>
    <buttons>
      <channelup>01</channelup>
      <channeldown>02</channeldown>
      <one>03</one>
      <two>04</two>
      <three>05</three>
      <four>06</four>
      <five>07</five>
      <six>08</six>
      <seven>09</seven>
      <eight>0A</eight>
      <nine>0B</nine>
      <zero>0C</zero>
    </buttons>
  </slingbox>
 </slingboxsettings>

Every setting is optional, so if you only want to override the audio bitrate, then that's all you have to specify, all the other settings will keep their default values.

If you need your Slingbox to send IR commands to control whatever your source is, you need to enter your button details in the button section. Currently only the channel up/down and 0-9 buttons are supported. They need a value somewhere between 00 and FF in hexadecimal notation. There are a few ways to find the correct values. One is by trial and error (most Slingboxes tested had values under 50 for all these buttons). Another method is to analyse the network traffic between the Slingbox and Sling Player ... not a very user friendly act. The third method is to get the information from the Sling Player itself. To do so, open Sling Player and go to your Slingbox directory. Select your Slingbox and then the Edit button. Next select the Information tab. Look for a field called Key Codes or IR Codes. The IR code for button 1 maps to the fourth character in the Key Codes field. The IR code for button 2 maps to the fifth character, and so on. The correct mapping for the channel up/down IR codes still hasn't been determined. Please remember that the codes listed in Sling Player are in decimal notation, while in XBMC they need to be listed in hexadecimal format.

SlingboxIRCodes.jpg

One good source for IR codes is the JP1 forums for Slingbox Custom Remotes. If you find your source device listed, download the zip file. For my device (a Tivo Premiere) there was an enclosed zip file that had remote control definitions. Property.xml contained all the remote code mappings available on the remote.

If you are connecting to more than one Slingbox, you can specify settings for them separately, by adding hostname=slingboxaddress to the slingbox entry in SlingboxSettings.xml ... so it would look something like this:

 <slingboxsettings>
  <slingbox hostname=slingbox1address>
    ...
  </slingbox>
  <slingbox hostname=slingbox2address>
    ...
  </slingbox>
 </slingboxsettings>