mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 20:24:36 +00:00
98_DLNARenderer: fix pauseToogle/next/prev
git-svn-id: https://svn.fhem.de/fhem/trunk@12158 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
40f755ca9a
commit
d90fddeb1c
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: 98_DLNARenderer: fix pauseToggle/next/prev (thx@MattG)
|
||||
- bugfix: 73_GasCalculator: get/set list deleted for CounterDevice
|
||||
- bugfix: 73_ElectricityCalculator: get/set list deleted for CounterDevice
|
||||
- bugfix: 73_km200: Bugfix for double entries in RespondingServices.
|
||||
|
@ -2,6 +2,10 @@
|
||||
# Author: dominik.karall@gmail.com
|
||||
# $Id$
|
||||
#
|
||||
# v2.0.2 - 20160913
|
||||
# - BUGFIX: fixed pauseToggle (thx@MattG)
|
||||
# - BUGFIX: fixed next/previous (thx@MattG)
|
||||
#
|
||||
# v2.0.1 - 20160725
|
||||
# - FEATURE: support DIDL-Lite in channel_X attribute (thx@Weissbrotgrill)
|
||||
# - FEATURE: automatically generate DIDL-Lite based on URI (thx@Weissbrotgrill)
|
||||
@ -171,7 +175,7 @@ sub DLNARenderer_Define($$) {
|
||||
if(@param < 3) {
|
||||
#main
|
||||
$hash->{UDN} = 0;
|
||||
my $VERSION = "v2.0.1";
|
||||
my $VERSION = "v2.0.2";
|
||||
$hash->{VERSION} = $VERSION;
|
||||
Log3 $hash, 3, "DLNARenderer: DLNA Renderer $VERSION";
|
||||
DLNARenderer_setupControlpoint($hash);
|
||||
@ -488,7 +492,7 @@ sub DLNARenderer_setMultiRoomVolume {
|
||||
|
||||
sub DLNARenderer_pauseToggle {
|
||||
my ($hash) = @_;
|
||||
if($hash->{READINGS}{state} eq "paused") {
|
||||
if($hash->{READINGS}{state}{VAL} eq "paused") {
|
||||
DLNARenderer_play($hash);
|
||||
} else {
|
||||
DLNARenderer_upnpPause($hash);
|
||||
@ -500,7 +504,7 @@ sub DLNARenderer_play {
|
||||
|
||||
#start play
|
||||
if($hash->{helper}{caskeid}) {
|
||||
DLNARenderer_upnpSyncPlay($hash);
|
||||
DLNARenderer_upnpPlay($hash);
|
||||
} else {
|
||||
DLNARenderer_upnpPlay($hash);
|
||||
}
|
||||
@ -808,12 +812,12 @@ sub DLNARenderer_upnpSeek {
|
||||
|
||||
sub DLNARenderer_upnpNext {
|
||||
my ($hash) = @_;
|
||||
return DLNARenderer_upnpCallAVTrasnport($hash, "Next", 0);
|
||||
return DLNARenderer_upnpCallAVTransport($hash, "Next", 0);
|
||||
}
|
||||
|
||||
sub DLNARenderer_upnpPrevious {
|
||||
my ($hash) = @_;
|
||||
return DLNARenderer_upnpCallAVTrasnport($hash, "Previous", 0);
|
||||
return DLNARenderer_upnpCallAVTransport($hash, "Previous", 0);
|
||||
}
|
||||
|
||||
sub DLNARenderer_upnpPlay {
|
||||
@ -1553,6 +1557,9 @@ sub DLNARenderer_addSocketsToMainloop {
|
||||
1;
|
||||
|
||||
=pod
|
||||
=item device
|
||||
=item summary Autodiscover and control your DLNA renderer devices easily
|
||||
=item summary_DE Autodiscover und einfache Steuerung deiner DLNA Renderer Geräte
|
||||
=begin html
|
||||
|
||||
<a name="DLNARenderer"></a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user