Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including @xmly-fem/web-jssdk with all npm packages installed. Try it out:

var webJssdk = require("@xmly-fem/web-jssdk")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@xmly-fem/web-jssdk v1.4.4

喜马拉雅开放平台 · H5 网页应用接入 JSSDK

喜马拉雅开放平台 · H5 网页应用接入 JSSDK

Introduction

JSSDK 用于第三方开发者快速接入喜马拉雅开放平台。第三方开发者在开发自己的 H5 网页时(是否支持小程序?),接入 JSSDK 后,您将获得以下能力:

  1. 调用喜马拉雅开放平台对外开放的所有接口(查看 API 列表),获取需要的相关数据。但是,不包含限制了必须“服务端调用”的接口;
  2. 使用 JSSDK 提供的 XMplayer 音频播放器,直接通过喜马拉雅的音频 ID 播放音频;

Documentation

👉 使用文档

Installation

NPM

npm install @xmly-fem/web-jssdk

Yarn

yarn add @xmly-fem/web-jssdk

Browser Compatibility

  • Google Chrome 7.0+
  • Internet Explorer 9.0+
  • Microsoft Edge
  • Firefox 4.0+
  • Safari 5.1.4+
  • Mobile Safari 6.0+ (after user input)
  • Opera 12.0+

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free