-
Notifications
You must be signed in to change notification settings - Fork 347
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
Track camera feed views and display offline status #6408
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Passing run #1379 ↗︎Details:
Review all test suite changes for PR #6408 ↗︎ |
LGTM |
@Ashesh3 We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌. |
WHAT
🤖 Generated by Copilot at c1fc396
This pull request enhances the video stream feature in the
Feed
component and adds error handling for the WebSocket connection in theuseMSEMediaPlayer
hook. It improves the user experience, the analytics, and the reliability of the video stream.Display offline status for broken feed
![image](https://private-user-images.githubusercontent.com/3626859/273136141-af5f924a-ffe9-46b8-8c2b-46fb362ac6b5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2NDk3MjEsIm5iZiI6MTcyMDY0OTQyMSwicGF0aCI6Ii8zNjI2ODU5LzI3MzEzNjE0MS1hZjVmOTI0YS1mZmU5LTQ2YjgtOGMyYi00NmZiMzYyYWM2YjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTBUMjIxMDIxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2JmMDQxNGJkNmRmMzI1YTUyNTJkODJmZDA1NDQyNTFjZGJlNjFlOTRiMTU5NDQ1ZTg0M2FjYmI5MDk2YmU2YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.omcLEUE3T4hVOvHVwVhAyXRKQ0dfIMcGbssjDbXw3Jg)
Capture the camera feed view stats for analytics.
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
HOW
🤖 Generated by Copilot at c1fc396
useMSEMediaPlayer
hook (link)Spinner
component to show loading animation inFeed
component (link, link)statusReported
state to track and prevent duplicate reporting of stream status to analytics service inFeed
component (link, link)Feed
component to avoid loading flicker, report status with additional parameters, and handle reconnection attempts (link)