Create debug version of popcorn
We need to have a default way of throwing errors. I think that when an error is encountered it should go into a log. This log will be hidden unless the user specifically asks for it. Also I believe that all errors should be ignored in the sense that popcorn should still work. So for example if the page using popcorn has 3 plugins and the first one is used wrong the other 2 should still work and the html page should run.
That being said, a full discussion including the way popcorn should handle errors should happen before this feature is implemented.
Comments and changes to this ticket
The browser already implements an error log by default: if your code throws an error, or otherwise hits a snag, it gets sent to the console. I don't think we want to layer too much more than that on top.
That said, we could do what libraries like Dojo do, and add an isDebug: true option. Maybe the right way is to provide a -debug.js version, which is not minified, and has some extra checks and "prints" to something like TinyLogLite or the console or whatever. We'd preprocess those out of the real lib.
I think it would be useful to hear what sorts of things you want to get in a debug/log. What are the uses cases you imagine?
Ok so a use case is this: the code plugin has some "throw"s in it. So if you add something like
<code in="00:00:00" out="00:14:00" onStart="anna" ></code>
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Popcorn.js is an HTML5 video framework that lets you bring elements of the web into your videos.
Popcorn.js is a project of Web Made Movies, Mozilla's Open Video Lab.