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

Allow to set media element options via mediaElementAttributes option #14

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ShiiRochi
Copy link

@ShiiRochi ShiiRochi commented Feb 5, 2021

Hi! In this PR, I've added mediaElementAttributes option. Inside createMediaView, hope to correctly reference to it, mediaElementAttributes is queried and is used to setAttributes to a newly created media element.

// Example in react component
<Uploader mediaElementAttributes={{ controls: false }} /> // in case if controls shouldn't be shown

@ShiiRochi ShiiRochi changed the title allow to set media element options via mediaElementAttributes option Allow to set media element options via mediaElementAttributes option Feb 5, 2021
@ShiiRochi
Copy link
Author

The idea of that PR has come to me after I've implemented video upload on a project I'm working on now, where I want to hide controls, as soon as they are duplicating already existing video previewing functionality.

@ShiiRochi ShiiRochi force-pushed the video-element-attributes branch from 9c62697 to 82df148 Compare June 24, 2022 13:38
@ShiiRochi ShiiRochi force-pushed the video-element-attributes branch from b945fb3 to 206fb88 Compare June 24, 2022 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant