@12stonechurch/react-native-audio-toolkit 中文文档教程
这是 React Native 的跨平台(Android 和 iOS)音频库。 支持音频播放和录音。 除了基本的 功能,实现了许多有用的功能,例如寻找, 通过网络循环和流式传输音频文件。
ExampleApp 中包含如何使用此库的示例 目录。 该演示展示了大部分可用的功能,包括 docs 下的文档。 在最简单的情况下,播放媒体就像 easy as:
new Player('filename.mp4').play();
并以类似方式将媒体记录到 filename.mp4
new Recorder(‘filename.mp4’).record();
How to get this stuff running?
- For a quick test drive, check out the demo application
- Include the library in your project
Documentation
- Find the API documentation here
- Examples on playback from various media sources
- Notes on developing the library itself
- Rough state diagram of the Player
License
所有 JavaScript、Android 和 iOS 代码均在 MIT 许可下获得许可,请参阅 LICENSE 文件。 一些文件来自 React Native 模板并已获得许可 因此。
This is a cross-platform (Android and iOS) audio library for React Native. Both audio playback and recording is supported. In addition to basic functionality, many useful features are implemented such as seeking, looping and streaming audio files over the network.
An example how to use this library is included in the ExampleApp directory. The demo showcases most of the functionality that is available, with documentation under docs. In the simplest case, playing media is as easy as:
new Player('filename.mp4').play();
and recording media to filename.mp4 similarly
new Recorder(‘filename.mp4’).record();
How to get this stuff running?
- For a quick test drive, check out the demo application
- Include the library in your project
Documentation
- Find the API documentation here
- Examples on playback from various media sources
- Notes on developing the library itself
- Rough state diagram of the Player
License
All JavaScript, Android and iOS code licensed under MIT license, see LICENSE file. Some of the files are from React Native templates and are licensed accordingly.