Giter Club home page Giter Club logo

autokaka / refined_video_player Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 4.0 71.45 MB

A highly customizable, user-friendly video player using PlatformView. Using exoplayer on Android, IOS not implemented yet.

Home Page: https://github.com/Autokaka/refined_video_player

License: BSD 3-Clause "New" or "Revised" License

Ruby 3.96% Swift 1.48% Objective-C 2.12% Dart 64.49% Java 27.95%
flutter flutter-packages flutter-package flutter-video-player video-player video dart dart-packages dart-package

refined_video_player's Introduction

🥶 Not an open-source project enthusiast.

🙋 Providing users with no other choice is always the best choice.

🚀 Keeping the open-source project proud forever, or never.

🤔 Dream bigger, coding less.

📝 Currently focusing on

  • Modern C++, TypeScript, AssemblyScript
  • GameEngine, WebAssembly, OpenHarmony

refined_video_player's People

Contributors

autokaka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

refined_video_player's Issues

报错报错!!!

Compiler message:
../lib/src/video_player.dart:448:17: Error: No named parameter with the name 'pressedElevation'.
pressedElevation: 10,
^^^^^^^^^^^^^^^^
/E:/Program%20Files/Git/flutter/packages/flutter/lib/src/material/slider_theme.dart:2215:9: Context: Found this candidate, but the arguments don't match.
const RoundSliderThumbShape({
^^^^^^^^^^^^^^^^^^^^^

切换播放地址有点问题!!!

切换地址 缓存UI一直显示,进度条和时间没有获取到

但是视频已经播放了

@OverRide
void initState() {
super.initState();
controller = RVPController(
widget.dataSource,
);
}

@OverRide
void didUpdateWidget(VideoPlayer oldWidget) {
if (widget.dataSource == controller.url) {
super.didUpdateWidget(oldWidget);
} else {
Future.wait([
controller.setMediaSource(widget.dataSource),
]).then(
(value) => super.didUpdateWidget(oldWidget),
);
}
}

@OverRide
void dispose() {
controller.dispose();
super.dispose();
}

@OverRide
Widget build(BuildContext context) {
playerInstance = RefinedVideoPlayer(
controller: controller,
topAreaBuilder: buildTopArea,
onGestureTap: () => setState(
() => showTopArea = !showTopArea,
),
);
return SafeArea(child: playerInstance);
}

m3u8不能播放吗?报错了

https://youku.cdn11-okzy.com/20200525/16893_c8f179a6/index.m3u8
https://cdn.jsdelivr.net/gh/myxuwei123/lucky/movie/jingjuegucheng_01.m3u8

V/AudioManager(27477): querySoundEffectsEnabled...
I/ExoPlayerImpl(27477): Init 94b901f [ExoPlayerLib/2.11.7] [HWHMA, HMA-AL00, HUAWEI, 29]
I/DecorView: old windowMode:0 new windoMode:1
D/OpenGLRenderer(27477): disableOutlineDraw is true
I/HiTouch_HiTouchSensor(27477): HiTouch restricted: Sub windows restricted.
D/HiTouch_PressGestureDetector(27477): onAttached, package=cn.dshitpie.refined_video_player_example, windowType=2030, mHiTouchRestricted=true
D/mali_winsys(27477): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
V/AudioManager(27477): getStreamVolume streamType: 3 volume: 6
E/ExoPlayerImplInternal(27477): Source error
E/ExoPlayerImplInternal(27477): com.google.android.exoplayer2.source.UnrecognizedInputFormatException: None of the available extractors (MatroskaExtractor, FragmentedMp4Extractor, Mp4Extractor, Mp3Extractor, AdtsExtractor, Ac3Extractor, TsExtractor, FlvExtractor, OggExtractor, PsExtractor, WavExtractor, AmrExtractor, Ac4Extractor, FlacExtractor) could read the stream.
E/ExoPlayerImplInternal(27477): at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractorHolder.selectExtractor(ProgressiveMediaPeriod.java:1096)
E/ExoPlayerImplInternal(27477): at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:975)
E/ExoPlayerImplInternal(27477): at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:415)
E/ExoPlayerImplInternal(27477): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/ExoPlayerImplInternal(27477): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/ExoPlayerImplInternal(27477): at java.lang.Thread.run(Thread.java:929)
W/System (27477): A resource failed to call release.

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.