Skip to content

Commit

Permalink
fix: only hls
Browse files Browse the repository at this point in the history
  • Loading branch information
pushpush committed Jun 8, 2022
1 parent 0aa0da7 commit 7184b86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ function ReactNativeKinescopeVideo(
};

const getSource = () => {
if (Platform.OS === 'ios') {
return {uri: manifest.hlsLink, type: 'm3u8'};
if (Platform.OS === 'android' && manifest.dashLink) {
return {uri: manifest.dashLink, type: 'mpd'};
}
return {uri: manifest.dashLink, type: 'mpd'};
return {uri: manifest.hlsLink, type: 'm3u8'};
};

return (
Expand Down

0 comments on commit 7184b86

Please sign in to comment.