Page 1 of 1
Mediasource and noscript
Posted: Wed Jul 09, 2014 3:00 am
by Danfun64
I would like to enable media extensions for firefox, but for some reason noscript makes this feature inaccessible with youtube. Any suggestions?
Re: Mediasource and noscript
Posted: Wed Jul 09, 2014 4:10 am
by therube
What is "media extensions"?
Re: Mediasource and noscript
Posted: Wed Jul 09, 2014 4:13 am
by barbaz
therube wrote:What is "media extensions"?
I think is meant "Media Source extensions"
about:config -> set media.mediasource.enabled to true
(Don't know if that pref exists in SeaMonkey 2.26.1, but it's there in 2.27a2.)
Re: Mediasource and noscript
Posted: Thu Jul 10, 2014 12:30 am
by Danfun64
media.mediasource.enabled true is what i meant. Noscript doesn't like it for some reason...
Re: Mediasource and noscript
Posted: Thu Jul 10, 2014 2:19 am
by barbaz
OK, confirmed. Here is a more detailed description of the issue.
SeaMonkey 2.27a2 on Linux x86_64, new profile, no plugins, NoScript 2.6.8.33rc1, media.mediasource.enabled set to true, spoofing your browser
Try to watch any Youtube video on Youtube.
Works, sort of - but I've never seen anything take
sooooooo epically long to start going! I'm seeing a lot of these message in the Error Console with NS enabled, but not with NS disabled.
Code: Select all
Warning: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://r3---sn-vgqs7nez.googlevideo.com/videoplayback?(...). This can be fixed by moving the resource to the same domain or enabling CORS.
Source File: https://r3---sn-vgqs7nez.googlevideo.com/videoplayback?(...)
Line: 0
Also, with NS disabled, the startup delay is more reasonable.
If I try to seek, the player just sits there with a loading throbber, and I get a message like
Code: Select all
Warning: Media resource mediasource:d895c8c8-57d0-44dc-bb51-aa4d25cba05e could not be decoded.
Source File: https://www.youtube.com/watch?v=ET1-6Bef9xU
Line: 0
but seems that's the same as with NS disabled.
Set media.mediasource.enabled to false, enable NS.
Things work normally, no messages about same-origin policy violations, and it doesn't take forever to start.
Re: Mediasource and noscript
Posted: Thu Jul 10, 2014 3:24 pm
by Danfun64
What happened for me (in older versions of noscript) was that all i was was an error message. As of no with mediasource true, it would show the error for less than a second then redirect to flash.
Re: Mediasource and noscript
Posted: Thu Jul 10, 2014 5:52 pm
by barbaz
Danfun64 wrote:with mediasource true, it would show the error for less than a second then redirect to flash.
Did you Allow googlevideo.com and mediasource: ? (I think the other permissions you need should be default)
Did you try with Flash disabled?
What if you add something like "&html5=1" to the end of the youtube video URL?
It did try to give me Flash also, but because I didn't have it on that setup, it then redirected me to html5.
Re: Mediasource and noscript
Posted: Fri Jul 11, 2014 2:13 am
by Danfun64
Seems to be working with &html5=1, but as described, it takes a loooooooooong time to load
Re: Mediasource and noscript
Posted: Sun Jul 13, 2014 12:32 pm
by therube
URL:
https://www.youtube.com/watch?v=5R0_FJ4r73s
> noscript makes this feature inaccessible with youtube
In what way?
If you disable NoScript, does it work?
> sooooooo epically long to start
And about how long is that?
I never saw any playback at all.
With SeaMonkey, Windows, I can at least get a "player" (but not all, only some, buttons.enumerated, visible, but they are there, seen with mouseover) & a spinner, but no playback at all. And this happens whether NoScript is enabled or not.
With MSE disabled (& Flash also), html5 playback occurs as expected.
Only difference, on Youtube, is that YT only displays up to 720p for playback, where with MSE enabled, it shows up to 2160p).
With FF30, all I can get is the black box, that does nothing at all.
Seems the MSE is still a WIP,
Bug 778617 - (mediasource) Implement proposed Media Source Extensions API.
https://www.youtube.com/html5
Re: Mediasource and noscript
Posted: Sun Jul 13, 2014 5:48 pm
by barbaz
@therube: Are you using
latest available SeaMonkey 2.27a2?
therube wrote:> noscript makes this feature inaccessible with youtube
In what way?
If you disable NoScript, does it work?
With NS disabled: no messages in the Error Console about same-origin policy violation, and no insanely long wait for the video to start playing. See my post above.
therube wrote:> sooooooo epically long to start
And about how long is that?
I never saw any playback at all.
Give it, maybe, up to 15 minutes? (I don't think it was quite that long, but with hardware variations, network speed differences, etc...)
Re: Mediasource and noscript
Posted: Sun Jul 13, 2014 7:12 pm
by therube
> Are you using latest available SeaMonkey 2.27a2?
I wasn't, but doing so made no difference.
Somewhere along the line it said it was missing a Plugin, if that might mean anything?
Re: Mediasource and noscript
Posted: Sun Jul 13, 2014 9:31 pm
by therube
With an older 2.29 (aka FF 32), the clip starts immediately, but then peters out after a few (3) seconds. Last image remains & the spinner (& I'm not going to wait 15 min to see if anything more happens

).
Same situation with NoScript & without.
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29a1
Build identifier: 20140530003001
So, if you're messing with this, suggest you start with a current Nightly.
I'll also note, that in the particular Profile I've been messing with this, I've had numerous hangs (in memory) on Quit & had to kill the task. Don't know if its because of the Profile or something to do with MSE or ...
Related thread,
Firefox HTML5 Support on Youtube and Quality Settings.
And,
How to enable Media Source Extensions in Firefox.
Re: Mediasource and noscript
Posted: Fri Jul 18, 2014 1:09 am
by therube
Re: Mediasource and noscript
Posted: Wed Dec 17, 2014 8:42 pm
by frankie
Please clarify: if I whitelist "mediasource:" in NoScript, does it mean that all MSE videos will play automatically, or will the individual site rule definitions (allow/temporary/default/forbid) still apply?
Re: Mediasource and noscript
Posted: Wed Dec 17, 2014 8:55 pm
by barbaz
You're not automatically whitelisting all mediasource videos doing that because you still have to unblock some object(s) for it to play