Giter Club home page Giter Club logo

html5-ass-subtitles's Introduction

This pack of javascripts require a HTML5 capable browser to work with the <video> tag. 
I have no intention of supporting .SRT as of this point,  as there is a sufficient 
working library for this around. (jquery-srt.js)

Tested browsers:
	* Google Chrome
		* If you use Google Chrome 11 and experience lags and weird subs blinking 
		  around on the screen, please switch to the Beta or Dev channel instead.
		* Google Chrome and Chromium can't streaming OGG-Theora streams. 
		  It'll have to finish loading first before it display the video.
	* Firefox 3
	* Firefox 4		

CSS2 as well as CSS3 don't provide any commands to scale text and letters
	* affected tags: 
		* \fscx
		* \fscy
		
Commands depending on timers or similar constructs ain't implemented yet. 
	* affected tags: 
		* \t
		* \fad
		* \move

Currently these inline ass tags are known to be working: (apply to the whole line)
	* \pos
		* doesn't take \an into account yet!
	* \be
		* doesn't take original style's border or shadow in account!
	* \1c | \c
	* \3c 
		* only hacky-slashy with text-shadow for non-webkit browsers
	* \b0 | \b1
	* \u0 | \u1
	* \s0 | \s1
	* \i0 | \i1

Some code taken from: 
	* http://blog.illyism.com/html5-video-subtitles-experiment/
		- Basically I took some of the base code from there, 
		  for example parts of the timeupdate() function
	* http://stackoverflow.com/questions/646628/javascript-startswith
		- Some helper functions (startsWith)
	* http://binnyva.blogspot.com/2005/10/dump-function-javascript-equivalent-of.html
		- dump() for debugging purposes.

html5-ass-subtitles's People

Contributors

kuhnchris avatar

Watchers

 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.