npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@roitium/expo-orpheus

v0.4.6

Published

A player for bbplayer

Readme

Orpheus

BBPlayer 内部音频模块

这是一个为 BBPlayer 项目构建的高性能定制音频播放库。旨在替代 react-native-track-player,以提供与 Android Media3 (ExoPlayer) 更紧密的集成,并针对 Bilibili 音频流逻辑提供了原生层支持。

与 B 站集成

通过 Orpheus.setBilibiliCookie() 设置 cookie,稍后会自动用于音频流请求。(不设置也行,只是无法获取高码率的音频)

Orpheus 通过特殊的 uri 识别来自 bilibili 的资源,格式为 orpheus://bilibili?bvid=xxx&cid=111&quality=30280&dolby=0&hires=0,若不提供 cid 则默认请求第一个分 p。quality 参考 b 站 api。

缓存

Orpheus 内部有两层缓存:

  1. 用户手动下载的缓存
  2. 边下边播:LRU 缓存,256mb

下载系统

Orpheus 集成了 Media3 的 DownloadManager,抛弃了原先 BBPlayer 中繁琐的下载实现。

使用

虽然该包是公开的,但仍然主要供 BBPlayer 内部使用。可能不会有完整的文档覆盖。我们欢迎你 fork 后自行修改使用。