Mediasource and noscript
Mediasource and noscript
I would like to enable media extensions for firefox, but for some reason noscript makes this feature inaccessible with youtube. Any suggestions?
Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 Iceweasel/30.0
Re: Mediasource and noscript
What is "media extensions"?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1
Re: Mediasource and noscript
I think is meant "Media Source extensions"therube wrote:What is "media 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.)
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:30.0) Gecko/20100101 Firefox/30.0 SeaMonkey/2.27a2
Re: Mediasource and noscript
media.mediasource.enabled true is what i meant. Noscript doesn't like it for some reason...
Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 Iceweasel/30.0
Re: Mediasource and noscript
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.
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
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.
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
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
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.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:30.0) Gecko/20100101 Firefox/30.0 SeaMonkey/2.27a2
Re: Mediasource and noscript
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.
Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 Iceweasel/30.0
Re: Mediasource and noscript
Did you Allow googlevideo.com and mediasource: ? (I think the other permissions you need should be default)Danfun64 wrote:with mediasource true, it would show the error for less than a second then redirect to flash.
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.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:30.0) Gecko/20100101 Firefox/30.0 SeaMonkey/2.27a2
Re: Mediasource and noscript
Seems to be working with &html5=1, but as described, it takes a loooooooooong time to load
Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 Iceweasel/30.0
Re: Mediasource and noscript
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
> 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
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1
Re: Mediasource and noscript
@therube: Are you using latest available SeaMonkey 2.27a2?
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:> noscript makes this feature inaccessible with youtube
In what way?
If you disable NoScript, does it work?
Give it, maybe, up to 15 minutes? (I don't think it was quite that long, but with hardware variations, network speed differences, etc...)therube wrote:> sooooooo epically long to start
And about how long is that?
I never saw any playback at all.
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:30.0) Gecko/20100101 Firefox/30.0 SeaMonkey/2.27a2
Re: Mediasource and noscript
> 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?
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?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1
Re: Mediasource and noscript
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.

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.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1
Re: Mediasource and noscript
(Doesn't seem to make sense to me, but...)
Google enforces HTML5 use on YouTube for Firefox 33 and newer
Google enforces HTML5 use on YouTube for Firefox 33 and newer
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1
Re: Mediasource and noscript
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?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:36.0) Gecko/20100101 Firefox/36.0
Re: Mediasource and noscript
You're not automatically whitelisting all mediasource videos doing that because you still have to unblock some object(s) for it to play
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:36.0) Gecko/20100101 Firefox/36.0