Giter Club home page Giter Club logo

nexplayer_unity_plugin's Introduction

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 all Android, iOS, macOS, and Windows devices. NexPlayer's Unity video plugin is the only player supporting Widevine DRM-protected HLS & DASH streaming on all Android & iOS devices.

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.

Table of Contents


NexPlayer for Unity Video Player Sample Interface

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.

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

  • HLS & DASH Streaming with ABR (Adaptive Bitrate)
  • 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-Instance Streaming (Display Multiple Streams Simultaneously)
  • 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 ✔️ ✔️ ✔️

Demo Installation Guide

1) Play Regular Video

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

NexPlayer Plugin

Load the player Scene by following the path: 'Assets/NexPlayer/Scenes' and opening 'NexPlayer_RawImage_Sample.unity' by double clicking. Test the playback by selecting the play button in the editor.

NexPlayer Plugin

2) Play a 360 Scene

Load the 360 Video Scene available in 'Assets/NexPlayer/NexPlayer360/Scenes/NexPlayer360.unity'. Test the playback by selecting the play button in the editor.

NexPlayer Video Streaming Player Plugin

3) Load NexPlayer™ Demo

Add the following scenes to the Unity build:

- Assets/NexPlayer/Scenes/MainMenu.unity
- Assets/NexPlayer/Scenes/NexPlayer_ChangeRenderMode_Sample.unity
- Assets/NexPlayer/Scenes/NexPlayer_MaterialOverride_Sample.unity
- Assets/NexPlayer/Scenes/NexPlayer_Multistream_RenderTexture
- Assets/NexPlayer/Scenes/NexPlayer_Multistream_RawImage
- Assets/NexPlayer/Scenes/NexPlayer_PlaybackMultipleRenderer_Sample.unity   
- Assets/NexPlayer/Scenes/NexPlayer_PlaybackSetting_Sample.unity
- Assets/NexPlayer/Scenes/NexPlayer_RawImage_Sample.unity   
- Assets/NexPlayer/Scenes/NexPlayer_RenderTexture_Sample.unity   
- Assets/NexPlayer/Scenes/NexPlayer_Transparency_Sample.unity   
- Assets/NexPlayer/Scenes/NexPlayer_VideoSpreadRenderTexture_Sample.unity 
- Assets/NexPlayer/NexPlayer360/Scenes/NexPlayer360.unity

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.


Contact

[email protected]
+34 914 184 356

nexplayer_unity_plugin's People

Contributors

noah-wade avatar franciscobnexplayer avatar nexnu avatar nexplayerthor avatar junexst avatar eugeniosalgado avatar colincop-nexplayer avatar franlbc97 avatar stefanovnt avatar

Watchers

James Cloos 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.