Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LateError (LateInitializationError: Field 'dynamicLibrary' has not been initialized.) #362

Open
greenonsil-dev opened this issue Feb 22, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@greenonsil-dev
Copy link

Hi. I want to use your library. But I can't use it :(..

When I use your Library, I met this Error.

Can you tell me why I met this error?

Here is my code.

import 'package:flutter/material.dart';
import 'package:dart_vlc/dart_vlc.dart';

void main() {
  DartVLC.initialize();
  runApp(
    const MaterialApp(
      home: MyApp(),
    ) 
  );
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  Player player = Player(
    id: 69420,
    commandlineArguments: ['--no-video'],
  );

  @override
  void initState() {
    super.initState();

    player.open(
      Media.network('https://www.example.com/music.aac'),
      autoStart: true,
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('CCTV 테스트~~'),
      ),

      body: Video(
        player: player,
        height: 1920.0,
        width: 1080.0,
        scale: 1.0,
        showControls: false,
      ),
    );
  }
}


image

@greenonsil-dev greenonsil-dev added the bug Something isn't working label Feb 22, 2023
@greenonsil-dev
Copy link
Author

Oh.. I used my Android Phone.

When I changed platform. I worked.

but.. I want to use that Library in my Android Phone

Do you have plan that support Android or IOS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant