mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 16:33:26 +00:00
chore: cleanup
This commit is contained in:
@@ -256,28 +256,6 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({ data }) => {
|
||||
// language: string;
|
||||
// }
|
||||
|
||||
// const captionTypeToTextTracksType = {
|
||||
// srt: TextTracksType.SUBRIP,
|
||||
// vtt: TextTracksType.VTT,
|
||||
// };
|
||||
|
||||
// function convertCaptionsToTextTracks(captions: Caption[]): TextTracks {
|
||||
// return captions
|
||||
// .map((caption) => {
|
||||
// if (Platform.OS === "ios" && caption.type !== "vtt") {
|
||||
// return null;
|
||||
// }
|
||||
|
||||
// return {
|
||||
// title: caption.language,
|
||||
// language: caption.language as ISO639_1,
|
||||
// type: captionTypeToTextTracksType[caption.type],
|
||||
// uri: caption.url,
|
||||
// };
|
||||
// })
|
||||
// .filter(Boolean) as TextTracks;
|
||||
// }
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
video: {
|
||||
position: "absolute",
|
||||
|
Reference in New Issue
Block a user