Uiza Documentation
2020-05-07
2020-05-07
  • Hola! 👋
  • Getting Started
    • Introduction
    • Authentication
    • Errors
    • Quick Starts
      • Live Streaming
      • Video Streaming
    • Pagination
    • Recommended Specifications
    • Postman Collections
    • Sample Streaming Apps
      • NodeJS Live Streaming App
      • Java Live Streaming App
      • Python Live Streaming App
      • How to integrate live streaming into an Android App using Uiza’s Live API
    • Versioning
  • API Reference
    • Live Entities
      • Create A Live Entity
      • Retrieve A Live Entity
      • Update A Live Entity
      • [Deprecated] Update A Live Entity
      • Delete A Live Entity
      • List All Live Entities
      • [Deprecated] Enable Live Entity DVR
      • [Deprecated] Disable Live Entity DVR
      • Reset Ingest Key
    • Live Sessions
      • Retrieve A Live Session
      • List All Live Sessions
    • Video Entities
      • Retrieve A Video Entity
      • Update A Video Entity
      • Publish A Video Entity
      • Delete A Video Entity
      • List All Video Entities
    • Video Presets
      • Create a Video Preset
      • Retrieve a Video Preset
      • Update a Video Preset
      • Delete a Video Preset
      • List all Video Presets
      • Add Profile(s) to Video Preset
      • Remove Profile(s) from Video Preset
    • Video Profiles
      • List All Video Profiles
    • Events
      • Retrieve An Event
      • List All Events
      • Event Types
    • Webhook Endpoints
      • Create Webhook Endpoint
      • Retrieve Webhook Endpoint
      • Update Webhook Endpoint
      • [Deprecated] Update Webhook Endpoint
      • Delete Webhook Endpoint
      • List All Webhook Endpoints
      • [Deprecated] Enable A Webhook Endpoint
      • [Deprecated] Disable A Webhook Endpoint
  • SDK REFERENCE
    • Introduction
    • Android SDK
      • Android Player SDK
      • Android Broadcast SDK
    • iOS SDK
      • iOS Player SDK
      • iOS Broadcast SDK
    • Web Player SDK
  • API UPGRADES
    • Release Notes
    • API Changelog
Powered by GitBook
On this page

Was this helpful?

  1. SDK REFERENCE

Web Player SDK

How to use Uiza's webSDK

  1. Include css, js into html:

<!-- 1. Include UIZA library. -->
<link href='https://sdk.uiza.io/v5/release/uiza.css' rel='stylesheet' crossorigin='anonymous'> <!-- route to uiza.css -->
<script src='https://sdk.uiza.io/v5/release/uiza.min.js' crossorigin='anonymous'></script> <!-- route to uiza.min.js -->

2. The video player will prepend the player into this <div> tag:

<video id='player' data-uiza-provider=hlsjs crossorigin playsinline autoplay muted></video>

3. This code creates an UIZA player:

new Uiza(document.getElementById('player'), {
	src: 'HLS_LINK', // This may be HLS_LINK or PLAY_BACK_LINK
});

4. Full code example:

<!DOCTYPE html>
<html lang='en' dir='ltr'>

<head>
  <meta charset='utf-8'>
  <title></title>
  <meta name='viewport' content='width=device-width,initial-scale=1'>

  <style>
    body {
      margin: 0;
      padding: 0;
    }
  </style>

<link href='https://sdk.uiza.io/v5/release/uiza.css' rel='stylesheet' crossorigin='anonymous'> 
<script src='https://sdk.uiza.io/v5/release/uiza.min.js' crossorigin='anonymous'></script> 

</head>

<body>
  <video id='player' data-uiza-provider=hlsjs crossorigin playsinline autoplay muted></video>

  <script>
    new Uiza(document.getElementById('player'), {
		  src: 'HLS_LINK',
    });
  </script>

</body>
</html>
PreviousiOS Broadcast SDKNextRelease Notes

Last updated 4 years ago

Was this helpful?