HTML5

Ask for help about NoScript, no registration needed to post
Guest

HTML5

Post by Guest »

Apologize if this has already been answered on another thread but I'm having a problem with HTML5 videos and noscript.

On youtube when Forbid Audio/Video is checked in Embeddings when unblocking I just keep getting an error message and the placeholder icon re-appears so the video never plays.

They do play normally when Forbid Audio/Video is unchecked but the problem is you no longer have the ability to block and unblock the objects. The only way to stop the video is to turn off javascript. Is there some other setting I'm missing that could fix this?
Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0
barbaz
Senior Member
Posts: 11144
Joined: Sat Aug 03, 2013 5:45 pm

Re: HTML5

Post by barbaz »

Are you applying Embeddings restrictions to whitelisted sites?
If not, try allowing googlevideo.com (and mediasource: if you've enabled that feature and you see that in your NS menu)
Otherwise, maybe noscript.allowedMimeRegExp might be able to do what you want?
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:29.0) Gecko/20100101 SeaMonkey/2.26.1
Guest

Re: HTML5

Post by Guest »

Thanks for the response. I don't want to whitelist any site with google in it and that would just start running the videos automatically. Embedding gives the user the option to unblock the object first before running the video so whitelisting would defeat that.

It appears to be a bug with noscript in that it doesn't recognize when the HTML5 video has been unblocked since it works no problem with Audio/Video unchecked.
Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0
User avatar
therube
Ambassador
Posts: 7980
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: HTML5

Post by therube »

URL where this happens?
Does it work correctly in FF Nightly?
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
barbaz
Senior Member
Posts: 11144
Joined: Sat Aug 03, 2013 5:45 pm

Re: HTML5

Post by barbaz »

What you're asking isn't possible with NoScript placeholders and Youtube HTML5 videos because the URLs of the youtube videos aren't static, so NoScript has to assume it's a different video each time; also, each Youtube video is actually several files strung together, so even if the video URLs didn't change you would keep getting interrupted asking to allow more videos.

Not a NoScript issue.

You might try Temp-allowing the video using the menu items below the separator in NoScript menu -> Blocked Objects, but I don't know if that would work...
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30a1
Guest

Re: HTML5

Post by Guest »

@therube, almost any youtube video now will load HTML5. You can force it by disabling Flash and making sure that media.ogg.enabled, media.webm.enabled, and media.windows-media-foundation.enabled are enabled in about:config. And yes it is happening in the latest nightlies so you might to enable the new media.peerconnection.video.h264_enabled pref as well and activate it in plugins.

@ barbaz, if what you're saying is correct then you could restrict Audio/Video and Other Plugins in Embedded to prevent their loading but to watch them you'd have to unckeck those each time in Noscript Options. That seems pointless not to mention burdensome.

With youtube Flash videos, you can restrict them in Embedded then with one click unblock them and the videos load. It doesn't give an error message then reblock it like HTML5 videos are. Are those URLs static?
Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0
barbaz
Senior Member
Posts: 11144
Joined: Sat Aug 03, 2013 5:45 pm

Re: HTML5

Post by barbaz »

@therube: this forum's spam filter won't let me answer Guest. see PM
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:33.0) Gecko/20100101 Firefox/33.0 SeaMonkey/2.30a1
User avatar
therube
Ambassador
Posts: 7980
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: HTML5

Post by therube »

(post by barbaz)
Guest wrote:@therube, almost any youtube video now will load HTML5. You can force it by disabling Flash and making sure that media.ogg.enabled, media.webm.enabled, and media.windows-media-foundation.enabled are enabled in about:config.
or use a Chrome >= 25 user-agent (but you get no icons because for reasons I can't understand, Gecko doesn't support webp)
or, if you're watching youtube video on youtube, add "&html5=1" to the end of the youtube video URL
Guest wrote:@ barbaz, if what you're saying is correct then you could restrict Audio/Video and Other Plugins in Embedded to prevent their loading but to watch them you'd have to unckeck those each time in Noscript Options. That seems pointless not to mention burdensome.
OK, I decided to try to get the HTML5 video player working here in my main profile.
For videos that don't support media source extensions, I get a Blocked Objects sub-menu, and I can go there and pick the option below the separator that looks something like

Code: Select all

    Temporarily allow video/ogg@https://r2---sn-vgqs7nes.googlevideo.com
If I do that enough times (you may or may not have to repeat), the video will play fine, with no interruptions.
For videos that *do* support media source extensions, if you've enabled that feature in your browser, looks like you're stuck Temp-allowing googlevideo or, as you say, un-checking "Forbid <audio>/<video>" in NoScript options.
Guest wrote:With youtube Flash videos, you can restrict them in Embedded then with one click unblock them and the videos load. It doesn't give an error message then reblock it like HTML5 videos are. Are those URLs static?
No, those URLs are dynamic too, but it's a single object (so you only have to allow one thing) and they generally re-use the same flash-player URL several times in a row.
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
User avatar
therube
Ambassador
Posts: 7980
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: HTML5

Post by therube »

URL: http://www.youtube.com/watch?v=wUEA5NWlQU0&html5=1
On youtube when Forbid Audio/Video is checked in Embeddings when unblocking I just keep getting an error message and the placeholder icon re-appears so the video never plays.
That is because you need to unblock the *ogg* object under Blocked Objects menu.
(Oops, I see barbaz already said that :-).)


Also see, viewtopic.php?f=7&t=19876.
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
Guest

Re: HTML5

Post by Guest »

You were both correct, you just need to right click the object and temporarily allow googlevideo.com and the video loads. It would probably be easier to whitelist googlevideo then make sure "Apply these restrictions to whitelisted too" is checked. Might get confusing for people who don't know that yet, like flash expecting it to work when clicking directly on the object but it's a simple solution. Thanks again for the assistance.
Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0
kellyc
Posts: 1
Joined: Sat Dec 20, 2014 6:51 pm

Re: HTML5

Post by kellyc »

This seems like something that really needs to be fixed somehow. Doing temporarily allow all ogg on yt/gv isn't a solution because it unblocks it on any tabs you have open, as well as any you open later in the session (or until you revoke temp. perms.) That is just not going to work out. I have all objects block on whitelisted sites for a reason.
Mozilla/5.0 (X11; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33a2
barbaz
Senior Member
Posts: 11144
Joined: Sat Aug 03, 2013 5:45 pm

Re: HTML5

Post by barbaz »

kellyc wrote:This seems like something that really needs to be fixed somehow. Doing temporarily allow all ogg on yt/gv isn't a solution because it unblocks it on any tabs you have open, as well as any you open later in the session (or until you revoke temp. perms.) That is just not going to work out. I have all objects block on whitelisted sites for a reason.
Given what you've read above about how youtube requests ogg files, how would you suggest 'fixing' it?

(Really your post is an RFE, not a bug report, so there's nothing to be fixed. However, I'm still curious what feature(s) you would like to see in NS that you think could get you what you're asking for.)
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/536.26.17 (KHTML like Gecko) Version/6.0.2 Safari/536.26.17
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: HTML5

Post by Thrawn »

kellyc wrote:I have all objects block on whitelisted sites for a reason.
What is the reason, exactly? If you elaborate on it, we might be better able to help.
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
Post Reply