Giter Site home page Giter Site logo

fxp-plugin-video's Introduction

fxp-plugin-video


平台

Android,IOS

说明

该Cordova插件基于海康威视视频SDK二次开发,当前支持单路/多路实时监控视频,后续会支持监控视频回放等功能。点击查看详细实践教程。

安装

    cordova plugin add fxp-plugin-video

由于插件体积较大(海康SDK文件太大),下载安装会比较慢,请耐心等待。也可以下载插件后本地安装。

使用

参数格式

    var params = {
        host:"192.168.10.95",
        port:"8000",
        user:"admin",
        pass:"12345",
        channel:"1",
        desc:"description information ..."
    }

播放单路视频(支持指定通道)

    fxp.plugin.HIKVideo.playSingle(params,function(result){
        console.log("********************HIKVideo Success");

    },function(error){
        console.log("********************HIKVideo Error:" + error);

    });

该api仅支持Android。

播放单路/多路视频(自动适配单路/多路)

    fxp.plugin.HIKVideo.playVideo(params,function(result){
        console.log("********************HIKVideo Success");

    },function(error){
        console.log("********************HIKVideo Error:" + error);

    });

该api支持Android和IOS,IOS不支持自动适配单路/多路。

插件代码中有详细注释,欢迎提issue or fork,共同完善。

fxp-plugin-video's People

Contributors

fangxiaopeng avatar

Watchers

haoht 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.