My 0.1 Release for OSD600 with Popcorn.js

My chosen project for my 0.1 Release, and hopefully rest of the semester as I frankly enjoy it a lot, is Popcorn.js.

For media makers:
Popcorn.js allows video, audio and other media to control elements of a webpage. Combining our library with a mixture of standard HTML + JavaScript, authors can let their media be the “conductor” of interactive and immersive experiences.

For developers:
Popcorn.js is an event framework for HTML5 media. Popcorn.js utilizes the native HTMLMediaElement properties, methods and events, normalizes them into an easy to learn API, and provides a plugin system for community contributed interactions.

Current Release: 0.8
Github Account Containing most recent release: Current Code
Lighthouse Ticket System: Popcorn.js Tickets

My Contributions
Ticket #733: Typo in Facebook PluginRepo Code
Ticket #734: Dry-Out Facebook Plugin CodeRepo Code

Oddly enough these ticket choices kind of came to me accidentally. I was originally going to be working on ticket #350 but an odd set of events occured which can be read here.

Basically my job here with these two tickets was to first fix that one small typo and then add two missing tests for there. After that it was brought up that there were a fair amount of inefficiencies with the code. A fair amount of the code was duplicated in places and because of how the facebook API functioned a lot of it could be refactored to be made simpler.

In the end I added a lot to the tests as well as I found plenty of things that were missing. This helps a lot because it makes sure that the code is robust and errors that could affect the users aren’t slipping through.

I make it sound easy, but really I went through a lot. If you read the comments for ticket 734 you can see that I had my code rejected more than once. It ranged from merge conflicts to style choices to me simply forgetting to write tests for one or two things (Seriously folks, get used to writing tests). I’m happy that I encountered these problems early on as it makes me feel almost like a seasoned vet of the project (Well, that’s probably a stretch :P).

I still have a lot to learn when it comes to the more complicated javascript principles or writing styles but I feel like I’ve learned a fair bit at this point and actually understand most of the code in that file!

For now I’m looking forward to contributing more to Popcorn.js with their 1.0 release in the coming months. There’s a lot of work coming that’s going to need people to help work on and I’ll be there to do it! Look for #350 and #740 code coming in the next few weeks as this is my plan of attack at this point!

Hack On!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: