iOS only can set volume by physical key, CAN NOT modify by javasript
2016-08-21 22:28
531 查看
https://developer.apple.com/library/safari/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW1
Volume Control in JavaScript
On the desktop, you can set and read the volume property of an or element. This allows you to set the element’s audio volume relative to the computer’s current volume setting. A value of 1 plays sound at the normal level. A value of 0 silences the audio. Values between 0 and 1 attenuate the audio.
This volume adjustment can be useful, because it allows the user to mute a game, for example, while still listening to music on the computer.
On iOS devices, the audio level is always under the user’s physical control. The volume property is not settable in JavaScript. Reading the volume property always returns 1.
Volume Control in JavaScript
On the desktop, you can set and read the volume property of an or element. This allows you to set the element’s audio volume relative to the computer’s current volume setting. A value of 1 plays sound at the normal level. A value of 0 silences the audio. Values between 0 and 1 attenuate the audio.
This volume adjustment can be useful, because it allows the user to mute a game, for example, while still listening to music on the computer.
On iOS devices, the audio level is always under the user’s physical control. The volume property is not settable in JavaScript. Reading the volume property always returns 1.
相关文章推荐
- iOS - xib死活连不上代码问题/[<NSObject 0x1702023e0> setValue:forUndefinedKey:]: this class is not key
- use /Fe create dll file can not be used by WinApp,only can be used by jni.
- iOS: setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key name.
- iOS: setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key name.
- Can not set the value of read-only property 'jniFolders' for task ': android: packageDebug
- iOS Xcode 6报错:setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key v
- [IOS platform]AudioEngine:Fixed audio can not resume if it is interrupted cause by an incoming phone
- iOS- 报错(崩)[< > setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
- iOS could not set nil as the value for the key
- iOS [<NSObject 0x170204110> setValue:forUndefineKey:]: this class is not key value coding-compliant
- iOS 报错 setValue:forUndefinedKey:]: this class is not key value coding
- switch引发的错误:a label can only be part of a statement and a declaration is not a statement
- The specified CGI application misbehaved by not returning a complete set of HTTP headers
- NotOnlySuccess 自动机专辑,完全题解 - by ronaflx
- Only one expression can be specified in the select list when the subquery is not introduced with(求助)
- php: can not modify header information 的warning解决方法.
- iBatis操作CLOB类型字段时报setString can only process strings of less than 32766 chararacters
- SSH error:a public key file has not been specified by this session
- Can not run Dotfuscator 4.4-----Reference not set to an object.
- logical standby database can not create database link