protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); VideoPlayerRenderer.Init(this); setupSharedPreferences(); LoadApplication(new App()); }
public async Task <IVideoLengthExtractor> CreateVideoDecoder(IReadSeekStreamFactory file, string mime, long suggestedLength) { return(new VideoLengthExtractor(await VideoPlayerRenderer.GetVideoStream(file), mime, suggestedLength)); }