feat(android): replace deprecated ExoPlayer2 with AndroidX media3 (#3337)
* feat(android): implement AndroidX media3 dependencies * refactor(android): remove duplicate code * refactor(android): remove unused codes * feat(android): replace ExoPlayer2 with AndroidX media3 * fix(android): move default properties to gradle.properties * revert(android): prevent security exception * chore: align indent * chore: remove redundant comments * chore: reorder import * fix: apply media3's legacy player control view
This commit is contained in:
@@ -30,7 +30,7 @@ public class ReactVideoPackage implements ReactPackage {
|
||||
|
||||
modules.add(new VideoDecoderPropertiesModule(reactContext));
|
||||
modules.add(new VideoManagerModule(reactContext));
|
||||
|
||||
|
||||
return modules;
|
||||
}
|
||||
|
||||
|
@@ -11,12 +11,16 @@ import com.facebook.react.bridge.ReactMethod;
|
||||
import com.facebook.react.uimanager.UIManagerModule;
|
||||
|
||||
public class VideoManagerModule extends ReactContextBaseJavaModule {
|
||||
ReactApplicationContext reactContext;
|
||||
private static final String REACT_CLASS = "VideoManager";
|
||||
|
||||
public VideoManagerModule(ReactApplicationContext reactContext) {
|
||||
super(reactContext);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public String getName() {
|
||||
return "VideoManager";
|
||||
return REACT_CLASS;
|
||||
}
|
||||
|
||||
@ReactMethod
|
||||
@@ -31,9 +35,4 @@ public class VideoManagerModule extends ReactContextBaseJavaModule {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public VideoManagerModule(ReactApplicationContext reactContext) {
|
||||
super(reactContext);
|
||||
this.reactContext = reactContext;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user