Closed Bug 897327 Opened 12 years ago Closed 12 years ago

Projects with soundcloud and youtube not playing

Categories

(Webmaker Graveyard :: Popcorn Maker, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: brett, Assigned: thecount)

Details

Attachments

(1 file)

I cannot get this makes that use soundclouds to play at all https://karmicangel.makes.org/popcorn/19in Firefox 22 + Chrome 28.0.1500.71
Assignee: nobody → scott
So I was actually able to get this to load, though wildly out of sync. Opening in the editor the clip plays fine. The sync is off with the other two clips, but if I play the sequence from the start it seems to play as intended.
*Mixed content*
I'm Firefox 22 and don't see that mixed content warning. This seems to be about whether the clip is ready or not.
OK, I found STR: 1) remix https://karmicangel.makes.org/popcorn/19in 2) Delete two youtube clips that appear later in the timeline 3) republish plays fine
Summary: Soundcloud clip not playing at all → Projects with soundcloud and youtube not playing
I'll dig into this Friday. Making it my priority. Definitely not mixed content issues. (it does have that, but that's a whole other issue) The clip can play, if it is ready, but it has serious issues getting ready, and we seem to allow it to be playable when it is in fact still struggling. Causing it to not play at all, in the case of nothing being ready, or playing from the wrong position, in the case of only some being ready. More video's like YouTube just cause it to take even longer to get ready. It seems to always play from the last buffered point closest to the seek target, instead of waiting. Example, if I seek to 10 seconds, and only 3 is done, it seeks to 3 instead of buffering 10 and seeking to there. Their UI and player do not do this, so I am confident there is a solution out there.
It shouldn't have any mixed content issues, SoundCloud just fixed that bug.
Ha, just hit me as to what's wrong, soo simple, but not obvious because of similar issues in soundcloud that I thought I solved. So I kept looking there. The actual problem/solution: We have a waiting param which is true if we have any currently active clips loading. We also have a loading param for if ANY clip is loading, active or not. I was checking against all loading clips if we need to replay a clip, but I only needed to check against active clips. It was thinking about those STRs and it just clicked. I was also able to hit these STRs without soundcloud.
Attachment #780793 - Flags: review?(schranz.m)
The code looks good to me, but the STRs to reproduce it locally are somewhat confusing. Scott, can you help me clear that up?
Flags: needinfo?(scott)
STRs: 1. remake this locally: https://popcorn.webmaker.org/editor/59179/edit 2. hit play WHILE it is still loading. 3. wait for it to load. Expected, it should start playing as soon as it is loaded. Actual, it does not. It lost your play event. You can also hit play after it loads and it likely does not play at all, because it is in a broken state.
Flags: needinfo?(scott)
Comment on attachment 780793 [details] [review] https://github.com/mozilla/popcorn.webmaker.org/pull/135 This doesn't seem to quite work in Chrome. Building off your STRs: 1) Hitting the play button while it's loading isn't triggering a play to occur once it's ready. 2) If I hit play twice fast, it usually starts playing but without sound like the bug describes.
Attachment #780793 - Flags: review?(schranz.m) → review-
Comment on attachment 780793 [details] [review] https://github.com/mozilla/popcorn.webmaker.org/pull/135 Chrome is nt going to be able to take advantage of this fix. bug 895058 has a bit of info on why, but I still don't quite get it. Chrome in a lot of cases, and like I said I don't quite get why, doesn't return proper buffer data, just nonsense. Can we push this fix through just for firefox for now? You can test it without soundcloud in chrome, maybe that'll expose the bug and fix? Right, this isn't limited to soundcloud, so try it without.
Attachment #780793 - Flags: review- → review?(schranz.m)
To follow through with what I was saying before, here is a project not using soundcloud: https://popcorn.webmaker.org/editor/59179/edit Same issue, and my fix should now work in chrome.
Attachment #780793 - Flags: review?(schranz.m) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: needinfo?(scott)
Resolution: --- → FIXED
I'm getting better results on master with this problem reproduced in a reduced project. In a more complex project however, it comes back. bug 893777 should fix that, so I'll wait until bug 893777 lands before I'll double check and mark this as verified.
Attachment mime type: text/plain → text/x-github-pull-request
Status: RESOLVED → VERIFIED
Flags: needinfo?(scott)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: