-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video
v2
#2653
Comments
Suggestion. What about support for subtitles. Like a .vtt file? I found this example in the repository of media_kit. Maybe it can help :D. Basic examples <!DOCTYPE html>
<html>
<head>
<title>Vídeo com Legendas</title>
</head>
<body>
<video controls>
<source src="video.m3u8" type="application/x-mpegURL">
<track src="legendas.vtt" kind="subtitles" srclang="pt" label="Português">
Seu navegador não suporta o elemento de vídeo.
</video>
</body>
</html> react native import React from 'react';
import { View, Text } from 'react-native';
import Video from 'react-native-video';
const App = () => {
return (
<View>
<Video
source={{ uri: 'https://example.com/video.m3u8' }}
style={{ width: 300, height: 300 }}
controls
autoplay
/>
<Text>Legendas</Text>
<Video
source={{ uri: 'https://example.com/legendas.vtt' }}
style={{ width: 0, height: 0 }}
textTracks={[
{
title: 'Português',
language: 'pt',
type: 'text/vtt',
uri: 'https://example.com/legendas.vtt',
},
]}
selectedTextTrack={{ type: 'language', value: 'pt' }}
/>
</View>
);
};
export default App; |
Suggestion. Support for pause when clicking directly on the video. I'm using the web version of flet. If I want to play/pause the video I have to click directly on the play button(located at the bottom left of the video). Would be great to have the option to click play/pause. |
@bobwatcherx concerning your request, I added @dhelbegor I added the possibility to configure video subtitles (local asset file and url). Hope it helps... |
Thank you very much :D |
why this still not work
code
|
The related PR hasn't yet been merged. |
show_controls
Boolean propThe text was updated successfully, but these errors were encountered: