diff --git a/examples/basic/src/VideoPlayer.android.tsx b/examples/basic/src/VideoPlayer.android.tsx
index 0ca36fb6..d8aa3b0d 100644
--- a/examples/basic/src/VideoPlayer.android.tsx
+++ b/examples/basic/src/VideoPlayer.android.tsx
@@ -79,8 +79,8 @@ class VideoPlayer extends Component {
onLoad = (data: any) => {
this.setState({ duration: data.duration, loading: false, });
- this.onAudioTracks(data.audioTracks)
- this.onTextTracks(data.textTracks)
+ this.onAudioTracks(data)
+ this.onTextTracks(data)
};
onProgress = (data: any) => {
@@ -103,7 +103,7 @@ class VideoPlayer extends Component {
return x.selected
})
this.setState({
- audioTracks: data,
+ audioTracks: data.audioTracks,
})
if (selectedTrack?.language) {
this.setState({
@@ -122,7 +122,7 @@ class VideoPlayer extends Component {
})
this.setState({
- textTracks: data,
+ textTracks: data.textTracks,
})
if (selectedTrack?.language) {
this.setState({
@@ -622,7 +622,7 @@ class VideoPlayer extends Component {
>
- {this.state.textTracks.map((track) => (
+ {this.state.textTracks?.map?.((track) => (