openkraken / kraken

A web standards-compliant, high-performance rendering engine based on Flutter.
https://openkraken.com
Apache License 2.0
4.93k stars 305 forks source link

使用 kraken_video_player 出现 No implementation found for method setMuted on channel flutter.io/krakenVideoPlayer #1425

Open yingzheng1980 opened 2 years ago

yingzheng1980 commented 2 years ago

使用的 Kraken 版本 | What version of kraken are you using

flutter 版本 2.5.0 kraken_video_player: ^2.4.1 kraken: ^0.10.4

重现步骤 | Steps To Reproduce

使用的是官网 多媒体 中的示例 js,下面是我的代码

import 'package:flutter/material.dart';
import 'package:kraken/kraken.dart';
import 'package:kraken_video_player/kraken_video_player.dart';

void main() {
  KrakenVideoPlayer.initialize();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    Kraken kraken = Kraken(bundle: KrakenBundle.fromUrl('https://kraken.oss-cn-hangzhou.aliyuncs.com/demo/guide-video.js'));

    return MaterialApp(
        title: 'Flutter Demo',
        theme: ThemeData(
          primarySwatch: Colors.blue,
          visualDensity: VisualDensity.adaptivePlatformDensity,
        ),
        home: kraken
    );
  }
}

麻烦各位大大帮忙看一下

image