mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Fix bug where port numbers in URL stop MJPEG from working (#17551)
Signed-off-by: Matthew Skinner <matt@pcmus.com>
This commit is contained in:
parent
949289f238
commit
a03ed48d01
@ -266,7 +266,7 @@ public class IpCameraHandler extends BaseThingHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (msg instanceof HttpContent content) {
|
if (msg instanceof HttpContent content) {
|
||||||
if (mjpegUri.equals(requestUrl) && !(content instanceof LastHttpContent)) {
|
if (mjpegUri.endsWith(requestUrl) && !(content instanceof LastHttpContent)) {
|
||||||
// multiple MJPEG stream packets come back as this.
|
// multiple MJPEG stream packets come back as this.
|
||||||
byte[] chunkedFrame = new byte[content.content().readableBytes()];
|
byte[] chunkedFrame = new byte[content.content().readableBytes()];
|
||||||
content.content().getBytes(content.content().readerIndex(), chunkedFrame);
|
content.content().getBytes(content.content().readerIndex(), chunkedFrame);
|
||||||
|
Loading…
Reference in New Issue
Block a user