-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Added stereoPan property to allow audio panning #1051
Added stereoPan property to allow audio panning #1051
Conversation
I'm not very acquainted with media jargon so |
Very neat concept, what are you using this for you if you don't mind my asking. I would call it joint or stereo, that's the term they use in mp3s. Rather than making this a binary choice of left or right, what about allowing you to choose a balance: |
@cobarx I'm planning on using in on an app that performs hearing tests. So we need to identify some level of hearing loss on each ear. Maybe instead of I think this way its easier to use What do you think? |
That's a neat application. Yeah I like your idea, one prop is definitely better than two. I wonder if we should call it stereoPan to distinguish from other pan related terms like the PanResponder. |
Cool. This weekend I will setup an |
@cobarx I will limit this PR just for Android. Setting up an |
@rafaelrpinto That's great! I checked and ExoPlayer doesn't support changing the volume per channel yet: I have the iOS dev environment setup, but that property only exists on the AVAudioPlayer, but not a generic AVPlayer that plays video. So I think we'll have to push that down the road. |
600f77a
to
982019f
Compare
@cobarx |
Tested and it's working great! Merging. Thanks for making the changes and adding the docs. |
Thanks! |
This PR adds the
channel
property toVideo
that allows playing the audio on the left channel, right channel or both (default).I only added the behavior for Android. Since I use linux I'm not able to implement the IOS part but should be a similar logic using the pan property
Related issue: #1050
Update: see the comments below to check the final solution