Giter Site home page Giter Site logo

hyongxin / libvr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sqvcnet/libvr

0.0 2.0 0.0 86.89 MB

A cross-platform library for quickly constructing iOS and Android video player, 360 degree, 360 degree 3D VR player etc. Support local file playing and http, rtmp, hls(correctly support DISCONTINUITY) etc. protocols.

License: GNU Affero General Public License v3.0

Objective-C 5.88% Objective-C++ 4.94% C++ 67.43% C 13.12% GLSL 8.64%

libvr's Introduction

libvr

A cross-platform library for quickly constructing iOS and Android video player, 360 degree, 360 degree 3D VR player etc. Support local file playing and http, rtmp, hls(correctly support DISCONTINUITY) etc. protocols.

Preview

ScreenShot

Features

  • Common

  • remove rarely used ffmpeg components to reduce binary size

  • workaround for some buggy online video.

  • Android

  • platform: API 9~23

  • cpu: ARMv7a, ARM64v8a, x86 (ARMv5 is not tested on real devices)

  • video-output: OpenGL ES 2.0

  • audio-output: AudioTrack, OpenSL ES

  • hw-decoder: MediaCodec (API 16+, Android 4.1+)

  • iOS

  • platform: iOS 7.0~10.3.x

  • cpu: armv7, arm64, i386, x86_64, (armv7s is obselete)

  • video-output: OpenGL ES 2.0

  • audio-output: AudioQueue

  • hw-decoder: VideoToolbox (iOS 8+)

How to use

You can also run the simple demo.xcodeproj to take the first glance

Notice: If you want to use this project in your own iOS project, remember to add "CoreMedia.framework, AudioToolbox.framework, VideoToolbox.framework, libz.dylib, libc++.dylib, GLKit.framework" in "Link Binary with Libraries" of project "Build Phrases". In order to add libz.dylib and libc++.dylib, you may be need to "Add Other" then press "Shift+Command+G" then input "/usr/lib" then find them, since the *.tbd cannot work.

For iOS

You should add NSMotionUsageDescription(Privacy - Motion Usage Description) in Info.plist, see https://developer.apple.com/documentation/coremotion

Important

The OpenGL ES code may run faster or slower in simulator than on an actual device. Always profile and optimize your drawing code on a real device, and never assume that Simulator reflects real-world performance. See https://developer.apple.com/library/content/documentation/OpenGLES/Conceptual/OpenGLESHardwarePlatformGuide_iOS/OpenGLESiniOSSimulator/OpenGLESiniOSSimulator.html for more details.

libvr's People

Contributors

sqvcnet avatar

Watchers

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