Added custom width/height and audio settings.
thanks @rapidreporter and @asonnema
This commit is contained in:
parent
2220180639
commit
a222fb8be0
6 changed files with 19 additions and 3 deletions
|
@ -17,3 +17,4 @@ Only for Raspberry Pi 2 and Openelec.
|
|||
|
||||
##Bugs
|
||||
- Feel free to open a issue.
|
||||
- Please provide the following info: OpenELEC version and logs from `Userdata\addon_data\script.moonlight\service.log`
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="script.moonlight" name="Moonlight" version="1.0.6" provider-name="dead">
|
||||
<addon id="script.moonlight" name="Moonlight" version="1.0.7" provider-name="dead">
|
||||
<requires>
|
||||
<import addon="xbmc.python" version="2.14.0"/>
|
||||
</requires>
|
||||
|
|
|
@ -28,8 +28,10 @@ do
|
|||
|
||||
if [ "$MOON_RESOLUTION" = "720p" ]; then
|
||||
MOONLIGHT_ARG="$MOONLIGHT_ARG -720"
|
||||
else
|
||||
elif [ "$MOON_RESOLUTION" = "1080p" ]; then
|
||||
MOONLIGHT_ARG="$MOONLIGHT_ARG -1080"
|
||||
else
|
||||
MOONLIGHT_ARG="$MOONLIGHT_ARG -width $MOON_WIDTH_RESOLUTION -height $MOON_HEIGHT_RESOLUTION"
|
||||
fi
|
||||
|
||||
if [ "$MOON_FRAMERATE" = "60" ]; then
|
||||
|
@ -57,6 +59,10 @@ do
|
|||
if [ "$MOON_REMOTE" = "true" ]; then
|
||||
MOONLIGHT_ARG="$MOONLIGHT_ARG -remote"
|
||||
fi
|
||||
|
||||
if [ "$MOON_AUDIO" != "sysdefault" ]; then
|
||||
MOONLIGHT_ARG="$MOONLIGHT_ARG -audio $MOON_AUDIO"
|
||||
fi
|
||||
|
||||
if [ "$MOON_MAPPING" != "" ]; then
|
||||
MOONLIGHT_ARG="$MOONLIGHT_ARG -mapping \"${ADDON_DIR}/bin/mappings/${MOON_MAPPING}.conf\""
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
v1.0.7
|
||||
Added custom width/height and audio settings.
|
||||
|
||||
v1.0.6
|
||||
Update to moonlight-embedded 2.1.4
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
||||
<settings>
|
||||
<setting id="MOON_SERVER_IP" type="ipaddress" label="Server IP" default="0.0.0.0"/>
|
||||
<setting id="MOON_RESOLUTION" type="select" values="720p|1080p" label="Resolution" default="720p" />
|
||||
<setting id="MOON_RESOLUTION" type="labelenum" label="Resolution" values="Custom|720p|1080p" default="720p" />
|
||||
<setting id="MOON_WIDTH_RESOLUTION" type="text" label="Width" visible="eq(-1,1)" default="1366" />
|
||||
<setting id="MOON_HEIGHT_RESOLUTION" type="text" label="Height" visible="eq(-2,1)" default="768" />
|
||||
<setting id="MOON_FRAMERATE" type="select" values="30|60" label="FPS" default="30" />
|
||||
<setting id="MOON_BITRATE" type="text" label="Bitrate" default="10000" />
|
||||
<setting id="MOON_PACKETSIZE" type="text" label="Packet Size" default="1024" />
|
||||
|
@ -12,4 +14,5 @@
|
|||
<setting id="MOON_SURROUND" type="bool" label="Stream 5.1 surround sound (requires GFE 2.7)" default="false"/>
|
||||
<setting id="MOON_FORCEHW" type="bool" label="Force hardware acceleration" default="true"/>
|
||||
<setting id="MOON_MAPPING" type="select" label="Control Mapping" values="default|dualschock3|dualshock4|rumblepad2|xbox360" default="dualshock4" />
|
||||
<setting id="MOON_AUDIO" type="text" label="Audio Device" default="sysdefault" />
|
||||
</settings>
|
|
@ -10,4 +10,7 @@
|
|||
<setting id="MOON_RESOLUTION" value="720p" />
|
||||
<setting id="MOON_SERVER_IP" value="0.0.0.0" />
|
||||
<setting id="MOON_SURROUND" value="false" />
|
||||
<setting id="MOON_WIDTH_RESOLUTION" value="1366" />
|
||||
<setting id="MOON_HEIGHT_RESOLUTION" value="768" />
|
||||
<setting id="MOON_AUDIO" value="sysdefault" />
|
||||
</settings>
|
Loading…
Reference in a new issue