diff --git a/examples/basic/android/app/build.gradle b/examples/basic/android/app/build.gradle index fa4d074b..8d8826d0 100644 --- a/examples/basic/android/app/build.gradle +++ b/examples/basic/android/app/build.gradle @@ -83,8 +83,10 @@ android { namespace "com.videoplayer" compileOptions { - // These options are necessary to be able to build fro source - coreLibraryDesugaringEnabled true + // These options are necessary to be able to build from source + // coreLibraryDesugaringEnabled is mandatory to be able to build exoplayer from source + // uncomment this line if you want to build from source + // coreLibraryDesugaringEnabled true sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } diff --git a/examples/basic/src/VideoPlayer.tsx b/examples/basic/src/VideoPlayer.tsx index 76d7c65c..b67af9cd 100644 --- a/examples/basic/src/VideoPlayer.tsx +++ b/examples/basic/src/VideoPlayer.tsx @@ -26,7 +26,6 @@ import Video, { type OnPlaybackRateChangeData, type OnVideoTracksData, type ReactVideoSource, - type TextTracks, type VideoTrack, type SelectedTrack, type SelectedVideoTrack, @@ -37,13 +36,6 @@ import {type AdditionalSourceInfo} from './types'; import {bufferConfig, srcList, textTracksSelectionBy} from './constants'; import {Overlay, toast} from './components'; -type AdditionnalSourceInfo = { - textTracks: TextTracks; - adTagUrl: string; - description: string; - noView: boolean; -}; - type Props = NonNullable; const VideoPlayer: FC = ({}) => {