Buscar pacotes, repositórios e categorias de apps

Detalhes do pacotev2.2.1

subtitle_wrapper_package

Um pacote de envoltório de legendas, este pacote de envoltório de legendas exibe legendas para um player de vídeo.

AndroidiOSmacOS
Downloads em 30 dias
859
Curtidas
79
Pontos Pub
140

Instalar pacote

flutter pub add subtitle_wrapper_package

Visão geral do pacote

Orientação gerada a partir de informações públicas. Apenas para referência.

O subtitle_wrapper_package é um plugin do Flutter projetado para exibir legendas em reprodutores de vídeo. Integra-se perfeitamente às capacidades de reprodução de vídeo do Flutter, permitindo que desenvolvedores renderizem sobreposições de texto com tempo sincronizado com o conteúdo de vídeo. O pacote suporta múltiplos formatos de legenda e fornece uma interface limpa e personalizável para exibição de legendas. Projetado para uso multiplataforma, funciona no Android, iOS e macOS, tornando-se ideal para aplicações multimídia que exigem renderização acessível e precisa de legendas.

Casos de uso

  • Reprodução de vídeo com legendas
  • Aplicativos de vídeo multilíngues
  • Recursos de acessibilidade em players de mídia
  • Plataformas de vídeo educacional
  • Transmissão ao vivo com legendas

Principais recursos

  • Sincronização de legenda com tempo
  • Suporte a vários formatos de legenda
  • Compatibilidade multiplataforma
  • Estilo de legenda personalizável
  • Integração fácil com players de vídeo

Indicado para

  • Desenvolvedores construindo aplicativos de vídeo
  • Aplicativos que exigem suporte de acessibilidade
  • Plataformas educacionais ou de aprendizagem de idiomas
  • Serviços de streaming de mídia

Considerações

  • Requer configuração de player de vídeo compatível
  • O formato de arquivo de legenda deve ser compatível
  • Limitado à renderização básica de legendas sem edição avançada

README original

Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.

subtitle_wrapper_package

Test and (dry-run) publish package

codecov licence

Features

Subtitle playback for the 2 most widely used subtitle formats are supported currently which can be dynamically updated during playback from a url of content string. As well as basic styling of the subtitle text item.

The package is nearly completely unit tested and widget tests are in progress.

Function Description Implemented
Parse WebVTT Parsing of WebVtt subtitles. ✔
Parse SubRip (.srt) Parsing of SubRip subtitles. ✔
Remote loading utf8 encoded subtitles The parsing of subtitle files with the utf8 encoding from an url. ✔
Remote loading latin1 encoded subtitles The parsing of subtitle files with the latin1 encoding from an url. ✔
Dynamic updating of subtitle Update subtitle content during playback. ✔
Standard subtitle styling Standard styling of subtitle items. ✔
Advance subtitle styling Advance styling of subtitle items. Like custom fonts. ✔

Installation

The basic setup of the package is really straight forward, create a instance of SubtitleController with a subtitleUrl or subtitlesContent depending if your resource is remote or local.

Unfortunately currently its required to specify the subtitle type so webvtt or srt .

After this you need to wrap your video player with the SubTitleWrapper and add the SubtitleController and videoPlayerController to the SubTitleWrapper . That's it :tada:

 final SubtitleController subtitleController = SubtitleController(
    subtitleUrl: "https://pastebin.com/raw/ZWWAL7fK",
    subtitleType: SubtitleType.webvtt,
  );
  
 SubtitleWrapper(
       videoPlayerController: videoPlayerController,
       subtitleController: subtitleController,
       subtitleStyle: SubtitleStyle(
         textColor: Colors.white,
         hasBorder: true,
       ),
       videoChild: Chewie(
         controller: chewieController,
       ),
	),

Example

Demonstrates how to use the subtitle_wrapper_package plugin.

See the example documentation for more information.

Changelog

See CHANGELOG.md.

Contributing

Feel free to contribute by opening issues and/or pull requests. Your feedback is very welcome!

License

MIT License

Copyright (c) [2019] [Joran Dob]

Categorias

Dependências

Lista de dependências 6 itens

Repositório-fonte

Projetos que usam este pacote

Ainda não há dados.