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

fix: respect media priorities #170

Merged
merged 3 commits into from
Dec 13, 2019
Merged

fix: respect media priorities #170

merged 3 commits into from
Dec 13, 2019

Conversation

Kikobeats
Copy link
Member

@Kikobeats Kikobeats commented Dec 12, 2019

This PR fix a little bug related to media order that isn't been respected.

Now, if the payload includes video and audio, the media mounted will be the first appeared at media.

let isVideo = false
let isAudio = false

if (!isNil(audio) && preferMedia(props.media) === 'audio') {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg, this is the only real change

@Kikobeats Kikobeats merged commit 5de299c into master Dec 13, 2019
@Kikobeats Kikobeats deleted the prefer-media branch December 13, 2019 10:49
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.

None yet

1 participant