Giter Club home page Giter Club logo

videosub's People

Contributors

alexismo avatar qsantos avatar repentinus avatar thomassturm 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

videosub's Issues

Not Working

I have following error with console log, when i put the library video not displaying, Can any one know the where's the problem,,,?

ERROR: NS_ERROR_DOM_BAD_URI: Access to restricted URI denied

MY CODE:

<video controls preload="metadata" id="video1">
<source src="videos/02_06_05.mp4" type="video/mp4" />
<source src="videos/02_06_05.webm" type="video/webm" />
<track src="jellies.srt" kind="subtitle" srclang="en-US" label="English" />
</video>

JS: videosub.JS

throws errors on pages with no video tags

This is a problem if you're building a library which may or may not have video on page load. For example in any modern javascript application.

Simple fix - in videosub_main add this as the second line:

if(!myVideo) {
return;
}

and then add below the domReady call:

$VIDEOSUB.fn.videosub = videosub_main;

So the code is callable when needed. In fact I'd suggest removing the dom call entirely.

Any plans for SMI support?

I was looking for Ajax-driven SMI library to attach subtitle for every (including HTML5 video) online video, and yours are the best one. However, SRT is kinda non-standard format and SMI is more popular. Do you have any plan to implement SMI support? Also, do you have any plan to let users implement subtitle area manually? It's needed, if I don't use

Thanks.

Won

Error printed to JS console

HTML:

<video id="mainVideo" width="600" height="360" controls="stop">
  <source src="video.mp4" type="video/mp4"/>
  <track src="subtitles.srt" kind="subtitle" srclang="en-US" label="English" />
    Your browser does not support HTML5 video.
</video>

JS:

<script src="js/videosub.js"></script>

JS console:

Uncaught TypeError: Cannot read property '0' of undefined videosub.js:155
(anonymous function) videosub.js:155
f videosub.js:34

Subtitles actually do get displayed correctly, but the error message above could be indicative of some underlying badness.

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.