iscflutterplugin 2.1.2 copy "iscflutterplugin: ^2.1.2" to clipboard
iscflutterplugin: ^2.1.2 copied to clipboard

A Flutter plugin to play hikvision isc platform. It used hikvision native library, *.so for java and *.a for ios.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:iscflutterplugin/isc_http.dart';
import 'package:iscflutterplugin_example/video_play_back.dart';
import 'package:iscflutterplugin_example/video_real_play.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: ElevatedButton(
                onPressed: () {
                  Navigator.push(
                    context,
                    MaterialPageRoute(
                      builder: (_) {
                        return VideoRealPlayPage();
                      },
                    ),
                  );
                },
                child: Text('实时预览'),
              ),
            ),
            Container(
              width: double.infinity,
              child: ElevatedButton(
                onPressed: () {
                  Navigator.push(
                    context,
                    MaterialPageRoute(
                      builder: (_) {
                        return VideoPlayBackPage();
                      },
                    ),
                  );
                },
                child: Text('视频回放'),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
5
likes
100
pub points
47%
popularity

Publisher

unverified uploader

A Flutter plugin to play hikvision isc platform. It used hikvision native library, *.so for java and *.a for ios.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

crypto, dio, flutter, path_provider, permission_handler

More

Packages that depend on iscflutterplugin