xue_hua_audio_web 2.0.4 copy "xue_hua_audio_web: ^2.0.4" to clipboard
xue_hua_audio_web: ^2.0.4 copied to clipboard

Platformweb

Web implementation of the xue_hua_audio plugin, using HTMLAudioElement, Web Audio API and MediaRecorder. / xue_hua_audio 插件的 Web 实现,基于 HTMLAudioElement、Web Audio API 与 MediaRecorder。

xue_hua_audio_web #

The Web implementation of xue_hua_audio. xue_hua_audio 插件的 Web 实现。

Playback is driven by HTMLAudioElement; recording uses getUserMedia + MediaRecorder with an AnalyserNode for real-time amplitude. stop() returns a blob URL, and the output codec depends on the browser (audio/webm;codecs=opus on Chrome/Firefox, audio/mp4 on Safari).

播放基于 HTMLAudioElement;录音使用 getUserMedia + MediaRecorder,并用 AnalyserNode 实时计算振幅。stop() 返回 blob URL,输出编码随浏览器而定。

Note: microphone access requires HTTPS (or localhost), and remote playback is subject to CORS. / 注意:麦克风需要 HTTPS(或 localhost)环境,远程播放受 CORS 限制。

Usage / 用法 #

This package is endorsed, which means you can simply use xue_hua_audio normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

本包是 xue_hua_audio 的官方背书实现:直接依赖 xue_hua_audio 即可自动引入, 无需在 pubspec.yaml 中单独添加。

0
likes
140
points
239
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Web implementation of the xue_hua_audio plugin, using HTMLAudioElement, Web Audio API and MediaRecorder. / xue_hua_audio 插件的 Web 实现,基于 HTMLAudioElement、Web Audio API 与 MediaRecorder。

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter, flutter_web_plugins, web, xue_hua_audio_platform_interface

More

Packages that depend on xue_hua_audio_web

Packages that implement xue_hua_audio_web