Giter Site home page Giter Site logo

boyan01 / lychee_player Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 2.0 11.25 MB

A simple audio player plugin for flutter.

License: GNU Affero General Public License v3.0

Ruby 1.43% Swift 0.41% Objective-C 0.26% Dart 6.70% Kotlin 0.93% CMake 22.68% C++ 65.21% C 1.44% Shell 0.33% Objective-C++ 0.15% HTML 0.45%

lychee_player's People

Contributors

boyan01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lychee_player's Issues

参考 Chromium Media Playback 实现

Chromium Media Playback Diagram.

image

Chromium Media Codebase

计划实现

  1. FFmpegDemuxer 负责解复用 Datasource 中的 bytestream, 分别提供 AudioVideoStream.
  2. AudioRenderer/VideoRenderer 取得 Stream 后,从 Stream 中读取 compressed audio/video buffer, 提交给 AudioDecoder / VideoDecoder 解码。
  3. Renderer 取得解码后的 Frame,并送往对应的 AudioDevice Textures 进行最后的渲染。
  4. 使用 MessageLoop 来管理和协同线程任务。

Relate

#8

add buffering end event

I/flutter ( 1965): on method call: onPlaybackEvent args = {position: 47018, updateTime: 65729862, playerId: isolates/1450889906147679_1, event: 3}
I/flutter ( 1965): NoSuchMethodError: The method '>' was called on null.
I/flutter ( 1965): Receiver: null
I/flutter ( 1965): Tried calling: >(0)
I/flutter ( 1965): #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
I/flutter ( 1965): #1      _RemotePlayerManager._updatePlayerState (package:audio_player/src/audio_player.dart:184:22)
I/flutter ( 1965): #2      _RemotePlayerManager._handleMessage (package:audio_player/src/audio_player.dart:158:7)
I/flutter ( 1965): #3      new _RemotePlayerManager.<anonymous closure> (package:audio_player/src/audio_player.dart:138:14)
I/flutter ( 1965): #4      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:430:55)
I/flutter ( 1965): #5      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:383:34)
I/flutter ( 1965): #6      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:283:33)
I/flutter ( 1965): #7      _invoke3.<anonymous closure> (dart:ui/hooks.dart:280:15)
I/flutter ( 1965): #11     _invoke3 (dart:ui/hooks.dart:279:10)
I/flutter ( 1965): #12     _dispatchPlatformMessage (dart:ui/hooks.dart:154:5)

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.