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

react-native-bloom-video

v1.0.7

Published

Bloom Video 视频sdk react-native 版本

Downloads

17

Readme

Bloom Video React-Native SDK 接入文档

概述

本文档描述了 Android 开发者如何集成 Bloom Video SDK(后面简称为 VideoSdk),通过集成 VideoSdk 为 App 引入完备的短视频服务。

如果需要在视频流中展示广告,则需集成 AdSdk。本文档默认需要展示广告,展示广告可以创造收益。

暂时只支持 Android 客户端,ios 开发中。

术语介绍

AppId:应用程序 id,以 ba 开头的 18 位 hex 字符串,如 ba0063bfbc1a5ad878;

SDK 集成

1、添加 NPM

$ npm install react-native-bloom-video --save

$ yarn add react-native-bloom-video --save

2、添加 Maven 仓库地址

allprojects {
    repositories {
        maven {
            credentials {
                username 'iqLuKm'
                password 'pomH01oYcR'
            }
            url 'https://repo.rdc.aliyun.com/repository/117933-release-sPkE7F/'
        }
    }
}

SDK 使用

import { VideoStreaming } from "react-native-bloom-video";

SDK 初始化

开发者需要初始化 AppId 后才能使用相关功能。例如:

<VideoStreaming
  appId="ba0063bfbc1a5ad878"
  style={{
    width: width,
    height: height,
    backgroundColor: "blue",
  }}
  play={true}
  onChange={(params) => {
    console.log("params", params);
  }}
/>

SDK 返回参数说明

params 参数说明:

| 参数 | 说明 | 类型 | 说明 | | --------- | -------------- | ------ | ------------------ | | type | 广告状态 | string | - | | id | 视频 Id | string | - | | videoType | 视频类型 | string | 1:视频,2:广告 | | code | 返回的错误代码 | int | type 为 onError 时 | | message | 返回的错误消息 | string | type 为 onError 时 |

params.type 说明:

| type | 说明 | | --------------- | -------------- | | onVideoShow | 视频切换展示 | | onVideoStart | 播放开始 | | onVideoPause | 播放暂停 | | onVideoResume | 播放恢复 | | onVideoComplete | 播放完成 | | onVideoError | 播放出错 | | onLikeClick | 点赞或取消点赞 |