-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot stream with DashCast #88
Comments
I forgot to mention. I also created a temporary web link. I can open this page find on other devices on the same network as the google home, but casting this page using DashCast also displays a blank screen, but casting it from a browser displays the page properly. |
Maybe your Hass and devices in different networks. Also check Configuration > General > Internal URL setting |
My Home Assistant and Google/Nest Home devices are on the same network. I've also tried several variations of Internal URL setting and it has not changed anything. The nests are able to stream other things from Home Assistant, so I'm pretty sure the network & resolution are working correctly. |
Have you tried Home Assistant Cast? |
Do you mean https://cast.home-assistant.io/ ? If so, yes - that works properly. |
I've tried a few more things, including a publicly accessible home assistant URL using the Big Buck Bunny stream. Steps for this:
I also tested casting to a regular ChromeCast device and I get the same result. Does this work for you? It seems like the issue might just be that the chromecast devices don't support the video element format being displayed by the page generated by |
Thinking it was maybe an issue with the newer MSE implementation, I tried version 1.4.0 of this component and it still does not work. With this version, I get a grey screen with video controls. I'm starting to think that the issue may be related to the version of home assistant. I'm using the latest 2021.6.3 version. |
Ahh... @AlexxIT, I believe I found the issue. I spun up a development version of the dashcast service and found that from:
when loading through DashCast, the referrer is getting set to to the DashCast URL. In my case,
can't find the
Changing line 22 of index.html to I'll submit a PR in a moment if that is an okay change. |
When using DashCast or any other external site that may use the embedded URL, we want to make sure we are using the original location of the page instead of looking at the referrer URL. The referrer URL will not have the `url` or `entity` parameters. Fixes: AlexxIT#88
There was some reason with referrer but I don't remember it. I should do some tests |
Sounds good. I tested several scenarios and couldn't find a case where it was needed. It looks like prior to v2, it wasn't using the referrer either. If there's a case where it is needed, I can add additional logic that tries both options. |
Have you had a chance to look at this? I saw a new version was released, but don't want to updated without this fix in place as well since DashCast is non-functional without it. |
Not at home for few weeks |
When using DashCast or any other external site that may use the embedded URL, we want to make sure we are using the original location of the page instead of looking at the referrer URL. The referrer URL will not have the `url` or `entity` parameters. Fixes: AlexxIT#88
i have same problem, chromecast 2013 and black screen after DashCast logo |
whats the crack with this then? |
I can't find the solution, same me problem here only dashcam logo, after update hassio to 2021.12.1 |
Hi, it doesn't work for me anymore... |
hi @bekriebel , i want to apply your fix too... but you say, line 22 = i dont see that line there? i have on line 22 this on below, how can i fix it? |
It looks like the code has changed since I first did this. I haven't been using dashcast at all recently, so I'm not sure if this is still needed or what the new fix would be if it is. |
the issue still persist :-) |
Lovelace cast takes ages, so keen to try this dash cast. Still looking for a fix please. |
I originally opened issue number 255 regarding problems with DashCast on a Google Home Display. The results have changed since I last reported this issue and I thought I would explain how DashCast and lovelace cast now work on my system and version 2.3.0 of WebRTC Camera. First of all, I get the exact same results if I use Dashcast to display a rtsp steam, or if I use the lovelace cast view service to display a view which utilizes the WebRTC card. When the service is first called, the Google Home Display acts like it is working, and it displays a single still image of the camera. The timer at the bottom left of the screen (by the play icon) starts to count up in seconds, but the video is not playing - it continues to display just a still image. This goes on for exactly 37 seconds, at which time the video starts to play and everything works normally. Like I said, this same behavior happens if I use the cast service to display a WebRTC camera view. Hopefully this info will help. |
Any news on this issue? |
I worked around this issue using a single-panel webrtc view of my camera with the |
My Google Nest Hub Max shows HTTP sites without problem |
You are right. I was able get casting working using the built-in play_media service (bit of a delay but decent enough for now):
|
Open HTTP link from DashCast and play MP4 file are different technologies and can have different restrictions. |
Thanks a lot! This is the only way to help! No other way! |
Same issue here on Nest Hub 2nd gen and exact same system + cast firmware |
I actually got it to work with the DashCast force option. http://LOCAL_IP:5000/live/webrtc/stream.html?src=NAM_OF_CAMERA It did show the stream for less than a minute though. |
It looks like this is rearing it's ugly head again. Webrtc dash cast not working, default dash cast screen only. This is to gen 1 chromecast, was working days ago.. |
I now have the same issue, was working perfectly until a day or so ago. Maybe the 2023.9 update broke it or maybe its just a coincidence. Everythign else casts fine from HA, dashboards, media, cameras etc only WebRTC isn't working |
@***@***.***> any thoughts? Looks like HA or the latest webrtc update broke something. But the webrtc update was 2 weeks ago and I don’t remember when I last updated.
Can you test rtsp casting using the latest Homeassistant ?
…________________________________
From: haroldboom ***@***.***>
Sent: 08 September 2023 23:43
To: AlexxIT/WebRTC ***@***.***>
Cc: atv2016 ***@***.***>; Comment ***@***.***>
Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88)
It looks like this is rearing it's ugly head again. Webrtc dash cast not working, default dash cast screen only. This is to gen 1 chromecast, was working days ago..
I have now got the same issue, was working perfectly until a day or so ago. Maybe the 2023.9 update broke it or maybe its just a coincidence. Everythign else casts fine from HA, dashboards, media, cameras etc only WebRTC isn't working
—
Reply to this email directly, view it on GitHub<#88 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEBCFUYND4W3OLNSOBOCRQLXZONQTANCNFSM46O46EAQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hi, I am casting using the following; service: webrtc.dash_cast I can open the rtsp on VLC so its working. I just updated to 2023.9.1 and still not working |
Same here. Using latest Homeassistant and restreamed frigate rtsp urls which open fine from VLC.
I’m guessing you just get the dashcast logo as well and it just sits there?
…________________________________
From: haroldboom ***@***.***>
Sent: 09 September 2023 08:58
To: AlexxIT/WebRTC ***@***.***>
Cc: atv2016 ***@***.***>; Comment ***@***.***>
Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88)
@@.> any thoughts? Looks like HA or the latest webrtc update broke something. But the webrtc update was 2 weeks ago and I don’t remember when I last updated. Can you test rtsp casting using the latest Homeassistant ?
…
________________________________ From: haroldboom @.> Sent: 08 September 2023 23:43 To: AlexxIT/WebRTC @.> Cc: atv2016 @.>; Comment @.> Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88<#88>) It looks like this is rearing it's ugly head again. Webrtc dash cast not working, default dash cast screen only. This is to gen 1 chromecast, was working days ago.. I have now got the same issue, was working perfectly until a day or so ago. Maybe the 2023.9 update broke it or maybe its just a coincidence. Everythign else casts fine from HA, dashboards, media, cameras etc only WebRTC isn't working — Reply to this email directly, view it on GitHub<#88 (comment)<#88 (comment)>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEBCFUYND4W3OLNSOBOCRQLXZONQTANCNFSM46O46EAQ. You are receiving this because you commented.Message ID: @.>
Hi, I am casting using the following;
service: webrtc.dash_cast
data:
entity_id: media_player.nesthubmax
url: rtsp://frigateip:8554/Porch_sub
I can open the rtsp on VLC so its working. I just updated to 2023.9.1 and still not working
—
Reply to this email directly, view it on GitHub<#88 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEBCFU4EQKOFVDPRRLXP6S3XZQOSPANCNFSM46O46EAQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Same. Do you remember if this happened after the webrtc update?
…________________________________
From: haroldboom ***@***.***>
Sent: 09 September 2023 09:15
To: AlexxIT/WebRTC ***@***.***>
Cc: atv2016 ***@***.***>; Comment ***@***.***>
Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88)
Yeah just sits on DashCast screen with a HA URL. Attached,
Also debug logging doesnt show anything;
2023-09-09 18:10:44.502 DEBUG (SyncWorker_0) [custom_components.webrtc.utils] DashCast to media_player.nesthubmax
2023-09-09 18:10:56.945 DEBUG (SyncWorker_9) [custom_components.webrtc.utils] DashCast to media_player.nest_hub
2023-09-09 18:11:11.572 DEBUG (SyncWorker_8) [custom_components.webrtc.utils] DashCast to media_player.living_room_tv
[unnamed]<https://user-images.githubusercontent.com/42967743/266769076-f8edf108-db07-4e18-b114-dd9cd1dec669.jpg>
—
Reply to this email directly, view it on GitHub<#88 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEBCFU3BC3NEGE6DBIYGHVDXZQQSTANCNFSM46O46EAQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I think that was 2 weeks ago? It has only stopped working today or
yesterday.
Also when I type in the url listed at the bottom of the screen into my laptop browser I just get a video media player that is stuck loading and never plays.
…On Sat, 9 Sep 2023 at 19:17, atv2016 ***@***.***> wrote:
Same. Do you remember if this happened after the webrtc update?
________________________________
From: haroldboom ***@***.***>
Sent: 09 September 2023 09:15
To: AlexxIT/WebRTC ***@***.***>
Cc: atv2016 ***@***.***>; Comment ***@***.***>
Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88)
Yeah just sits on DashCast screen with a HA URL. Attached,
Also debug logging doesnt show anything;
2023-09-09 18:10:44.502 DEBUG (SyncWorker_0)
[custom_components.webrtc.utils] DashCast to media_player.nesthubmax
2023-09-09 18:10:56.945 DEBUG (SyncWorker_9)
[custom_components.webrtc.utils] DashCast to media_player.nest_hub
2023-09-09 18:11:11.572 DEBUG (SyncWorker_8)
[custom_components.webrtc.utils] DashCast to media_player.living_room_tv
[unnamed]<
https://user-images.githubusercontent.com/42967743/266769076-f8edf108-db07-4e18-b114-dd9cd1dec669.jpg>
—
Reply to this email directly, view it on GitHub<
#88 (comment)>, or
unsubscribe<
https://github.com/notifications/unsubscribe-auth/AEBCFU3BC3NEGE6DBIYGHVDXZQQSTANCNFSM46O46EAQ>.
You are receiving this because you commented.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub
<#88 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKH2FPZXZWLV26JUJP2OTSTXZQX4PANCNFSM46O46EAQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
You can try to add force option. Latest version supports it |
Tried the force option and still no good. Something isn't right with the embedded URL because it wont open even on my laptop browser (chrome) |
This url can be opened only once. |
Ah ok, I am stumped then. Nothing has changed on my network. Is there
anything else that could help narrow it down?
…On Sat, 9 Sep 2023 at 21:21, Alex X ***@***.***> wrote:
This url can be opened only once.
—
Reply to this email directly, view it on GitHub
<#88 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKH2FP2YNEHJ63S4RXQRLOTXZRGNFANCNFSM46O46EAQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It can only be webrtc or HA, as the RTSP streams themselves work fine.
@***@***.***> Does it work for you still? can you still cast RTSP streams to a chromecast (or any device) ?
Many thanks for your help.
This is a big thing to not have as a lot of automations runs on having RTSP streams casted (Frigate birdseye CCTV for one, but also loads of others).
________________________________
From: haroldboom ***@***.***>
Sent: 09 September 2023 12:27
To: AlexxIT/WebRTC ***@***.***>
Cc: atv2016 ***@***.***>; Comment ***@***.***>
Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88)
Ah ok, I am stumped then. Nothing has changed on my network. Is there
anything else that could help narrow it down?
On Sat, 9 Sep 2023 at 21:21, Alex X ***@***.***> wrote:
This url can be opened only once.
—
Reply to this email directly, view it on GitHub
<#88 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKH2FP2YNEHJ63S4RXQRLOTXZRGNFANCNFSM46O46EAQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
—
Reply to this email directly, view it on GitHub<#88 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEBCFU7ITT4U5NG4M27ZGCLXZRHC7ANCNFSM46O46EAQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I added the RTSP feed as a generic camera integration and I’m casting that to my Nest as a work around but it sucks. Like 5 second delay |
@haroldboom yeah don't do that. Use the force option (make sure to set it to true) that works for me.
…________________________________
From: haroldboom ***@***.***>
Sent: 10 September 2023 03:29
To: AlexxIT/WebRTC ***@***.***>
Cc: atv2016 ***@***.***>; Comment ***@***.***>
Subject: Re: [AlexxIT/WebRTC] Cannot stream with DashCast (#88)
I added the RTSP feed as a generic camera integration and I’m casting that to my Nest as a work around but it sucks. Like 5 second delay
—
Reply to this email directly, view it on GitHub<#88 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEBCFU33MLNJ5HZNCKP4VGTXZUQZVANCNFSM46O46EAQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
@atv2016 ah far out thanks mate, I used the GUI option to force but when I checked the yaml it wasn't there, working again now! @AlexxIT Hey Alex thanks for you help, the issue was fixed by the force option but I had to write it into the yaml, the GUI checkbox option in the automation didnt work (it was still checked) but nothing in the yaml. Setting my yaml to below worked.
Thanks again for a great integration |
This works good to me, thank you |
Unfortunately i've got a black screen here too on my Nest Hub first gen. It shows MSE on the top right corner. but after that, black screen, nothing more... |
Also getting just a black screen on my Nest Hub 2 with player controls. Widget works fine and latency is below a second on dashboard... |
Using Reolink but just read that the Nest hub doesn't support the clear (2.5K) resolution :D |
When I attempt to stream with
WebRTC Camera: DashCast
, the Google Home Display comes up with the DashCast logo and then just goes to a blank black screen. I enabled debug logging, but the only message generated is:DEBUG (SyncWorker_6) [custom_components.webrtc.utils] DashCast to media_player.office_display
.I've attempted to cast to a Nest Home Display as well as an nVidia Shield; both act the same. I can cast to these device using the native Home Assistant camera devices through the cloud Google Assistant path, and casting other pages using DashCast seems to be working.
I've tested using my own RTSP feed as well as the Big Buck Bunny version and neither work.
Is there any other debugging that I can do to figure out why I'm not able to cast an RTSP stream using
WebRTC Camera: DashCast
?The text was updated successfully, but these errors were encountered: