iscflutterplugin 1.0.11

  • Readme
  • Changelog
  • Example
  • Installing
  • 59

isc_flutter_plugin播放器插件 #

  • 适配最新版isc平台 v1.4+

海康isc平台,flutter版播放器插件,支持Android和ios;并提供了Dart版AK/SK验证代码 #

###不同状态下支持的功能不同,插件中注释写的很详细,有问题也可以加交流群讨论

  • 预览状态下支持的功能:

  • 预览

  • 抓拍

  • 录像

  • 云台控制

  • 码流平滑切换(仅支持Android设备)

  • 回放状态下支持的功能:

  • 回放

  • 抓拍

  • 录像

  • 指定回放开始时间位置

有任何使用上的问题可以加QQ群 856941179 大家一起研究学习 #

1.0.11 #

  • 修复 getOSDTime方法返回值差异

1.0.9 #

  • 增加多通道,实现多通道播放

1.0.8 #

  • 完善回放功能,增加必要注释

1.0.7 #

  • Android端sdk优化回调

1.0.6 #

  • 兼容isc1.3 及1.4版本,可根据version进行切换

1.0.4 #

  • 完善ios端抓拍,录像功能

1.0.3 #

  • 完善readme

1.0.2 #

  • 完善demo,包括 预览,码流切换,抓拍,录像,云台控制功能

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:iscflutterplugin_example/video_play_back.dart';
import 'package:iscflutterplugin_example/video_real_play.dart';
import 'package:flutter/material.dart';
import 'package:iscflutterplugin/isc_http.dart';

void main() => runApp(MaterialApp(
      home: HomePage(),
    ));

class HomePage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return _HomePageState();
  }
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    //初始化配置
     ArtemisConfig.host = "xxx";
     ArtemisConfig.appKey = "xxx";
     ArtemisConfig.appSecret = "xxx";


    return Scaffold(
      appBar: AppBar(
        title: Text(
          '海康isc播放器插件,支持android/ios',
        ),
      ),
      body: Container(
        width: double.infinity,
        height: double.infinity,
        child: Column(
          children: <Widget>[
            Container(
              width: double.infinity,
              child: RaisedButton(
                onPressed: () {
                  Navigator.push(
                    context,
                    MaterialPageRoute(
                      builder: (_) {
                        return VideoRealPlayPage();
                      },
                    ),
                  );
                },
                child: Text('实时预览'),
              ),
            ),
            Container(
              width: double.infinity,
              child: RaisedButton(
                onPressed: () {
                  Navigator.push(
                    context,
                    MaterialPageRoute(
                      builder: (_) {
                        return VideoPlayBackPage();
                      },
                    ),
                  );
                },
                child: Text('视频回放'),
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  iscflutterplugin: ^1.0.11

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:iscflutterplugin/iscflutterplugin.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
18
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
59
Learn more about scoring.

We analyzed this package on Jul 11, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.15
  • Flutter: 1.17.5

Analysis suggestions

Package does not support Flutter platform Linux

Because:

  • package:iscflutterplugin/iscflutterplugin.dart that declares support for platforms: Android, iOS

Package does not support Flutter platform Web

Because:

  • package:iscflutterplugin/iscflutterplugin.dart that declares support for platforms: Android, iOS

Package does not support Flutter platform Windows

Because:

  • package:iscflutterplugin/iscflutterplugin.dart that declares support for platforms: Android, iOS

Package does not support Flutter platform macOS

Because:

  • package:iscflutterplugin/iscflutterplugin.dart that declares support for platforms: Android, iOS

Package not compatible with SDK dart

Because:

  • iscflutterplugin that is a package requiring null.

Health suggestions

Format lib/isc_player.dart.

Run flutter format to format lib/isc_player.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
crypto ^2.1.3 2.1.5
dio ^3.0.9 3.0.9
flutter 0.0.0
path_provider ^1.6.8 1.6.11
permission_handler ^5.0.0+hotfix.8 5.0.1+1
Transitive dependencies
charcode 1.1.3
collection 1.14.12 1.14.13
convert 2.1.1
file 5.2.1
http_parser 3.1.4
intl 0.16.1
meta 1.1.8 1.2.2
path 1.7.0
path_provider_linux 0.0.1+2
path_provider_macos 0.0.4+3
path_provider_platform_interface 1.0.2
permission_handler_platform_interface 2.0.1
platform 2.2.1
plugin_platform_interface 1.0.2
process 3.0.13
sky_engine 0.0.99
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
xdg_directories 0.1.0