luxluth / ass-html5 Goto Github PK
View Code? Open in Web Editor NEWDisplay ASS/SSA subtitles for html video
Home Page: https://asshtml5.com/
License: MIT License
Display ASS/SSA subtitles for html video
Home Page: https://asshtml5.com/
License: MIT License
Is it normal for the subtitles to be hidden when you go into full screen mode?
my code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ass.min.js"></script>
</head>
<body>
<video id="my-video" controls preload="auto" width="1280" height="720">
<source src="mp4/file.mp4" type="video/mp4" />
</video>
<script>
document.addEventListener('DOMContentLoaded', async () => {
let res = await fetch('legenda/1.ass');
let assSubs = await res.text();
var player = document.getElementById('my-video');
player.addEventListener('loadedmetadata', async () => {
const ass = new ASS({
assText: assSubs,
video: player
});
await ass.init();
});
});
</script>
</body>
</html>
Would it be possible to pull ass subtitles from that directory as well or would need to be hosted separately no matter what?
Awesome Project and hope it continues the progress . im currently bulk encoding to HLS and hosting in IPFS so having everything pull from the HLS index file would be amazing if at all possible
With the recent restructuration changes in the dev branch, the dialogue are not right
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.