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

Feature detection #24

Closed
4 of 6 tasks
antoinechalifour opened this issue Apr 18, 2020 · 0 comments
Closed
4 of 6 tasks

Feature detection #24

antoinechalifour opened this issue Apr 18, 2020 · 0 comments
Projects

Comments

@antoinechalifour
Copy link
Owner

antoinechalifour commented Apr 18, 2020

WebRTC

  • Use window.RTCConnection to detect whether WebRTC is available
  • Redirect to an error page when the browser does not support WebRTC

Clipboard API

Clipboard API is part of progressive enhancement

  • Use navigator.clipboard to detech whether the clipboard API is available
  • Hide the "share button" when this feature is not supported

Picture in Picture

PinP is part of progressive enhancement.

  • Use document.pictureInPictureEnabled to detect whether picture in picture can be used
  • Hide the picture in picture button when PinP is not supported
@antoinechalifour antoinechalifour created this issue from a note in Backlog (To do) Apr 18, 2020
@antoinechalifour antoinechalifour moved this from To do to In progress in Backlog Apr 19, 2020
@antoinechalifour antoinechalifour moved this from In progress to Done in Backlog Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Backlog
  
Done
Development

No branches or pull requests

1 participant