mjl0602 / flutter_tiktok Goto Github PK
View Code? Open in Web Editor NEWFlutter tiktok short video app.
Flutter tiktok short video app.
#import <IJKPlayer/IJKPlayer.h> 'IJKPlayer/IJKPlayer.h' file not found
Error running pod install
Error launching application on iPhone 11.
拍摄短视频用的什么SDK
播放进度条**。
https://user-images.githubusercontent.com/5417557/170851432-ae4f0030-d24c-44eb-8f7d-cf871bf1864b.mp4
视频比例不同时
在预加载中 如果上一个视频是4:3 下一个是16:9
会出现 16:9的视频 加载时 还是4:3的播放器比例 并且会有短暂黑屏获取不到视频缩略图
直接跑源码也存在一样的问题。
Compiler message:
../../soft/flutter/packages/flutter/lib/src/material/text_theme.dart:117:9: Error: The superclass, 'Diagnosticable', has no unnamed constructor that takes no arguments.
const TextTheme({
切换视频的时候会黑屏。怎么添加封面,可以加缓存?让切换的时候不会黑屏吗?
hello,我的项目中播放器并不是flutter播放器,而是嵌的nativeView的播放器,发现这种情况下,点击动作没有生效,想知道作者有什么好的思路指点一下吗,感想
有时候只有声音没有画面是怎么回事?
还有加载失败重播应该如何处理比较好?
你一下子创建了所有播放器组件, 当视频多了起来后, 性能消耗太大了吧, 我只是把视频增加到了20个的时候, 上下滑的时候我的手机已经发烫了
项目直接就可以集成
How to jump to the specified location of the video in initialization
Big guy I want to ask down to touch the bottom method where
大佬我想问下上拉触底方法在哪里呀
I am newbee for flutter, I can't run it at all, Could you give me some help?
I git clone it , and then do :
flutter pub get
fluterr build web
google-chrome build/web/index.html
But I see nothing. The linux terminal print some error messages,
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[62319:62319:0102/154436.247738:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[62156:62182:0102/154442.117641:ERROR:chrome_browser_main_ex
When the video is loaded slowly, the current video will not be closed. When switching the video, there will be background music that does not close the video
当我把tikTokVideoListController和video 单独抽离出来没有任何问题, pageview在home里我抽离homepage会涉及到很多很多东西,
Is it support frontend and backend
页面多了内存会原来越大,请问怎么解决
说实话,代码写得有点乱,建议拆分成函数,build下面写会造成很严重的性能问题
我把这个主页中复制到我的项目中,虽然能够播放,但是播放了一会就会多次提示下面的报错,期中一次导致应用闪退, 我是在 Getx 中使用的
I/o.learn_englis(25725): Clamp target GC heap from 517MB to 512MB
I/chatty (25725): uid=10150(com.liufengmao.learn_english) HeapTaskDaemon identical 5 lines
2
I/o.learn_englis(25725): Clamp target GC heap from 517MB to 512MB
I/chatty (25725): uid=10150(com.liufengmao.learn_english) HeapTaskDaemon identical 16 lines
I/o.learn_englis(25725): Clamp target GC heap from 517MB to 512MB
I/o.learn_englis(25725): Background young concurrent copying GC freed 24(872B) AllocSpace objects, 0(0B) LOS objects, 0% free, 511MB/512MB, paused 9.007ms total 14.951ms
I/o.learn_englis(25725): Clamp target GC heap from 517MB to 512MB
I/chatty (25725): uid=10150(com.liufengmao.learn_english) HeapTaskDaemon identical 2 lines
3
I/o.learn_englis(25725): Clamp target GC heap from 517MB to 512MB
I/chatty (25725): uid=10150(com.liufengmao.learn_english) HeapTaskDaemon identical 16 lines
2
I/o.learn_englis(25725): Clamp target GC heap from 517MB to 512MB
I/chatty (25725): uid=10150(com.liufengmao.learn_english) HeapTaskDaemon identical 16 lines
I/o.learn_englis(25725): Clamp target GC heap from 517MB to 512MB
I/o.learn_englis(25725): Waiting for a blocking GC Alloc
2
I/o.learn_englis(25725): Starting a blocking GC Alloc
I/o.learn_englis(25725): Clamp target GC heap from 517MB to 512MB
I/o.learn_englis(25725): Alloc concurrent copying GC freed 294(42KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 511MB/512MB, paused 276us total 18.528ms
E/ExoPlayerImplInternal(25725): Playback error
E/ExoPlayerImplInternal(25725): com.google.android.exoplayer2.ExoPlaybackException: Source error
E/ExoPlayerImplInternal(25725): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:580)
E/ExoPlayerImplInternal(25725): at android.os.Handler.dispatchMessage(Handler.java:103)
E/ExoPlayerImplInternal(25725): at android.os.Looper.loop(Looper.java:214)
Invalid Podfile
file: no implicit conversion of nil into String.
# -------------------------------------------
# unless File.exist?(copied_framework_path)
> FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
# end
# -------------------------------------------
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/podfile.rb:318:in `rescue in block
in from_ruby'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/podfile.rb:312:in `block in
from_ruby'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/podfile.rb:50:in `instance_eval'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/podfile.rb:50:in `initialize'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/podfile.rb:310:in `new'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/podfile.rb:310:in `from_ruby'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.10.1/lib/cocoapods-core/podfile.rb:276:in `from_file'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/config.rb:205:in `podfile'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:160:in `verify_podfile_exists!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:46:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
rt
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: A VideoPlayerController was used after being disposed.
E/flutter (31587): Once you have called dispose() on a VideoPlayerController, it can no longer be used.
在模拟器中运行只有声音没有图像
你好, build web版本, 丢到safari上, 播放不了视频, play函数调用了没有效果, 只有把video control显示出来,点击control的播放按钮才能播放, 有办法解决吗??
你好 我们是一个短视频创业项目 看过你的代码之后希望与你建立联系
你好大佬,想咨询一下。断网或者加载视频失败,如何在当前位置重新加载播放。
Actually, I'm showing continuous video player [similar to homePage] on upper layer (means in separate screen).
I had opened videoplayer and close it, at the dispose time it shows these errors
I'm doing this in dispose method
@override
void dispose() {
WidgetsBinding.instance!.removeObserver(this);
_videoListController.currentPlayer.pause();
_videoListController.dispose();
super.dispose();
}
the error comes on this line on pause method of the video
@override
Future<void> pause({bool showPauseIcon: false}) async {
await Future.wait(_actLocks);
_actLocks.clear();
await init();
if (!prepared) return;
if (_disposeLock != null) {
await _disposeLock?.future;
}
await this.controller.pause();
**------------_showPauseIcon.value = true;------------**
}
@mjl0602 looking for your help
[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64001F, -1, null, [540, 960, 30.0], [-1, -1]), format_supported=YES, null, null)
Getting issue in pageView.dart file.
Error message "The named parameter 'scrollBehavior' isn't defined.
Try correcting the name to an existing named parameter's name, or defining a named parameter with the name 'scrollBehavior'."
Error message "The method 'copyWith' isn't defined for the type 'ScrollBehavior'.
Try correcting the name to the name of an existing method, or defining a method named 'copyWith'."
Can you please help me with this issue?
Thanks,
Deepraj
你好,你这个项目我非常敢兴趣,非常想一起维护或者提pr,我的github用户名:ahyangnb
目前项目需要维护的地方:
1.评论滑到顶部继续滑不会收起。
2.缺少长按提示对话框。
3.缺少右下角音频转动和左下角音频名轮播。
4.用户名页面目前是静态的。
希望能一起优化,把这个开源项目做好,目前我有多个上千人flutter群,到时候可以推广拉star。
clone 下来不能运行
FAILURE: Build failed with an exception.
Multiple task action failures occurred:
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.window:window-java:1.0.0-beta04.
AAR metadata file: C:\Users\kyour.gradle\caches\transforms-2\files-2.1\5695d8d932d545af38bf66b725566d02\jetified-window-java-1.0.0-beta04\META-INF\com\android\build\gradle\aar-metadata.properties.
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.window:window:1.0.0-beta04.
AAR metadata file: C:\Users\kyour.gradle\caches\transforms-2\files-2.1\e4e324fde2799cc82a9b6d2e3e16efc2\jetified-window-1.0.0-beta04\META-INF\com\android\build\gradle\aar-metadata.properties.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
作者提供了几个在线资源短视频作为mock数据。
初次加载homePage时,将mock的视频数据列表一次性添加到playerList 视频列表。
然而,在红米redMi 7A 真机运行时,不断上下翻动短视频页面。切换6-10次左右,App崩溃。
现在我还不知道什么原因。希望作者帮忙看看。感激。。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.