Srt字幕文件的解析,支持多行解析,支持播放器是时间轴对应,读取的时间复杂度低
- 支持所有的文件格式的解析
- 支持Srt多行字幕的解析
- 加载字幕方式:通过TreeMap的数据结构去读取字幕文件,时间复杂度O(1)
- 可以结合播放器,去读取每一秒对应的字幕
- Main.java 为测试的调用类
- PlayerSubTitleProxy 为代理类,注册一个监听器,如果加载成功则为字幕文件正确
- TuziSubTitleInfoTreeMap 为核心数据结构
- SRTReader 为读取类,用于去读取字幕文件
Srt字幕文件的解析,支持多行解析,支持播放器是时间轴对应,读取的时间复杂度低
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.