#351 ✓ resolved

Create debug version of popcorn

Reported by annasob | February 18th, 2011 @ 02:06 PM | in 0.7

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

  • David Humphrey

    David Humphrey February 18th, 2011 @ 02:17 PM

    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?

  • annasob

    annasob February 18th, 2011 @ 02:39 PM

    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>
    to the semantic_video xml you will get an error in the console: [14:33:26.597] uncaught exception: Popcorn Code Plugin Error: onStart must be a function. However, no other plugins will work. I would like the other plugins to still work. This way, if by chance we break a plugin, we wont break an entire demo.
  • annasob

    annasob March 24th, 2011 @ 04:50 PM

    • Milestone set to 0.6
    • Milestone order changed from “38” to “0”
  • annasob

    annasob May 10th, 2011 @ 04:39 PM

    • State changed from “open” to “assigned”
    • Milestone changed from 0.6 to 0.7
    • Assigned user set to “annasob”
    • Milestone order changed from “9” to “0”
  • Rick

    Rick June 15th, 2011 @ 12:16 PM

    • State changed from “assigned” to “resolved”
    • Assigned user cleared.

    I think this was resolved with the test mirror, feel free to reopen if that's not the case

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

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.

Shared Ticket Bins


Referenced by