Page 1 of 1

HTML5

Posted: Sat Jul 19, 2014 2:22 pm
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?

Re: HTML5

Posted: Sat Jul 19, 2014 4:26 pm
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?

Re: HTML5

Posted: Sat Jul 19, 2014 6:47 pm
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.

Re: HTML5

Posted: Sat Jul 19, 2014 7:44 pm
by therube
URL where this happens?
Does it work correctly in FF Nightly?

Re: HTML5

Posted: Sat Jul 19, 2014 8:09 pm
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...

Re: HTML5

Posted: Sat Jul 19, 2014 9:22 pm
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?

Re: HTML5

Posted: Sat Jul 19, 2014 10:45 pm
by barbaz
@therube: this forum's spam filter won't let me answer Guest. see PM

Re: HTML5

Posted: Sun Jul 20, 2014 10:57 am
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.

Re: HTML5

Posted: Sun Jul 20, 2014 11:01 am
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.

Re: HTML5

Posted: Sun Jul 20, 2014 1:26 pm
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.

Re: HTML5

Posted: Sat Dec 20, 2014 7:06 pm
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.

Re: HTML5

Posted: Sat Dec 20, 2014 8:58 pm
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.)

Re: HTML5

Posted: Tue Dec 23, 2014 11:09 pm
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.