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

video component doesnt support media events #2182

Closed
daniellewissc opened this issue Sep 11, 2014 · 7 comments
Closed

video component doesnt support media events #2182

daniellewissc opened this issue Sep 11, 2014 · 7 comments

Comments

@daniellewissc
Copy link

for what media events there a good place might be http://www.w3schools.com/tags/ref_eventattributes.asp under media events.

In particular events like oncanplay, oncanplaythrough, and ondurationchange.

@daniellewissc
Copy link
Author

just a note, it seems that most if not all media events dont bubble

@syranide
Copy link
Contributor

Kind of related #2094

@yocontra
Copy link
Contributor

Yep - audio and video components are essentially unsupported in react. You will need to grab the DOM node and do everything manually. I haven't been able to get anyone to care about this oversight and it doesn't look like it will be fixed anytime soon

@syranide
Copy link
Contributor

@contra If you someone cares enough to submit a PR it will surely be accepted. :) The React team is currently more focused on getting React core stable I would say, most DOM fixes are by the community AFAIK. I could look into it some time but I've been busy elsewhere lately.

@daniellewissc
Copy link
Author

No worries, it isn't as big of an issue as I originally thought once I
realized I could just set my own listeners on componentDidMount and remove
on componentWillUnmount. Keep up the good work.

On Thursday, February 26, 2015, Andreas Svensson notifications@github.com
wrote:

@contra https://github.com/contra If you someone cares enough to submit
a PR it will surely be accepted. :) The React team is currently more
focused on getting React core stable I would say, most DOM fixes are by the
community AFAIK. I could look into it some time but I've been busy
elsewhere lately.


Reply to this email directly or view it on GitHub
#2182 (comment).

@singh1469
Copy link

Just came across this thread. Audio & Video components are now supported.
See here:
https://facebook.github.io/react/docs/events.html

@zpao
Copy link
Member

zpao commented Oct 23, 2015

Yes, these were added in 0.14.

@zpao zpao closed this as completed Oct 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants