Code Monkey home page Code Monkey logo

com.pengyanb.vlcstreamplayer's Introduction

com.pengyanb.vlcstreamplayer

PhoneGap/Cordova VLC Stream Player Plugin

Supported Platform

iOS 7.0 up

Android

Installation

phonegap plugin add https://github.com/pengyanb/com.pengyanb.vlcstreamplayer.git

Usage

window.PYB.vlcStreamPlayer.openPlayerForStreamURL(successHandler, errorHandler, urlString);

For Instance:

window.PYB.vlcStreamPlayer.openPlayerForStreamURL(function(){}, function(){}, "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov");

Extra setup step for iOS

  • Integrate MobileVLCKit.framework to your iOS project via CocoaPods

OR obtain and build MobileVLCKit.framework from VideoLan, then add to your project as Linked Frameworks and Libraries

OR download the built version directly from here, then add to your project as Linked Frameworks and Libraries

  • Make sure all the framework is include to your project correctly:

![frameworks] (https://raw.githubusercontent.com/pengyanb/PhonegapVlcStreamPlayerDemo/master/images/Screen%20Shot%202016-02-11%20at%2010.25.40.png)

libbz2.dylib, libiconv.dylib, libstdc++.dylib, libz.dylib can be found by go to Build Phases -> Link Binary with Libraries -> + -> Add other, then press Command key + shift + G, type /usr/lib

  • Go to Build Settings -> Build Options -> Enable Bitcode -> set to NO

Enable Bitcode

  • Under Build Settings -> Apple LLVM 7.0 - Language - C++

    set C++ Language Dialect to C++11[-std=c++11]

    set C++ Standard Library to libstdc++(GNU C++ Standard Library)

C++

Demo

[PhoneGap VLC Stream Player Demo] (https://github.com/pengyanb/PhonegapVlcStreamPlayerDemo)

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.