Skip to content
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

[Question] [Home assistant] Disable player control? Go2rtc frame.jpg as poster? #695

Open
kizovinh opened this issue May 2, 2024 · 8 comments
Labels
question Further information is requested

Comments

@kizovinh
Copy link

kizovinh commented May 2, 2024

My goal is create a live stream dashboard which is most reliable as possible for live viewing purpose only. Anytime opening the dashboard, I want to see the image immediately whatever it is live image or static image of that camera!

I have 6 cameras in a lovelace dashboard, when I open the dashboard, it show 6 black screen with loading circle, after some time camera shows up along with play/pause and some button. How can I disable all of this? I just want to see the image only.

Then I use the go2rtc frame.jpeg snapshot as the poster, but even when the link work fine (I can open another tab and see the picture), it is still black screen when the camera is loading.

@AlexxIT AlexxIT added the question Further information is requested label May 3, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented May 3, 2024

I didn't really understand what was going on in the last paragraph

@kizovinh
Copy link
Author

kizovinh commented May 3, 2024

I didn't really understand what was going on in the last paragraph

in the custom:webrtc-card, there is option for poster, which is the still image showing when the camera is loading. I used MJPEG snapshot, hope it will fetch the image and show it on the card while the camera is loading, but it show a black screen instead.

Sorry for my bad English.

@AlexxIT
Copy link
Owner

AlexxIT commented May 3, 2024

Well. Your question about the snapshot not working.
Show link to shapshot and go2rtc config for this link.

@kizovinh
Copy link
Author

kizovinh commented May 3, 2024

Well. Your question about the snapshot not working. Show link to shapshot and go2rtc config for this link.

I didn't add any config for go2rtc. Currently I am using ezviz integration and add camera there. Then I use webrtc-card with these ezviz camera entity so it auto create these camera on go2rtc webui. Then I use this link http://192.168.68.104:1984/api/frame.jpeg?src=camera.ezviz_camera to get the snapshot.

This link usually work fine when I open it on any browser. But when I use it as the still image for the card, it shows black screen

@AlexxIT
Copy link
Owner

AlexxIT commented May 3, 2024

Go2rtc don't have actual link to your stream.

When you using WebRTC card with entity as source - actual stream link updated on each stream start.

When you using go2rtc API directly - there is no guarantee that link is ok.

@kizovinh
Copy link
Author

kizovinh commented May 3, 2024

Go2rtc don't have actual link to your stream.

When you using WebRTC card with entity as source - actual stream link updated on each stream start.

When you using go2rtc API directly - there is no guarantee that link is ok.

Thank you, this info helps a lot, however because of the camera connection, and the mjpeg snapshot from go2rtc can't work with external network, so I decide to create an automation to get the snapshot each 3 mins and save to local file and use it as still image.

So what about disable the video player control, is it possible?

@kizovinh
Copy link
Author

kizovinh commented May 4, 2024

IMG_8284
For example in this screen shot, while loading, I want to disable the big "play" button. Loading status on the top right corner is sufficient enough

@AlexxIT
Copy link
Owner

AlexxIT commented May 5, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants