Youtube like video track selection

1. Loaded event will give the information about available video tracks
2. selectedVideoTrack prop will give the interface to select the video track. This prop will take the height of the video (Similar to youtube like 144p, 350p etc) and set the video track. If height is 0 then all video tracks will be added to list so that it will work like 'Auto' in youtube
This commit is contained in:
sridhar
2018-08-24 15:33:46 +05:30
parent 7dc9e85793
commit 16688cef0f
5 changed files with 129 additions and 19 deletions

View File

@@ -17,11 +17,6 @@ public class ReactVideoPackage implements ReactPackage {
return Collections.emptyList();
}
// Deprecated RN 0.47
public List<Class<? extends JavaScriptModule>> createJSModules() {
return Collections.emptyList();
}
@Override
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
return Collections.<ViewManager>singletonList(new ReactExoplayerViewManager());