OneNET IoT Platform Platform Introduction Introduction Manual Guidline for Device Development Guideline for Application Development
API
API Usage API List SDK MQTT LwM2M EDP Modbus TCP
HTTP Push MQ
Other Service Common Question

Instruction of use Android ODVPSDK

1. Introduction

Realize the function that local device push video stream to OneNET platform, including functions of device connection encryption, obtaining video stream channel, deleting video stream channel and uploading data. The project is based on OneNET Video SDK.

2. Environment

Android Studio 3.1.2

Gradle 4.4

Platform API 17~27

NDK 16

CPU armv7,armv8,x86,x86_64

minSdkVersion 17

3. Characteristics

Support ODVP device access protocol
Support push of live stream, historical stream and Onvif stream
MP4 file recording (for reference only)

4.SDK

4.1 Download Demo

Address:httpS://github.com/cm-heclouds/AndroidODVPSDK

4.2 Android project consists of Demo (sample) and SDK (ODVPSDK)

4.3 SDK consists of Android-SDK (video_sdk_wrapper) and C-SDK (video_sdk)

5.Demo Example

5.1 Working Principle

pic1

5.2 Compile Option Configuration

Open build.gradle in SDK-D_ONVIF=1 to open Onvif module compilation

externalNativeBuild {
    cmake {
        arguments '-D_ONVIF=1'
        abiFilters "armeabi-v7a","arm64-v8a","x86","x86_64"
    }
}

5.3 Device Access

httpS://github.com/cm-heclouds/AndroidODVPSDK/odvpsdk/library/src/main/java/com/ont/media/odvp/OntOdvp.java

5.4 Data Push-stream irface (including local video stream)

httpS://github.com/cm-heclouds/AndroidODVPSDK/odvpsdk/library/src/main/java/com/ont/media/odvp/OntRtmp.java

5.5 onvif Device Push-stream Interface

5.5.1 Interface Introduction

httpS://github.com/cm-heclouds/AndroidODVPSDK/odvpsdk/library/src/main/java/com/ont/media/odvp/OntOnvif.java

5.5.2 Configure File

The file format is self-formulated and the content must contain the following

{
    "onvif":[
        {
        {
            "title":"xx",
            "channel_id":1,
            "url": "xxxxxxxxxxxxxxxx",       // The address onvif camera access
            "user": "xxxx",                // camera username
            "passwd": "xxxxx",             // camera password
            "desc":"xxxx",              
            "defaultlevel": 1
        }
    ]
}

results matching ""

    No results matching ""