Closed Bug 890556 Opened 13 years ago Closed 13 years ago

Draggable handles for html5 media do not exist on initial load

Categories

(Webmaker Graveyard :: popcorn.js, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: thecount, Assigned: mjschranz)

Details

Attachments

(2 files)

Add a clip, I used http://ia601200.us.archive.org/29/items/Children_Must_Learn_The/0883_Children_Must_Learn_The_14_22_40_00_3mb.ogv Expected: a media clip on the stage with draggable handles. Actual: it is stuck where it is. If you save and refresh it'll be fine.
Assignee: nobody → scott
Assignee: scott → schranz.m
Turns out this is a bug with Popcorn.smart. See https://github.com/mozilla/popcorn-js/blob/master/modules/player/popcorn.player.js#L396-L405 This code basically overwrites anything that might have already been inside the containing element we pass to smart. I'm wondering if these draggable/resize handles ever worked with HTML5 media.
Status: NEW → ASSIGNED
Component: Popcorn Maker → popcorn.js
I can add tests for this if you feel the need. Probably should.
Attachment #772110 - Flags: review?(scott)
Comment on attachment 772110 [details] [review] https://github.com/mozilla/popcorn-js/pull/331 The new draggable handles do not work. The click events did not get cloned with it. Would love it if we found a solution that didn't need to clone, and worked in IE9.
Attachment #772110 - Flags: review?(scott) → review-
I wonder if IE9 is going to be fine with this: http://pastebin.com/FXdZkmSU
Comment on attachment 772110 [details] [review] https://github.com/mozilla/popcorn-js/pull/331 Close, but the new container needs so css, or else the video's aspect ratio and height are off.
Attachment #772110 - Flags: review?(scott) → review-
Attachment #772110 - Flags: review- → review?(scott)
Attachment #772110 - Flags: review?(scott) → review+
Commit pushed to master at https://github.com/mozilla/popcorn-js https://github.com/mozilla/popcorn-js/commit/bb226a9a541e5d1f0b5343ffadf0c67bcef431b6 Fix Bug 890556 - Popcorn.smart shouldn't overwrite any existing child elements inside it's container when creating HTML5 media.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Attachment mime type: text/plain → text/x-github-pull-request
Attachment #8454167 - Attachment description: https://github.com/mozilla/popcorn-js/pull/402 → This is a minor patch to fix an issue with broken player unit test.
Attachment #8454167 - Attachment is patch: true
Attachment #8454167 - Attachment mime type: text/x-github-pull-request → text/plain
Comment on attachment 8454167 [details] [diff] [review] This is a minor patch to fix an issue with broken player unit test. >https://github.com/mozilla/popcorn-js/pull/402
George, Could you file a new bug describing the issue you've found and submit your patch there? Thanks for the patch! Awesome.
Does this really deserve a new ticket? I am not sure why the original fix was accepted because it does not pass the unit tests in "modules/player/popcorn.player.unit.html".
Every change deserves a bug to be filled. That we can can track changes that were made in the future incase we need to understand why something was done. The normal course of action would be to reference this bug in that new ticket.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: