replaced channel with stereoPan attribute

This commit is contained in:
Rafael Pinto
2018-06-05 23:04:20 +01:00
parent 68dd2a72ba
commit 00fe87a2ab
6 changed files with 30 additions and 22 deletions

View File

@@ -650,9 +650,9 @@ class ReactExoplayerView extends FrameLayout implements
}
}
public void setChannel(String channel) {
public void setStereoPan(float stereoPan) {
if (player != null) {
player.setChannel(channel);
player.setStereoPan(stereoPan);
}
}

View File

@@ -132,9 +132,9 @@ public class ReactExoplayerViewManager extends ViewGroupManager<ReactExoplayerVi
videoView.setVolumeModifier(volume);
}
@ReactProp(name = PROP_CHANNEL)
public void setChannel(final ReactExoplayerView videoView, final String channel) {
videoView.setChannel(channel);
@ReactProp(name = PROP_STEREO_PAN)
public void setStereoPan(final ReactExoplayerView videoView, final float stereoPan) {
videoView.setStereoPan(stereoPan);
}
@ReactProp(name = PROP_PROGRESS_UPDATE_INTERVAL, defaultFloat = 250.0f)