Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Stream videos in HLS & DASH with Widevine DRM using NexPlayer Video Streaming Player SDK for Unity on Android & iOS devices

Notifications You must be signed in to change notification settings

nickarthur/NexPlayer_Unity_Plugin

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

168 Commits
168 Commits
 
 
 
 

Repository files navigation

Unity video player


NexPlayer Unity Video Streaming Player Plugin

NexPlayer™ for Unity is a cross-platform video streaming player for Unity apps that supports both regular and 360 video playback across Android, iOS, Windows, macOS, Nintendo Switch™, VR Headsets and HTML5 Web Browsers/WebGL, with more devices being worked on everyday. NexPlayer's Unity video plugin is the only player supporting Widevine DRM-protected HLS & DASH streaming on all Android & iOS devices. Nintendo Switch is a trademark of Nintendo.

This repository contains the NexPlayer™ Unity video streaming player plugin features list as well as an installation guide. If you want to get a copy of our fully working demo, contact us at our website.

Demo Examples

Our Unity video plugin allows for the introduction of new exciting scenes within your Unity projects. With our plugin, you can use in-game actions and objects to modify video content.

Play videos on any Unity Game Object


NexPlayer for Unity Video Player Sample Interface

Multi Streaming


Table of Contents


Features

The NexPlayer™ for Unity video streaming player plugin contains the latest features. As our Unity video plugin is developed entirely in-house, we can implement any desired functionalities.

We support the following features:

Overview

  • mp4 download and playback
  • HLS & DASH Streaming with ABR (Adaptive Bitrate)
  • AES-128 HLS
  • Widevine DRM for Streaming and Local Playback for Android & iOS
  • Server-Side & Client-Side Ad Insertion
  • Windows & macOS Editor (Easy to Use)
  • Up to 8K (UHD) Resolution
  • Rendering Videos on 2D & 3D Objects

Basic Features

  • Auto Playback
  • Play / Pause
  • Seek
  • Audio Volume Adjustment
  • Loop Playback
  • Configurable Aspect Ratio
  • Portrait / Landscape Orientation

Advanced Features

  • Adjustable Buffering Time
  • Low Latency HLS & DASH Streaming
  • Offline Streaming Playback for HLS & DASH
  • Multi View Streaming (Display Multiple Synchronized Streams)
  • SRT, SMI, WebVTT Subtitles & CEA-608/708 Closed Captions
  • Multiple Audio & Subtitle Track Selection
  • Spread Video Across Multiple Objects
  • Content Information and Statistics (Audio & Video Bitrate, Codec, Average FPS, etc.)
  • Transparency and Chroma Support

360 Video Playback and Virtual Reality (VR)

  • Touch input which includes movement, and camera rotation
  • Gyroscope input to move the camera
  • Mouse input to move the camera
  • Automatic Ground Leveler to stabilize the video
  • Custom shaders to map 2D, 3D Over/Under and 3D Left/Right 360 videos
  • Compatible with VR libraries for Unity (Google Cardboard, Vive & Oculus)

Supported Platforms

Platform Supported Graphics APIs HLS DASH Local Inside App (Streaming Assets)
Android OpenGLES2, OpenGLES3 ✔️ ✔️ ✔️ ✔️
iOS Metal ✔️ ✔️ ✔️ ✔️
Windows DirectX11 / DirectX12 ✔️ ✔️ ✔️ ✔️
macOS Metal ✔️ ✔️ ✔️
HTML 5 WebGL 1.0 / WebGL 2.0 ✔️ ✔️

Demo Installation Guide

1) Play Regular Video

Create a new Unity project and import the NexPlayer™ Unity video streaming player plugin.

Quickstart_Step_0


Create the NexPlayer_Manager GameObject by either using the NexPlayer Context Menu at the top or right clicking in the Hierarchy (Object Context Menu).

Quickstart_Step_1


Create the NexPlayer_UI GameObject using the NexPlayer™ Context Menu.

Quickstart_Step_2


Set NexPlayer_Manager references to the UI elements by clicking on the button “Set UI References”.

Quickstart_Step_2_1


Create the NexPlayer Samples Controller GameObject using the NexPlayer™ Context Menu.

Quickstart_Step_3


Select any of the different samples provided by NexPlayer™.

Quickstart_Step_3_1


Finally, Change the NexPlayer™ component inside NexPlayer_Manager with the desired stream settings.

2) Play a 360 Scene

Select the value Nex Player 360 for the Active Sample setting at the Samples Controller GameObject.

NexPlayer Video Streaming Player Plugin

3) Load Any NexPlayer™ Sample Demo

Select any of the following samples as the Active Sample setting at the Samples Controller GameObject.

- Raw Image
- Render Texture
- Transparency
- Video Spread
- Material Override
- Multiple Renderers 
- Change Render Mode
- NexPlayer360
- Multistream Raw Image  
- Multistream Render Texture  

Add the Scene to the list and switch to the desired platform.

4) Configuration Steps

Manually select the compatible graphics APIs in the "Player Settings" section of Unity for each platform.

Android Platform:

  • To allow the application to have internet access for streaming videos, select the "Require" value for the "Internet Access" option in the Unity player settings.
  • Set "Write Permission" to External (SDcard)
  • Make sure to set a specific app ID under "Package Name" as required by Unity before compiling your application.

iOS Platform:

  • To view HTTP videos, enable "Allow downloads over HTTP" option.
  • After compilation, in XCode make sure to set a "Signing Team."
  • Under embedded binaries, click the "Plus" button and add:
    • widevine_cdm_sdk_release.framework
    • WidevineIntegration.framework

A quick and easy way to enable these settings is by using the helper component (NexEditorHelper.cs). If the helper component NexEditorHelper.cs is attached to any GameObject, it will include a graphics UI to auto detect any conflict regarding the graphics API, and it will promptly solve it.

Frequently Asked Questions

To view the FAQ proceed to the Unity Support Page


Contact

support.madrid@nexplayer.com
+34 914 184 356

About

Stream videos in HLS & DASH with Widevine DRM using NexPlayer Video Streaming Player SDK for Unity on Android & iOS devices

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.