We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connect
class
react-native-video
AVFoundation
react-native-sound
StreamKit
DOUAudioStreamer
blob
react-native-fetch-blob
The text was updated successfully, but these errors were encountered:
No branches or pull requests
connect
,之前写 View 层基本就是怎么快怎么来,虽然 chrome profile 和 Xcode 调试显示还没有性能问题,这个我倒是想提前优化一下;class
来写 component 了(不过这里还有一个 React Native animation 的问题),保证每个组件都是 functional component,这样即便不用 Jest 的 snapshot 测试起来也很方便react-native-video
,在 iOS 上AVFoundation
的简单实现,每次加载音乐都要把整首歌全都下载过来才能播放。另外一个选择是react-native-sound
,这个也写好了但效果并不比react-native-video
好。一些支持 cache 的音乐播放实现实际上用的是StreamKit
或DOUAudioStreamer
,但他们的 API 还不满足现在枸杞的需求。如果纯用 JavaScript 的话倒是有一个思路:把音乐先 fetch 成blob
,然后用react-native-fetch-blob
转换成 stream 给react-native-video
播放,下载完成之后缓存在本地第二次播放的时候就直接播放本地文件。不过具体到底能不能 work 还不清楚。最好还是有原生语言开发者能做这类事。The text was updated successfully, but these errors were encountered: