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) <video> <audio> elements #41

Open
saif-o99 opened this issue Feb 28, 2024 · 3 comments
Open

(feature) <video> <audio> elements #41

saif-o99 opened this issue Feb 28, 2024 · 3 comments
Labels
feature Feature or technical request

Comments

@saif-o99
Copy link

Describe the feature request

Support the video element & audio element. These elements are not currently supported on native.

@necolas necolas changed the title ( feature ) <video> <audio> elements (feature) <video> <audio> elements Feb 28, 2024
@necolas
Copy link
Contributor

necolas commented Feb 28, 2024

This would need more details on the use case. Typically apps will use media players that are self-contained, complex UI components (e.g. YouTube player) on every platform. It's unlikely we'd prioritize this above APIs already identified in the compatibility table, but more details would be useful. For example, I know Expo has xplat modules for media players, and the faster path forward might be for those components to get a web-compatible API so this project can take them on as a dependency.

@nmn
Copy link
Contributor

nmn commented Feb 29, 2024

I think it's useful to decide the subset of the API that we might want for <audio> and <video>. For example, it might make sense to have the capability, but not to support "controls" on native (which renders default controls on web).

IMO, the subset that makes sense to me for <video> is:

  • <source> children to set possible sources along with MIME types for formats
  • Styling for layout
  • imperative APIs to play/pause/seek and set playback speed

@saif-o99
Copy link
Author

for my case a chat application that has messages, audio recordings, audio files, video files. and many more types of messages.
so when i was using <audio> on the website. now on the mobile i've to install a package to play sound, like react-native-sound.

I understand these two tags won't be easy to implement. but anyway i added an issue here to know your opinon for the possability.
Thanks

@necolas necolas added the feature Feature or technical request label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature or technical request
Projects
None yet
Development

No branches or pull requests

3 participants