패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.2.1

subtitle_wrapper_package

자막 래퍼 패키지입니다. 이 자막 래퍼 패키지는 비디오 플레이어용 자막을 표시합니다.

AndroidiOSmacOS
30일 다운로드
859
좋아요
79
Pub 점수
140

패키지 설치

flutter pub add subtitle_wrapper_package

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

subtitle_wrapper_package는 비디오 플레이어용 자막을 표시하기 위해 설계된 Flutter 플러그인입니다. Flutter의 비디오 재생 기능과 원활하게 통합되어 개발자가 비디오 콘텐츠와 동기화된 타임 텍스트 오버레이를 렌더링할 수 있도록 합니다. 여러 자막 형식을 지원하며, 자막을 표시하기 위한 깔끔하고 사용자 정의 가능한 인터페이스를 제공합니다. 크로스플랫폼 사용을 위해 제작되었으며, Android, iOS, macOS에서 작동하여 접근성 있고 정확한 자막 렌더링이 필요한 멀티미디어 애플리케이션에 이상적입니다.

사용 사례

  • 자막이 포함된 비디오 재생
  • 다국어 비디오 앱
  • 미디어 플레이어의 접근성 기능
  • 교육 비디오 플랫폼
  • 자막이 있는 라이브 스트리밍

주요 기능

  • 타이머 자막 동기화
  • 여러 자막 형식 지원
  • 크로스 플랫폼 호환성
  • 사용자 정의 자막 스타일
  • 비디오 플레이어와의 간편한 통합

적합한 대상

  • 비디오 앱을 개발하는 개발자
  • 접근성 지원이 필요한 앱
  • 교육 또는 언어 학습 플랫폼
  • 미디어 스트리밍 서비스

고려 사항

  • 호환되는 비디오 플레이어 설정이 필요합니다
  • 자막 파일 형식은 지원되어야 합니다
  • 고급 편집 없이 기본 자막 렌더링에 제한됨

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

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]

카테고리

의존성

의존성 목록 6 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.