Hi guys,
a noob here. Trying to cast a camera stream to my Google Nest Hub (the one with a display) but ran into some problems. Maybe someone will see what I am doing wrong and nudge me in the right direction?
Platform:
openHAB 2.5.10 running on Windows 10.
Background
I have setup the Chromecast binding and added the camera in question to openHAB and this works fine. I can see the stream from the camera in a browser (http://192.168.1.122:8000/snapshots.mjpeg), I can see a snapshot from the camera in a browser (http://192.168.1.122:8000/ipcamera.jpg) so this seems to be working fine.
I can cast the image (ipcamera.jpg) to the Google Nest Hub, that works fine. I can also play sounds on the Nest Hub and also saying things with the “say” command.
Problem
But when I try to stream the mjpeg file, it only says “Playing Default Media Receiver” on the display. Nothing more happens. And after a while, it goes back to normal mode (ambient).
My thing:
My item:
String BathroomPlayURI "PlayURI" { channel="chromecast:chromecast:[UID Deleted]:playuri" }
Different commands in the rule:
This gives the “Playing Default Media Receiver” problem:
BathroomPlayURI.sendCommand("http://192.168.1.122:8000/snapshots.mjpeg")
This however works fine:
BathroomPlayURI.sendCommand("http://192.168.1.122:8000/ipcamera.jpg")
This is how it looks on the Google Nest Hub when trying to stream from the camera (very dusty in the picture):
The log below when I get the “error” (log is set to TRACE level for the binding).
Does anybody have any idea of what is going on? What is it that I don’t understand? I am quite lost I am sorry to say.
17:25:21.134 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'TestSwitch' received command ON
17:25:21.147 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'BathroomPlayURI' received command http://192.168.1.122:8000/snapshots.mjpeg
17:25:21.154 [INFO ] [arthome.event.ItemStatePredictedEvent] - BathroomPlayURI predicted to become http://192.168.1.122:8000/snapshots.mjpeg
17:25:21.166 [INFO ] [smarthome.event.ItemStateChangedEvent] - TestSwitch changed from OFF to ON
17:25:22.578 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Type: Google Nest Hub
17:25:22.579 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Found: 192.168.1.175 8009
17:25:22.582 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Type: Google Nest Hub
17:25:23.072 [DEBUG] [romecast.internal.ChromecastCommander] - Application launched: Application{id: CC1AD845, name: Default Media Receiver, sessionId: 38f52a52-f3fe-4db1-81ea-261d175a8b87, statusText: Default Media Receiver, transportId: 38f52a52-f3fe-4db1-81ea-261d175a8b87, isIdleScreen: false, launchedFromCloud: false, namespaces: [Namespace{urn:x-cast:com.google.cast.cac}, Namespace{urn:x-cast:com.google.cast.debugoverlay}, Namespace{urn:x-cast:com.google.cast.broadcast}, Namespace{urn:x-cast:com.google.cast.media}]}
17:25:23.564 [DEBUG] [cast.internal.ChromecastStatusUpdater] - MEDIA_STATUS MediaStatus{activeTrackIds: <null>, mediaSessionId: 1, playbackRate: 1, playerState: IDLE, currentItemId: 1, currentTime: 0,000000, customData: <null>, loadingItemId: null, items: <null>, preloadedItemId: null, supportedMediaCommands: 274447, volume: Volume{level: 1.0, muted: false, increment: 0.05, stepInterval: 0.05000000074505806, controlType: null}, media: Media{url: http://192.168.1.122:8000/snapshots.mjpeg, contentType: multipart/x-mixed-replace; boundary=thisMjpegStream, duration: null}, repeatMode: REPEAT_OFF, idleReason: null}
17:25:24.066 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Type: Google Nest Hub
17:25:24.069 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Found: 192.168.1.175 8009
17:25:24.072 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Type: Google Nest Hub
17:25:24.568 [DEBUG] [cast.internal.ChromecastStatusUpdater] - MEDIA_STATUS MediaStatus{activeTrackIds: <null>, mediaSessionId: 1, playbackRate: 1, playerState: BUFFERING, currentItemId: 1, currentTime: 0,000000, customData: <null>, loadingItemId: null, items: <null>, preloadedItemId: null, supportedMediaCommands: 274447, volume: Volume{level: 1.0, muted: false, increment: 0.05, stepInterval: 0.05000000074505806, controlType: null}, media: null, repeatMode: REPEAT_OFF, idleReason: null}
17:25:25.444 [DEBUG] [romecast.internal.ChromecastCommander] - Failed to request media status with a running app: Waiting for response timed out
17:25:25.779 [DEBUG] [romecast.internal.ChromecastCommander] - Failed to request media status with a running app: Waiting for response timed out
17:25:26.075 [DEBUG] [romecast.internal.ChromecastCommander] - Failed to request media status with a running app: Waiting for response timed out
17:25:30.084 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Type: null
17:25:40.973 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Type: null
17:25:40.977 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Type: Google Nest Hub
17:25:40.978 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Found: 192.168.1.175 8009
17:25:40.978 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Type: Google Nest Hub
17:25:50.101 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Type: null
17:26:06.238 [DEBUG] [romecast.internal.ChromecastCommander] - Failed to request media status with a running app: Waiting for response timed out
17:26:05.904 [DEBUG] [romecast.internal.ChromecastCommander] - Failed to request media status with a running app: Waiting for response timed out
17:26:05.565 [DEBUG] [romecast.internal.ChromecastCommander] - Failed to request media status with a running app: Waiting for response timed out
17:25:53.404 [DEBUG] [romecast.internal.ChromecastCommander] - Failed playing media: Waiting for response timed out
17:26:14.909 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Type: Google Nest Hub
17:26:15.000 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'chromecast:chromecast:04d3e1e161d2bc9e2870f1fa9d754318' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Waiting for response timed out
17:26:15.001 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Found: 192.168.1.246 8009
17:26:15.002 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Type: Google Nest Hub
17:26:21.038 [DEBUG] [cast.internal.ChromecastEventReceiver] - Received an 'UNKNOWN' event (class=class com.fasterxml.jackson.databind.JsonNode)
17:26:21.054 [DEBUG] [cast.internal.ChromecastStatusUpdater] - MEDIA_STATUS MediaStatus{activeTrackIds: <null>, mediaSessionId: 1, playbackRate: 1, playerState: IDLE, currentItemId: 1, currentTime: 0,000000, customData: <null>, loadingItemId: null, items: <null>, preloadedItemId: null, supportedMediaCommands: 274447, volume: Volume{level: 1.0, muted: false, increment: 0.05, stepInterval: 0.05000000074505806, controlType: null}, media: null, repeatMode: null, idleReason: ERROR}
17:26:25.018 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'chromecast:chromecast:04d3e1e161d2bc9e2870f1fa9d754318' changed from OFFLINE (COMMUNICATION_ERROR): Waiting for response timed out to ONLINE
17:26:25.121 [DEBUG] [cast.internal.ChromecastStatusUpdater] - MEDIA_STATUS null
17:26:25.125 [INFO ] [smarthome.event.ItemStateChangedEvent] - BathroomStop changed from OFF to ON
17:26:30.151 [DEBUG] [covery.ChromecastDiscoveryParticipant] - Chromecast Type: null