#563 ✓ staged
David Seifried

Youtube player throwing errors in butter

Reported by David Seifried | June 9th, 2011 @ 02:31 PM | in 0.7

This bug required a few specific things to be done in order for the bug to appear (this is all in butter btw):

  1. Create a new project with the video source being a youtube video
  2. Save this project (giving it a title in order to save)
  3. Refreshing the page and re-opening the project you just saved
  4. Again go and save the video (not changing the title, description, or video source)

Once this is done an error will be thrown to the tone of "this.video.getPlayerState() is not a function" and causes the video to continuously try and load but never actually finish.

You can give this a try here: http://scotland.proximity.on.ca/dseif/butter/ as in the current butter tree I dont think the youtube stuff has landed yet.

I have a fix up for this, which basically checks the type of getPlayerState and if it is not a function, and if not, sets the data to this.readyState instead.
Commit: https://github.com/dseif/popcorn-js/commits/youtubeBug

I'm going to assign this to Bobby for review as he saw the bug in action this morning.

Comments and changes to this ticket

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

Pages