Giter VIP home page Giter VIP logo

Comments (3)

befovy avatar befovy commented on May 20, 2024

比如播放当前视频可以设置停止其他所有播放

fijkplayer 中目前没有这个功能,谢谢关注

from fijkplayer.

befovy avatar befovy commented on May 20, 2024

develop 分支已经增加全部播放器支持。

用法参考单元测试

    test("allInstance", () async {
      FijkPlayer player1 = FijkPlayer();
      FijkPlayer player2 = FijkPlayer();

      expect(FijkPlayer.all.length, 0);

      expect(player1, isNotNull);
      expect(player2, isNotNull);
      int id1 = await player1.id;
      expect(id1, player1.idSync);
      int id2 = await player2.id;
      expect(id2, player2.idSync);

      expect(id1 != id2, true);
      expect(FijkPlayer.all.length, 2);

      await player1.release();
      expect(FijkPlayer.all.length, 1);
      await player2.release();
      expect(FijkPlayer.all.length, 0);
    });
      FijkPlayer.all.where((p) => p.idSync != id1).forEach((p) async{
            //  do what you want.
            // for example, pause all player expect player1
      });

from fijkplayer.

befovy avatar befovy commented on May 20, 2024

此更新发布在 0.1.3 版本中

from fijkplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.