Comments on: HTML5 Simplequiz #3: how to mute a video https://stevefaulkner.github.io/html5doctored/html5-simplequiz-3-how-to-mute-a-video/ helping you implement HTML5 today Thu, 16 Jun 2016 14:32:14 +0000 hourly 1 By: digitalpbk https://stevefaulkner.github.io/html5doctored/html5-simplequiz-3-how-to-mute-a-video/#comment-18285 Wed, 02 Nov 2011 12:25:09 +0000 http://html5doctor.com/?p=2628#comment-18285 Video tags attribute muted=”true” could help a lot. A Better suggestion would be volume=”0″, so that when we connect laptop to tv or audio outputs we can control the relative volume.

]]>
By: Toby Mackenzie https://stevefaulkner.github.io/html5doctored/html5-simplequiz-3-how-to-mute-a-video/#comment-11806 Sat, 23 Oct 2010 01:44:52 +0000 http://html5doctor.com/?p=2628#comment-11806 Hmm, perhaps it would benefit to consider a child audio element managing the audio parameters, similar to [source] and [param]. This may be considered as overloading a tag, but consider that a video element (in most cases) handles media that houses both video and audio content that happen to be synced together in rendering time: The video tag is like an audio tag with added video accompaniment. The audio portion could easily have all or most of the same settings as an audio tag by itself, and it would be ideal to keep them the same between the two tags (or any others with audio): A child audio tag would ensure this, and the video tag attributes could be limited to those directly related to the video portion of playback. Then the muted solution used for [audio] would also be used for [video]. I’m fine with muted=”muted” -> .defaultMuted and .muted as current state.

It would look something like:
<video controls>
<audio muted>
<source src=”whatever”>
… other sources … fallback content …
</video>

This would also allow for handling the rare use case of a separate audio track for silent movies or a single audio track for multiple videos (changed via JS). And an audio element without src would be nothing to a browser that could for some reason understand [audio] but not [video].

If that seems to be rubbish, I still would prefer to see some sort of solution where the audio portion of a video has the same attributes as the audio tag itself, and thus dislike the audio attribute. I’d be fine with the muted attribute as above.

As memory of settings go though it would be more common to want mute state / volume to remain the same for a single site or all sites though rather than individual videos.

]]>
By: zcorpan https://stevefaulkner.github.io/html5doctored/html5-simplequiz-3-how-to-mute-a-video/#comment-11795 Thu, 21 Oct 2010 07:40:26 +0000 http://html5doctor.com/?p=2628#comment-11795 OK to today is wrap-up day; thanks for all the comments! I’ve reopened the bug asking the editor to consider your comments.

]]>
By: zcorpan https://stevefaulkner.github.io/html5doctored/html5-simplequiz-3-how-to-mute-a-video/#comment-11794 Thu, 21 Oct 2010 07:38:46 +0000 http://html5doctor.com/?p=2628#comment-11794 gabriel, one use case is having multiple videos playing at once to see what’s on other channels on TV right now.

]]>
By: gabriel https://stevefaulkner.github.io/html5doctored/html5-simplequiz-3-how-to-mute-a-video/#comment-11781 Wed, 20 Oct 2010 12:53:59 +0000 http://html5doctor.com/?p=2628#comment-11781 I like Bryan’s way of doing it, it makes sense.

One question I have is why multiple videos would play simultaneously? A user could only watch one at a time, and playing multiple videos uses up more resources, and if the user is interested in them, would force them to rewind the next video they want to see. wouldn’t it be better to simply have all other videos paused at load?

]]>
By: Damir Zekić https://stevefaulkner.github.io/html5doctored/html5-simplequiz-3-how-to-mute-a-video/#comment-11757 Mon, 18 Oct 2010 18:26:35 +0000 http://html5doctor.com/?p=2628#comment-11757 I’m a fan of the third option: <video muted> being represented by .deaultMuted IDL attribute. The described behaviour is exactly what I would expect as a web author.

Still can’t decide whether or not I agree with proposal for audio="" attribute, though. I like how it allows separation of audio options in video context, but don’t like the fact that it would have to have different semantics in <audio>, which has is the point already raised by Philip Jägenstedt. Having separate attributes for volume and other potential audio settings makes them reusable across media elements.

Of course, as a user I would expect that after I mute one video all videos loaded in the future should be muted as well, whether or not attribute being set. Although web author can unmute video using script, such a behaviour should not be supported using markup.

]]>
By: Tom https://stevefaulkner.github.io/html5doctored/html5-simplequiz-3-how-to-mute-a-video/#comment-11754 Mon, 18 Oct 2010 15:22:09 +0000 http://html5doctor.com/?p=2628#comment-11754 Nice one Bruce. Some good comments and discussion going on here.

I like muted=”muted”

]]>
By: Arieh https://stevefaulkner.github.io/html5doctored/html5-simplequiz-3-how-to-mute-a-video/#comment-11744 Sun, 17 Oct 2010 05:50:05 +0000 http://html5doctor.com/?p=2628#comment-11744 I agree with Steve above , and also with Massimo –
1. mute should be for the mute action – should I mute? It should indicate what will be the default behavior. In JS – instead of doing .muted = true it should be .mute() / .unmute(). Methods instead of properties.
2. muted should only exist in the API to tell the current state of the element, as represented by the Browser’s decision. So I can do if (myEl.muted). As such, it defenetly has to be muted="muted" (or – also muted) – this is a very important standard.
3. I don’t like the .defaultMuted concept – it make the API less intuitive – when do I lookup a “default” attribute, and when am I looking for the attribute name? I find that since we have so many APIs around, we should stick to simple naming conventions.

]]>
By: Alohci https://stevefaulkner.github.io/html5doctored/html5-simplequiz-3-how-to-mute-a-video/#comment-11730 Sat, 16 Oct 2010 13:44:36 +0000 http://html5doctor.com/?p=2628#comment-11730 @zcorpan – Of course, I wasn’t trying in any way to help pre-empt the discussion here. My comment was really just an aside; I was looking to see if others here agreed that what the spec currently says doesn’t quite work at a technical level. That if it was implemented as is, it would be necessary to create a new IDL attribute in addition to “audio” to reflect a later extended “audio” content attribute. That would be bad.

]]>
By: zcorpan https://stevefaulkner.github.io/html5doctored/html5-simplequiz-3-how-to-mute-a-video/#comment-11721 Sat, 16 Oct 2010 10:10:18 +0000 http://html5doctor.com/?p=2628#comment-11721 Alohci, Hixie just changed the spec to add his audio=”” suggestion (for now just supports “muted” but is intended to be extensible to cover volume and other things as well going forward). However that doesn’t mean it’s a done deal; if we come to a conclusion from this discussion that something else is a better design then we can reopen the bug with that new information.

]]>