LibVLC audio controls
原文 http://www.videolan.org/developers/vlc/doc/doxygen/html/group__libvlc__audio.html
![]() |
Typedefs |
|
| typedef enum libvlc_audio_output_device_types_t |
libvlc_audio_output_device_types_t |
| Audio device types. | |
| typedef enum libvlc_audio_output_channel_t |
libvlc_audio_output_channel_t |
| Audio channels. | |
Enumerations |
|
| enum | libvlc_audio_output_device_types_t { libvlc_AudioOutputDevice_Error = -1, libvlc_AudioOutputDevice_Mono = 1, libvlc_AudioOutputDevice_Stereo = 2, libvlc_AudioOutputDevice_2F2R = 4, libvlc_AudioOutputDevice_3F2R = 5, libvlc_AudioOutputDevice_5_1 = 6, libvlc_AudioOutputDevice_6_1 = 7, libvlc_AudioOutputDevice_7_1 = 8, libvlc_AudioOutputDevice_SPDIF = 10 } |
| Audio device types. More... | |
| enum | libvlc_audio_output_channel_t { libvlc_AudioChannel_Error = -1, libvlc_AudioChannel_Stereo = 1, libvlc_AudioChannel_RStereo = 2, libvlc_AudioChannel_Left = 3, libvlc_AudioChannel_Right = 4, libvlc_AudioChannel_Dolbys = 5 } |
| Audio channels. More... | |
Functions |
|
| LIBVLC_API libvlc_audio_output_t * | libvlc_audio_output_list_get (libvlc_instance_t *p_instance) |
| Gets the list of available audio output modules. | |
| LIBVLC_API void | libvlc_audio_output_list_release (libvlc_audio_output_t *p_list) |
| Frees the list of available audio output modules. | |
| LIBVLC_API int | libvlc_audio_output_set (libvlc_media_player_t *p_mi, const char *psz_name) |
| Selects an audio output module. | |
| LIBVLC_DEPRECATED LIBVLC_API int | libvlc_audio_output_device_count (libvlc_instance_t *, const char *) |
| Backward compatibility stub. | |
| LIBVLC_DEPRECATED LIBVLC_API char * | libvlc_audio_output_device_longname (libvlc_instance_t *, const char *, int) |
| Backward compatibility stub. | |
| LIBVLC_DEPRECATED LIBVLC_API char * | libvlc_audio_output_device_id (libvlc_instance_t *, const char *, int) |
| Backward compatibility stub. | |
| LIBVLC_API libvlc_audio_output_device_t * |
libvlc_audio_output_device_enum (libvlc_media_player_t *mp) |
| Gets a list of potential audio output devices,. | |
| LIBVLC_API libvlc_audio_output_device_t * |
libvlc_audio_output_device_list_get (libvlc_instance_t *p_instance, const char *aout) |
| Gets a list of audio output devices for a given audio output module,. | |
| LIBVLC_API void | libvlc_audio_output_device_list_release (libvlc_audio_output_device_t *p_list) |
| Frees a list of available audio output devices. | |
| LIBVLC_API void | libvlc_audio_output_device_set (libvlc_media_player_t *mp, const char *module, const char *device_id) |
| Configures an explicit audio output device. | |
| LIBVLC_DEPRECATED LIBVLC_API int | libvlc_audio_output_get_device_type (libvlc_media_player_t *p_mi) |
| Stub for backward compatibility. | |
| LIBVLC_DEPRECATED LIBVLC_API void | libvlc_audio_output_set_device_type (libvlc_media_player_t *, int) |
| Stub for backward compatibility. | |
| LIBVLC_API void | libvlc_audio_toggle_mute (libvlc_media_player_t *p_mi) |
| Toggle mute status. | |
| LIBVLC_API int | libvlc_audio_get_mute (libvlc_media_player_t *p_mi) |
| Get current mute status. | |
| LIBVLC_API void | libvlc_audio_set_mute (libvlc_media_player_t *p_mi, int status) |
| Set mute status. | |
| LIBVLC_API int | libvlc_audio_get_volume (libvlc_media_player_t *p_mi) |
| Get current software audio volume. | |
| LIBVLC_API int | libvlc_audio_set_volume (libvlc_media_player_t *p_mi, int i_volume) |
| Set current software audio volume. | |
| LIBVLC_API int | libvlc_audio_get_track_count (libvlc_media_player_t *p_mi) |
| Get number of available audio tracks. | |
| LIBVLC_API libvlc_track_description_t * |
libvlc_audio_get_track_description (libvlc_media_player_t *p_mi) |
| Get the description of available audio tracks. | |
| LIBVLC_API int | libvlc_audio_get_track (libvlc_media_player_t *p_mi) |
| Get current audio track. | |
| LIBVLC_API int | libvlc_audio_set_track (libvlc_media_player_t *p_mi, int i_track) |
| Set current audio track. | |
| LIBVLC_API int | libvlc_audio_get_channel (libvlc_media_player_t *p_mi) |
| Get current audio channel. | |
| LIBVLC_API int | libvlc_audio_set_channel (libvlc_media_player_t *p_mi, int channel) |
| Set current audio channel. | |
| LIBVLC_API int64_t | libvlc_audio_get_delay (libvlc_media_player_t *p_mi) |
| Get current audio delay. | |
| LIBVLC_API int | libvlc_audio_set_delay (libvlc_media_player_t *p_mi, int64_t i_delay) |
| Set current audio delay. | |
| LIBVLC_API unsigned | libvlc_audio_equalizer_get_preset_count (void) |
| Get the number of equalizer presets. | |
| LIBVLC_API const char * | libvlc_audio_equalizer_get_preset_name (unsigned u_index) |
| Get the name of a particular equalizer preset. | |
| LIBVLC_API unsigned | libvlc_audio_equalizer_get_band_count (void) |
| Get the number of distinct frequency bands for an equalizer. | |
| LIBVLC_API float | libvlc_audio_equalizer_get_band_frequency (unsigned u_index) |
| Get a particular equalizer band frequency. | |
| LIBVLC_API libvlc_equalizer_t * | libvlc_audio_equalizer_new (void) |
| Create a new default equalizer, with all frequency values zeroed. | |
| LIBVLC_API libvlc_equalizer_t * | libvlc_audio_equalizer_new_from_preset (unsigned u_index) |
| Create a new equalizer, with initial frequency values copied from an existing preset. | |
| LIBVLC_API void | libvlc_audio_equalizer_release (libvlc_equalizer_t *p_equalizer) |
| Release a previously created equalizer instance. | |
| LIBVLC_API int | libvlc_audio_equalizer_set_preamp (libvlc_equalizer_t *p_equalizer, float f_preamp) |
| Set a new pre-amplification value for an equalizer. | |
| LIBVLC_API float | libvlc_audio_equalizer_get_preamp (libvlc_equalizer_t *p_equalizer) |
| Get the current pre-amplification value from an equalizer. | |
| LIBVLC_API int | libvlc_audio_equalizer_set_amp_at_index (libvlc_equalizer_t *p_equalizer, float f_amp, unsigned u_band) |
| Set a new amplification value for a particular equalizer frequency band. | |
| LIBVLC_API float | libvlc_audio_equalizer_get_amp_at_index (libvlc_equalizer_t *p_equalizer, unsigned u_band) |
| Get the amplification value for a particular equalizer frequency band. | |
| LIBVLC_API int | libvlc_media_player_set_equalizer (libvlc_media_player_t *p_mi, libvlc_equalizer_t *p_equalizer) |
| Apply new equalizer settings to a media player. | |
Detailed Description
Typedef Documentation
Audio channels.
Audio device types.
Enumeration Type Documentation
Audio channels.
- Enumerator:
-
libvlc_AudioChannel_Error libvlc_AudioChannel_Stereo libvlc_AudioChannel_RStereo libvlc_AudioChannel_Left libvlc_AudioChannel_Right libvlc_AudioChannel_Dolbys
Audio device types.
- Enumerator:
-
libvlc_AudioOutputDevice_Error libvlc_AudioOutputDevice_Mono libvlc_AudioOutputDevice_Stereo libvlc_AudioOutputDevice_2F2R libvlc_AudioOutputDevice_3F2R libvlc_AudioOutputDevice_5_1 libvlc_AudioOutputDevice_6_1 libvlc_AudioOutputDevice_7_1 libvlc_AudioOutputDevice_SPDIF
Function Documentation
| LIBVLC_API float libvlc_audio_equalizer_get_amp_at_index | ( | libvlc_equalizer_t * | p_equalizer, |
| unsigned | u_band | ||
| ) |
Get the amplification value for a particular equalizer frequency band.
- Parameters
-
p_equalizer valid equalizer handle, must not be NULL u_band index, counting from zero, of the frequency band to get
- Returns
- amplification value (Hz); NaN if there is no such frequency band
- Version
- LibVLC 2.2.0 or later
| LIBVLC_API unsigned libvlc_audio_equalizer_get_band_count | ( | void | ) |
Get the number of distinct frequency bands for an equalizer.
- Returns
- number of frequency bands
- Version
- LibVLC 2.2.0 or later
| LIBVLC_API float libvlc_audio_equalizer_get_band_frequency | ( | unsigned | u_index | ) |
Get a particular equalizer band frequency.
This value can be used, for example, to create a label for an equalizer band control in a user interface.
- Parameters
-
u_index index of the band, counting from zero
- Returns
- equalizer band frequency (Hz), or -1 if there is no such band
- Version
- LibVLC 2.2.0 or later
| LIBVLC_API float libvlc_audio_equalizer_get_preamp | ( | libvlc_equalizer_t * | p_equalizer | ) |
Get the current pre-amplification value from an equalizer.
- Parameters
-
p_equalizer valid equalizer handle, must not be NULL
- Returns
- preamp value (Hz)
- Version
- LibVLC 2.2.0 or later
| LIBVLC_API unsigned libvlc_audio_equalizer_get_preset_count | ( | void | ) |
Get the number of equalizer presets.
- Returns
- number of presets
- Version
- LibVLC 2.2.0 or later
| LIBVLC_API const char* libvlc_audio_equalizer_get_preset_name | ( | unsigned | u_index | ) |
Get the name of a particular equalizer preset.
This name can be used, for example, to prepare a preset label or menu in a user interface.
- Parameters
-
u_index index of the preset, counting from zero
- Returns
- preset name, or NULL if there is no such preset
- Version
- LibVLC 2.2.0 or later
| LIBVLC_API libvlc_equalizer_t* libvlc_audio_equalizer_new | ( | void | ) |
Create a new default equalizer, with all frequency values zeroed.
The new equalizer can subsequently be applied to a media player by invoking libvlc_media_player_set_equalizer().
The returned handle should be freed via libvlc_audio_equalizer_release() when it is no longer needed.
- Returns
- opaque equalizer handle, or NULL on error
- Version
- LibVLC 2.2.0 or later
| LIBVLC_API libvlc_equalizer_t* libvlc_audio_equalizer_new_from_preset | ( | unsigned | u_index | ) |
Create a new equalizer, with initial frequency values copied from an existing preset.
The new equalizer can subsequently be applied to a media player by invoking libvlc_media_player_set_equalizer().
The returned handle should be freed via libvlc_audio_equalizer_release() when it is no longer needed.
- Parameters
-
u_index index of the preset, counting from zero
- Returns
- opaque equalizer handle, or NULL on error
- Version
- LibVLC 2.2.0 or later
| LIBVLC_API void libvlc_audio_equalizer_release | ( | libvlc_equalizer_t * | p_equalizer | ) |
Release a previously created equalizer instance.
The equalizer was previously created by using libvlc_audio_equalizer_new() or libvlc_audio_equalizer_new_from_preset().
It is safe to invoke this method with a NULL p_equalizer parameter for no effect.
- Parameters
-
p_equalizer opaque equalizer handle, or NULL
- Version
- LibVLC 2.2.0 or later
| LIBVLC_API int libvlc_audio_equalizer_set_amp_at_index | ( | libvlc_equalizer_t * | p_equalizer, |
| float | f_amp, | ||
| unsigned | u_band | ||
| ) |
Set a new amplification value for a particular equalizer frequency band.
The new equalizer settings are subsequently applied to a media player by invoking libvlc_media_player_set_equalizer().
The supplied amplification value will be clamped to the -20.0 to +20.0 range.
- Parameters
-
p_equalizer valid equalizer handle, must not be NULL f_amp amplification value (-20.0 to 20.0 Hz) u_band index, counting from zero, of the frequency band to set
- Returns
- zero on success, -1 on error
- Version
- LibVLC 2.2.0 or later
| LIBVLC_API int libvlc_audio_equalizer_set_preamp | ( | libvlc_equalizer_t * | p_equalizer, |
| float | f_preamp | ||
| ) |
Set a new pre-amplification value for an equalizer.
The new equalizer settings are subsequently applied to a media player by invoking libvlc_media_player_set_equalizer().
The supplied amplification value will be clamped to the -20.0 to +20.0 range.
- Parameters
-
p_equalizer valid equalizer handle, must not be NULL f_preamp preamp value (-20.0 to 20.0 Hz)
- Returns
- zero on success, -1 on error
- Version
- LibVLC 2.2.0 or later
| LIBVLC_API int libvlc_audio_get_channel | ( | libvlc_media_player_t * | p_mi | ) |
Get current audio channel.
- Parameters
-
p_mi media player
- Returns
- the audio channel
- See Also
- libvlc_audio_output_channel_t
| LIBVLC_API int64_t libvlc_audio_get_delay | ( | libvlc_media_player_t * | p_mi | ) |
Get current audio delay.
- Parameters
-
p_mi media player
- Returns
- the audio delay (microseconds)
- Version
- LibVLC 1.1.1 or later
| LIBVLC_API int libvlc_audio_get_mute | ( | libvlc_media_player_t * | p_mi | ) |
Get current mute status.
- Parameters
-
p_mi media player
- Returns
- the mute status (boolean) if defined, -1 if undefined/unapplicable
| LIBVLC_API int libvlc_audio_get_track | ( | libvlc_media_player_t * | p_mi | ) |
Get current audio track.
- Parameters
-
p_mi media player
- Returns
- the audio track ID or -1 if no active input.
| LIBVLC_API int libvlc_audio_get_track_count | ( | libvlc_media_player_t * | p_mi | ) |
Get number of available audio tracks.
- Parameters
-
p_mi media player
- Returns
- the number of available audio tracks (int), or -1 if unavailable
| LIBVLC_API libvlc_track_description_t* libvlc_audio_get_track_description | ( | libvlc_media_player_t * | p_mi | ) |
Get the description of available audio tracks.
- Parameters
-
p_mi media player
- Returns
- list with description of available audio tracks, or NULL
| LIBVLC_API int libvlc_audio_get_volume | ( | libvlc_media_player_t * | p_mi | ) |
Get current software audio volume.
- Parameters
-
p_mi media player
- Returns
- the software volume in percents (0 = mute, 100 = nominal / 0dB)
| LIBVLC_DEPRECATED LIBVLC_API int libvlc_audio_output_device_count | ( | libvlc_instance_t * | , |
| const char * | |||
| ) |
Backward compatibility stub.
Do not use in new code. Use libvlc_audio_output_device_list_get() instead.
- Returns
- always 0.
| LIBVLC_API libvlc_audio_output_device_t* libvlc_audio_output_device_enum | ( | libvlc_media_player_t * | mp | ) |
Gets a list of potential audio output devices,.
- See Also
- libvlc_audio_output_device_set().
- Note
- Not all audio outputs support enumerating devices. The audio output may be functional even if the list is empty (NULL).
- The list may not be exhaustive.
- Warning
- Some audio output devices in the list might not actually work in some circumstances. By default, it is recommended to not specify any explicit audio device.
- Parameters
-
mp media player
- Returns
- A NULL-terminated linked list of potential audio output devices. It must be freed it with libvlc_audio_output_device_list_release()
- Version
- LibVLC 2.2.0 or later.
| LIBVLC_DEPRECATED LIBVLC_API char* libvlc_audio_output_device_id | ( | libvlc_instance_t * | , |
| const char * | , | ||
| int | |||
| ) |
Backward compatibility stub.
Do not use in new code. Use libvlc_audio_output_device_list_get() instead.
- Returns
- always NULL.
| LIBVLC_API libvlc_audio_output_device_t* libvlc_audio_output_device_list_get | ( | libvlc_instance_t * | p_instance, |
| const char * | aout | ||
| ) |
Gets a list of audio output devices for a given audio output module,.
- See Also
- libvlc_audio_output_device_set().
- Note
- Not all audio outputs support this. In particular, an empty (NULL) list of devices does not imply that the specified audio output does not work.
- The list might not be exhaustive.
- Warning
- Some audio output devices in the list might not actually work in some circumstances. By default, it is recommended to not specify any explicit audio device.
- Parameters
-
p_instance libvlc instance psz_aout audio output name (as returned by libvlc_audio_output_list_get())
- Returns
- A NULL-terminated linked list of potential audio output devices. It must be freed it with libvlc_audio_output_device_list_release()
- Version
- LibVLC 2.1.0 or later.
| LIBVLC_API void libvlc_audio_output_device_list_release | ( | libvlc_audio_output_device_t * | p_list | ) |
Frees a list of available audio output devices.
- Parameters
-
p_list list with audio outputs for release
- Version
- LibVLC 2.1.0 or later.
| LIBVLC_DEPRECATED LIBVLC_API char* libvlc_audio_output_device_longname | ( | libvlc_instance_t * | , |
| const char * | , | ||
| int | |||
| ) |
Backward compatibility stub.
Do not use in new code. Use libvlc_audio_output_device_list_get() instead.
- Returns
- always NULL.
| LIBVLC_API void libvlc_audio_output_device_set | ( | libvlc_media_player_t * | mp, |
| const char * | module, | ||
| const char * | device_id | ||
| ) |
Configures an explicit audio output device.
If the module paramater is NULL, audio output will be moved to the device specified by the device identifier string immediately. This is the recommended usage.
A list of adequate potential device strings can be obtained with libvlc_audio_output_device_enum().
However passing NULL is supported in LibVLC version 2.2.0 and later only; in earlier versions, this function would have no effects when the module parameter was NULL.
If the module parameter is not NULL, the device parameter of the corresponding audio output, if it exists, will be set to the specified string. Note that some audio output modules do not have such a parameter (notably MMDevice and PulseAudio).
A list of adequate potential device strings can be obtained with libvlc_audio_output_device_list_get().
- Note
- This function does not select the specified audio output plugin. libvlc_audio_output_set() is used for that purpose.
- Warning
- The syntax for the device parameter depends on the audio output.
Some audio output modules require further parameters (e.g. a channels map in the case of ALSA).
- Parameters
-
mp media player module If NULL, current audio output module. if non-NULL, name of audio output module (
- See Also
- libvlc_audio_output_t)
- Parameters
-
device_id device identifier string
- Returns
- Nothing. Errors are ignored (this is a design bug).
| LIBVLC_DEPRECATED LIBVLC_API int libvlc_audio_output_get_device_type | ( | libvlc_media_player_t * | p_mi | ) |
Stub for backward compatibility.
- Returns
- always -1.
| LIBVLC_API libvlc_audio_output_t* libvlc_audio_output_list_get | ( | libvlc_instance_t * | p_instance | ) |
Gets the list of available audio output modules.
- Parameters
-
p_instance libvlc instance
- Returns
- list of available audio outputs. It must be freed it with
- See Also
- libvlc_audio_output_list_release
- libvlc_audio_output_t . In case of error, NULL is returned.
| LIBVLC_API void libvlc_audio_output_list_release | ( | libvlc_audio_output_t * | p_list | ) |
Frees the list of available audio output modules.
- Parameters
-
p_list list with audio outputs for release
| LIBVLC_API int libvlc_audio_output_set | ( | libvlc_media_player_t * | p_mi, |
| const char * | psz_name | ||
| ) |
Selects an audio output module.
- Note
- Any change will take be effect only after playback is stopped and restarted. Audio output cannot be changed while playing.
- Parameters
-
p_mi media player psz_name name of audio output, use psz_name of
- See Also
- libvlc_audio_output_t
- Returns
- 0 if function succeded, -1 on error
| LIBVLC_DEPRECATED LIBVLC_API void libvlc_audio_output_set_device_type | ( | libvlc_media_player_t * | , |
| int | |||
| ) |
Stub for backward compatibility.
| LIBVLC_API int libvlc_audio_set_channel | ( | libvlc_media_player_t * | p_mi, |
| int | channel | ||
| ) |
Set current audio channel.
- Parameters
-
p_mi media player channel the audio channel,
- See Also
- libvlc_audio_output_channel_t
- Returns
- 0 on success, -1 on error
| LIBVLC_API int libvlc_audio_set_delay | ( | libvlc_media_player_t * | p_mi, |
| int64_t | i_delay | ||
| ) |
Set current audio delay.
The audio delay will be reset to zero each time the media changes.
- Parameters
-
p_mi media player i_delay the audio delay (microseconds)
- Returns
- 0 on success, -1 on error
- Version
- LibVLC 1.1.1 or later
| LIBVLC_API void libvlc_audio_set_mute | ( | libvlc_media_player_t * | p_mi, |
| int | status | ||
| ) |
Set mute status.
- Parameters
-
p_mi media player status If status is true then mute, otherwise unmute
- Warning
- This function does not always work. If there are no active audio playback stream, the mute status might not be available. If digital pass-through (S/PDIF, HDMI...) is in use, muting may be unapplicable. Also some audio output plugins do not support muting at all.
- Note
- To force silent playback, disable all audio tracks. This is more efficient and reliable than mute.
| LIBVLC_API int libvlc_audio_set_track | ( | libvlc_media_player_t * | p_mi, |
| int | i_track | ||
| ) |
Set current audio track.
- Parameters
-
p_mi media player i_track the track ID (i_id field from track description)
- Returns
- 0 on success, -1 on error
| LIBVLC_API int libvlc_audio_set_volume | ( | libvlc_media_player_t * | p_mi, |
| int | i_volume | ||
| ) |
Set current software audio volume.
- Parameters
-
p_mi media player i_volume the volume in percents (0 = mute, 100 = 0dB)
- Returns
- 0 if the volume was set, -1 if it was out of range
| LIBVLC_API void libvlc_audio_toggle_mute | ( | libvlc_media_player_t * | p_mi | ) |
Toggle mute status.
- Parameters
-
p_mi media player
- Warning
- Toggling mute atomically is not always possible: On some platforms, other processes can mute the VLC audio playback stream asynchronously. Thus, there is a small race condition where toggling will not work. See also the limitations oflibvlc_audio_set_mute().
| LIBVLC_API int libvlc_media_player_set_equalizer | ( | libvlc_media_player_t * | p_mi, |
| libvlc_equalizer_t * | p_equalizer | ||
| ) |
Apply new equalizer settings to a media player.
The equalizer is first created by invoking libvlc_audio_equalizer_new() or libvlc_audio_equalizer_new_from_preset().
It is possible to apply new equalizer settings to a media player whether the media player is currently playing media or not.
Invoking this method will immediately apply the new equalizer settings to the audio output of the currently playing media if there is any.
If there is no currently playing media, the new equalizer settings will be applied later if and when new media is played.
Equalizer settings will automatically be applied to subsequently played media.
To disable the equalizer for a media player invoke this method passing NULL for the p_equalizer parameter.
The media player does not keep a reference to the supplied equalizer so it is safe for an application to release the equalizer reference any time after this method returns.
- Parameters
-
p_mi opaque media player handle p_equalizer opaque equalizer handle, or NULL to disable the equalizer for this media player
- Returns
- zero on success, -1 on error
- Version
- LibVLC 2.2.0 or later
LibVLC audio controls的更多相关文章
- LibVLC video controls
原文 http://www.videolan.org/developers/vlc/doc/doxygen/html/group__libvlc__video.html VLC 3.0.0-git ...
- 【原创】08. easyui form控件,回调参数存在后缀 audio controls="controls" style="display: none;"></audio>
版本: jQuery EasyUI 1.4.3 springmvc 3.2.6 谷歌浏览器,内核版本 chrome 56.0.2924.87 360急速浏览器,内核版本 chrome 50.0.266 ...
- 《HTML5》 Audio/Video全解
一.标签解读 <audio> 标签属性 <audio id="media" src="http://www.abc.com/test.mp3" ...
- HTML5的Audio标签打造WEB音频播放器
目前,WEB页面上没有标准的方式来播放音频文件,大多数的音频文件是使用插件来播放,而众多浏览器都使用了不同的插件.而HTML5的到来,给我们提供了一个标准的方式来播放WEB中的音频文件,用户不再为浏览 ...
- HTML5 audio与video标签实现视频播放,音频播放
随着互联网的飞速发展以及HTML5的应用,越来越多的项目中用到video,audio当常用标签. <audio> 标签属性 <audio src="song.mp3&quo ...
- HTML5 音频 <audio>
HTML5 提供了播放音频的标准. 一.Web 上的音频 直到现在,仍然不存在一项旨在网页上播放音频的标准. 今天,大多数音频是通过插件(比如 Flash)来播放的.然而,并非所有浏览器都拥有同样的插 ...
- HTML 5 音频(audio)
audio 元素支持三种音频格式 IE 9 Firefox 3.5 Opera 10.5 Chrome 3.0 Safari 3.0 Ogg Vorbis √ √ √ MP3 √ √ ...
- H5学习系列之Audio和Video
1.视频文件:音频轨道.视频轨道和一些元数据(视频封面.标题.子标题.字幕等相关信息). 2.目前H5还不支持的:流式音频和视频(H5对视频的支持只限于加载的全部媒体文件).H5的媒体收到跨域资源共享 ...
- audio和video元素
目录 [1]HTML元素 audio video source track[2]API 方法 属性 事件 audio专有 前面的话 HTML5新增了两个与媒体相关的标签,让开发人员不必依赖任何插件就能 ...
随机推荐
- 网络的基本概念TCP, UDP, 单播(Unicast), 多播(多播)(Multicast)
章相当低级,但相当重要! 我们周围一切差点儿都依赖于把事情抽象成低等级,并在某一点把它详细化,在一些设计概念中.接口层十分清晰而且目标非常集中,应用程序不用考虑操作系统怎样工作,操作系统也不用考虑硬件 ...
- Arduino 数码管LED驱动器 阵列方法
样品谈到最后一个驱动程序LED数码管,采用了最简单的解决方案之一,对于每一个LED高低电平控制,这样的好处是每个LED控制可检.避免短路造成的错觉,因为,但是对于数字的变化是,它是多余的写,因此,这种 ...
- 【Espruino】NO.06 关键是你的仆人(继续)
http://blog.csdn.net/qwert1213131/article/details/27834551 本文属于个人理解,能力有限,纰漏在所难免.还望指正. [小鱼有点电] 这几天一直在 ...
- 一键安装 gitlab7 on rhel6.4 并设置邮件发送
一键安装 gitlab7 on rhel6.4 并设置邮件发送 世间本无事,庸人自扰之.书归正传,简短节说:gitlab是个好东西,可是安装手冊奇烂.尽管以前对比文档一步一步安装起来gitlab 6. ...
- B/S 类项目改善
B/S 类项目改善的一些建议 要分享的议题 性能提升:在访问量逐渐增大的同时,如何增大单台服务器的 PV2 上限,增加 TPS3 ? RESTful:相较于传统的 SOAP1,RESTful 风格 ...
- 军医王-moTestin云测试看好移动医疗行业
看医生汪谟军:Testin云測在移动医疗产业大有可为 2014/10/21 · Testin · 开发人员訪谈 日常生活可能常常碰到这种情况:突然遇上头疼脑热.小病小痛,去医院又不方便:非常想了解家人 ...
- SSH没有password安全日志
client: ssh-keygen -t rsa server结束 mkdir .ssh chmod 755 .ssh 从公开密钥client上传server scp .ssh/id_rsa.phb ...
- tmp1
program1: Line # Mem usage Increment Line Contents================================================ 2 ...
- JavaScript循环之for/in循环
今天学到了JavaScript的语句篇.同其他常见编程语言如C.Java等一样,JavaScript中的语句包含:①表达式语句②复合语句和空语句③声明语句④条件语句⑤循环语句⑥跳转语句,当然JavaS ...
- Middleware详解
Middleware详解 在第1章项目结构分析中,我们提到Startup.cs作为整个程序的入口点,等同于传统的Global.asax文件,即:用于初始化系统级的信息(例如,MVC中的路由配置).本章 ...
