diff --git a/fhem/CHANGED b/fhem/CHANGED
index dce4347ff..3f68f5c10 100644
--- a/fhem/CHANGED
+++ b/fhem/CHANGED
@@ -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.
+ - feature: 49_SSCam: support of genericStrmHtmlTag attr in streaming devices
- bugfix: DarkSky/OpenWeatherMap API fix bug with umlauts
- bugfix: 73_AutoShuttersControl: fix Bug open Window befor IsDay and closed
IsDay
diff --git a/fhem/FHEM/49_SSCam.pm b/fhem/FHEM/49_SSCam.pm
index a4bb3b54b..8488db189 100644
--- a/fhem/FHEM/49_SSCam.pm
+++ b/fhem/FHEM/49_SSCam.pm
@@ -47,6 +47,8 @@ use Encode;
# Versions History intern
our %SSCam_vNotesIntern = (
+ "8.11.0" => "25.02.2019 changed compatibility check, compatibility to SVS version 8.2.3, Popup possible for \"generic\"-Streamdevices, ".
+ "support for \"genericStrmHtmlTag\" in streaming devices ",
"8.10.1" => "19.02.2019 fix warning when starting fhem, and Forum:#97706",
"8.10.0" => "15.02.2019 send recordings integrated by telegram, a lot of internal changes for send telegrams ",
"8.9.2" => "05.02.2019 sub SSCam_sendTelegram changed ",
@@ -131,6 +133,8 @@ our %SSCam_vNotesIntern = (
# Versions History extern
our %SSCam_vNotesExtern = (
+ "8.11.0" => "25.02.2019 compatibility set to SVS version 8.2.3, Popup possible for streaming devices of type \"generic\", ".
+ "support for \"genericStrmHtmlTag\" in streaming devices ",
"8.10.0" => "15.02.2019 Possibility of send recordings by telegram is integrated as well as sending snapshots ",
"8.9.0" => "05.02.2019 A new streaming device type \"lastsnap\" was implemented. You can create such device with \"set ... createStreamDev lastsnap\". ".
"This streaming device shows the newest snapshot which was taken. ",
@@ -240,7 +244,7 @@ our %SSCam_vNotesExtern = (
);
# getestete SVS-Version
-my $compstat = "8.2";
+my $compstat = "8.2.3";
# Aufbau Errorcode-Hashes (siehe Surveillance Station Web API)
my %SSCam_errauthlist = (
@@ -1720,7 +1724,11 @@ sub SSCam_FWsummaryFn ($$$$) {
$ret .= "";
if($wltype eq "image") {
- $ret .= "
";
+ if(SSCam_myVersion($hash) == 823 && ReadingsVal($name, "CamVideoType", "") !~ /MJPEG/) {
+ $ret .= "
| Because SVS Version 8.2.3 is running the video format has to be set to MJPEG in SVS ! "; + } else { + if($apivideostmsmaxver) { + $link = "$proto://$serveraddr:$serverport/webapi/$apivideostmspath?api=$apivideostms&version=$apivideostmsmaxver&method=Stream&cameraId=$camid&format=mjpeg&_sid=$sid"; + } elsif ($hash->{HELPER}{STMKEYMJPEGHTTP}) { + $link = $hash->{HELPER}{STMKEYMJPEGHTTP}; + } + if($apiaudiostmmaxver) { + $audiolink = "$proto://$serveraddr:$serverport/webapi/$apiaudiostmpath?api=$apiaudiostm&version=$apiaudiostmmaxver&method=Stream&cameraId=$camid&_sid=$sid"; + } + $ret .= " | "; + $streamHash->{HELPER}{STREAM} = " "; - $streamHash->{HELPER}{STREAM} = " | ";
+ $ret .= "Set attribute \"genericStrmHtmlTag\" in device $camname | ";
$ret .= '';
$ret .= '';
$ret .= 'Set attribute \"genericStrmHtmlTag\" in device $camname or in device $strmdev |
attr <name> genericStrmHtmlTag <video $HTMLATTR controls autoplay>
<source src='http://192.168.2.10:32000/$NAME.m3u8' type='application/x-mpegURL'>
- </video>
+ </video>
+
+attr <name> genericStrmHtmlTag <img $HTMLATTR
+ src="http://192.168.2.10:32774"
+ onClick="FW_okDialog('<img src=http://192.168.2.10:32774 $PWS>')"
+ >
- The variables $HTMLATTR, $NAME are placeholder and absorb the attribute "htmlattr" (if set) respectively the SSCam-Devicename.
+ The variables $HTMLATTR, $NAME and $PWS are placeholders and absorb the attribute "htmlattr" (if set), the SSCam-Devicename
+ respectively the value of attribute "popupWindowSize" in streamin-device, which specify the windowsize of a popup window.
attr <name> genericStrmHtmlTag <video $HTMLATTR controls autoplay>
<source src='http://192.168.2.10:32000/$NAME.m3u8' type='application/x-mpegURL'>
</video>
+
+attr <name> genericStrmHtmlTag <img $HTMLATTR
+ src="http://192.168.2.10:32774"
+ onClick="FW_okDialog('<img src=http://192.168.2.10:32774 $PWS>')"
+ >
- The variables $HTMLATTR, $NAME are placeholder and absorb the attribute "htmlattr" (if set) respectively the SSCam-Devicename.
+ The variables $HTMLATTR, $NAME and $PWS are placeholders and absorb the attribute "htmlattr" (if set), the SSCam-Devicename
+ respectively the value of attribute "popupWindowSize" in streaming-device, which specify the windowsize of a popup window.
attr <name> genericStrmHtmlTag <video $HTMLATTR controls autoplay>
<source src='http://192.168.2.10:32000/$NAME.m3u8' type='application/x-mpegURL'>
- </video>
+ </video>
+
+attr <name> genericStrmHtmlTag <img $HTMLATTR
+ src="http://192.168.2.10:32774"
+ onClick="FW_okDialog('<img src=http://192.168.2.10:32774 $PWS >')"
+ >
- Die Variablen $HTMLATTR, $NAME sind Platzhalter und übernehmen ein gesetztes Attribut "htmlattr" bzw. den SSCam-Devicenamen.
+ Die Variablen $HTMLATTR, $NAME und $PWS sind Platzhalter und übernehmen ein gesetztes Attribut "htmlattr", den SSCam-
+ Devicenamen bzw. das Attribut "popupWindowSize" im Streaming-Device, welches die Größe eines Popup-Windows festlegt.
attr <name> genericStrmHtmlTag <video $HTMLATTR controls autoplay>
<source src='http://192.168.2.10:32000/$NAME.m3u8' type='application/x-mpegURL'>
- </video>
+ </video>
+
+attr <name> genericStrmHtmlTag <img $HTMLATTR
+ src="http://192.168.2.10:32774"
+ onClick="FW_okDialog('<img src=http://192.168.2.10:32774 $PWS >')"
+ >
- Die Variablen $HTMLATTR, $NAME sind Platzhalter und übernehmen ein gesetztes Attribut "htmlattr" bzw. den SSCam-Devicenamen.
+ Die Variablen $HTMLATTR, $NAME und $PWS sind Platzhalter und übernehmen ein gesetztes Attribut "htmlattr", den SSCam-
+ Devicenamen bzw. das Attribut "popupWindowSize" im Streaming-Device, welches die Größe eines Popup-Windows festlegt.
+attr <name> genericStrmHtmlTag <video $HTMLATTR controls autoplay>
+ <source src='http://192.168.2.10:32000/$NAME.m3u8' type='application/x-mpegURL'>
+ </video>
+
+attr <name> genericStrmHtmlTag <img $HTMLATTR
+ src="http://192.168.2.10:32774"
+ onClick="FW_okDialog('<img src=http://192.168.2.10:32774 $PWS>')"
+ >
+
+ The variables $HTMLATTR, $NAME and $PWS are placeholders and absorb the attribute "htmlattr" (if set), the SSCam-Devicename
+ respectively the value of attribute "popupWindowSize" in streaming-device, which specify the windowsize of a popup window.
+
+
+attr <name> genericStrmHtmlTag <video $HTMLATTR controls autoplay>
+ <source src='http://192.168.2.10:32000/$NAME.m3u8' type='application/x-mpegURL'>
+ </video>
+
+attr <name> genericStrmHtmlTag <img $HTMLATTR
+ src="http://192.168.2.10:32774"
+ onClick="FW_okDialog('<img src=http://192.168.2.10:32774 $PWS >')"
+ >
+
+ Die Variablen $HTMLATTR, $NAME und $PWS sind Platzhalter und übernehmen ein gesetztes Attribut "htmlattr", den SSCam-
+ Devicenamen bzw. das Attribut "popupWindowSize" im Streaming-Device, welches die Größe eines Popup-Windows festlegt.
+
+