Code Monkey home page Code Monkey logo

zby-api-js-demo's Introduction

直播云API调用示例

此demo网页只兼容chrome和firefox浏览器

本仓库中的index.html演示了如何通过Javascript来调用直播云提供的api, 演示页面调用的api有如下

  • 访问api时对请求进行签名的方法
  • 获取任务列表
  • 获取在线用户列表
  • 播放直播视频
  • 发送文本消息
  • 发送语音消息(打开控制界面可见)
  • 创建拉流任务
  • 终止一个任务
  • 使用方法,在演示界面中输入服务码与服务码对应的共享密钥, 如果不了解服务码和共享密钥的概念请看这里
  • 如果不知道共享密钥,可以登录到直播云控制台查看。
  • 认证成功后列出此服务码下面当前所有正在进行的(不论是通过手机推上的流还是通过API接口创建的拉流)任务,以及每个直播对应的输出,可选对相应的输出流进行播放。
  • 如果要对直播进行控制,则在演示url后加上?console=true
  • 此demo的在线演示, 点击这里 如需显示控制界面点击这里

访问直播云网站

zby-api-js-demo's People

Contributors

qengli avatar

Stargazers

Albert avatar Dominic Yin avatar  avatar

Watchers

 avatar 沃安科技 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.