GithubHelp home page GithubHelp logo

wangdingchun / srt-reader-java Goto Github PK

View Code? Open in Web Editor NEW
29.0 5.0 10.0 180 KB

Srt字幕文件的解析,支持多行解析,支持播放器是时间轴对应,读取的时间复杂度低

Java 100.00%

srt-reader-java's Introduction

srt-reader-java

Srt字幕文件的解析,支持多行解析,支持播放器是时间轴对应,读取的时间复杂度低


Srt字幕文件的解析

  • 支持所有的文件格式的解析
  • 支持Srt多行字幕的解析
  • 加载字幕方式:通过TreeMap的数据结构去读取字幕文件,时间复杂度O(1)
  • 可以结合播放器,去读取每一秒对应的字幕

包结构

  • Main.java 为测试的调用类
  • PlayerSubTitleProxy 为代理类,注册一个监听器,如果加载成功则为字幕文件正确
  • TuziSubTitleInfoTreeMap 为核心数据结构
  • SRTReader 为读取类,用于去读取字幕文件

srt-reader-java's People

Contributors

wangdingchun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.