tcking / giraffeplayer2 Goto Github PK
View Code? Open in Web Editor NEWout of the box android video player(support lazy load, ListView/RecyclerView and hight performance)
License: Apache License 2.0
out of the box android video player(support lazy load, ListView/RecyclerView and hight performance)
License: Apache License 2.0
When I toggle my fullscreen without starting the video the full-screen view has a half video screen and a half control screen (in your demo app also you can see). How to fix this? And after completion of the video when I touch the seek bar it was showing in the middle (got stuck there) can I fix this? Maybe disabling the control after completion of the video also nice. Thank you in advance for creating such a wonderful library.!!
Cannot set title on embedded player in layout using videoview
HLS over the HTTPS not working..any fix for that
sample link
Is it possible to add a pan'n'zoom gesture to video view ?
Hello!
I dig through the VideoView but could not find a way to remove the bottom bar/MediaController (the one with the play/stop button and seekbar).
There is any way to do that I am missing?
How can I get mute/ON sound option?
If i change the url dynamicaly ,app getting crash , log is mentioned below . Help me thanks
AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.siti7.customisedgiraffeplayer, PID: 6705
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:915)
at tcking.github.com.giraffeplayer2.PlayerManager.releaseByFingerprint(PlayerManager.java:187)
at tcking.github.com.giraffeplayer2.VideoInfo.setUri(VideoInfo.java:237)
at tcking.github.com.giraffeplayer2.VideoView.setVideoPath(VideoView.java:99)
at com.example.siti7.customisedgiraffeplayer.MainActivity$1.onClick(MainActivity.java:34)
at android.view.View.performClick(View.java:5637)
at android.view.View$PerformClick.run(View.java:22429)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
.MXG File format not supporting
demo 还有点问题,竖屏播放时,如果点击浮动窗口,再点击关闭按钮,回到竖屏播放无法自动播放了
我之前也是在使用GiraffePlayer1,看了GiraffePlayer2 的源码后觉得在结构和代码上都精简了好多,
想问下作者有没有博客地址或者其他,能不能写一篇关于GiraffePlayer2对ijkplayer的封装呀,在工作中,对视频播放器相关开发知识断断续续也学习过不少,按需求完成过一些定制化开发,但感觉还是没有成体系的学习过:grin:
I need to open the current video in full screen mode on click on full-screen toggle. As like GiraffePlayer.DISPLAY_FULL_WINDOW.
Thanks in advance!!
Hello!
When I try to load star a RTSP url the log says "Protocol not found"
There is any way to make this work or Giraffe does not support RTSP at all ?
Thanks!
onbackpressed pressed finish the current videoview holding activity. how can i override that same as videoview back arrow
I have problem in reading https streaming, i have this problem "Unable to negotiate TLS/SSL session " . Any suggestion please. thanks
I don't need the control layout, I'm implementing a full-screen video view. I'm hiding the app_bottom_box visibility to GONE, but onTouchListener is activating the layout to be visible. How can I hide the control layout? Thanks in Advance.
I have added the compile 'com.github.tcking: ijkplayer-x86: 0.8.4' but I can not play the file on the x86 cpu.But another cpu can play normally.
I do not know what caused the problem ijkmediaplayer error (-10000,0).
Please help,Thank You
Hi,
I'd like to know after finished downloading video file then how to firstly display the thumbnail. This is because the videoview looks nothing and black before playing the video.
demo中是 播放一段时间后隐藏,怎么默认隐藏控制器不显示?
1:我在GiraffePlayer类的构造方法里面的handler中设置videoView.setKeepScreenOn(true);方法,但是播放完毕之后再重新播放会出现线程Exception
2:在activity中调用mVideoView.setVideoPath(url).getPlayer().start();,GiraffePlayer的start方法和handler会重复调用好几遍,也不知道是什么情况
when i set video aspect ratio to 16:9, its not working.
screenshot:
https://ibb.co/i7e59m
How can i set video player looping? Thanks!
Please help i am getting the following error
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.ekantipur.ktv-1/base.apk", zip file "/data/app/com.ekantipur.ktv-1/split_lib_dependencies_apk.apk", zip file "/data/app/com.ekantipur.ktv-1/split_lib_slice_0_apk.apk", zip file "/data/app/com.ekantipur.ktv-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.ekantipur.ktv-1/split_lib_slice_2_apk.apk", zip file "/data/app/com.ekantipur.ktv-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.ekantipur.ktv-1/split_lib_slice_4_apk.apk", zip file "/data/app/com.ekantipur.ktv-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.ekantipur.ktv-1/split_lib_slice_6_apk.apk", zip file "/data/app/com.ekantipur.ktv-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.ekantipur.ktv-1/split_lib_slice_8_apk.apk", zip file "/data/app/com.ekantipur.ktv-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.ekantipur.ktv-1/lib/arm64, /data/app/com.ekantipur.ktv-1/base.apk!/lib/arm64-v8a, /data/app/com.ekantipur.ktv-1/split_lib_dependencies_apk.apk!/lib/arm64-v8a, /data/app/com.ekantipur.ktv-1/split_lib_slice_0_apk.apk!/lib/arm64-v8a, /data/app/com.ekantipur.ktv-1/split_lib_slice_1_apk.apk!/lib/arm64-v8a, /data/app/com.ekantipur.ktv-1/split_lib_slice_2_apk.apk!/lib/arm64-v8a, /data/app/com.ekantipur.ktv-1/split_lib_slice_3_apk.apk!/lib/arm64-v8a, /data/app/com.ekantipur.ktv-1/split_lib_slice_4_apk.apk!/lib/arm64-v8a, /data/app/com.ekantipur.ktv-1/split_lib_slice_5_apk.apk!/lib/arm64-v8a, /data/app/com.ekantipur.ktv-1/split_lib_slice_6_apk.apk!/lib/arm64-v8a, /data/app/com.ekantipur.ktv-1/split_lib_slice_7_apk.apk!/lib/arm64-v8a, /data/app/com.ekantipur.ktv-1/split_lib_slice_8_apk.apk!/lib/arm64-v8a, /data/app/com.ekantipur.ktv-1/split_lib_slice_9_apk.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libijkffmpeg.so"
第一步,设置播放器为AndroidMediaPlayer
videoView.getVideoInfo().setPlayerImpl(VideoInfo.PLAYER_IMPL_SYSTEM);
第二步,开始播放后会收到onError回调(在GiraffePlayer类中)
mediaPlayer.setOnErrorListener(new IMediaPlayer.OnErrorListener() {
@OverRide
public boolean onError(IMediaPlayer iMediaPlayer, int what, int extra) {
}
});
onError参数为 what:-38, extra:0
如果采用默认实现即IjkMediaPlayer则没有问题,请问这个问题是什么原因,怎么解决
I think your player is the best and I am making a player with your code.
But I have a significant problem now.
when i play the hls video in common situation, it has no problem.
But my app have a playing function in p2ptunnel. at that time, your player cannot play the video and show the errors as follows.
09-20 19:10:59.756 17084-17808/com.garapon.tvapp E/IJKMEDIA: http://127.0.0.1:63080/gapi/v4/Program/?gtvsession=fb199b1aebc77463131c019a1caf79e9&service_type=1&starttime=1505750340&endtime=1505752140&action=m3u8&tsid10=32738: End of file
09-20 19:10:59.756 17084-17808/com.garapon.tvapp I/IJKMEDIA: SDL_JNI_DetachThreadEnv: [17808]
09-20 19:10:59.777 17084-17084/com.garapon.tvapp E/tv.danmaku.ijk.media.player.IjkMediaPlayer: Error (-10000,0)
Would you tell me the reason why "End of file" error happens?
Of course, p2p tunnel communication is a little slower than common http.
Can i set the delay time for loading?
I'll appreciate your help.
How to stop the video when RecyclerView is scrolled ,, and how to start it if there is away ?
发现了3个bug
videoPlayer = (VideoPlayer) itemView.findViewById(R.id.videoPlayer);
videoPlayer.getVideoInfo().setAspectRatio(VideoInfo.AR_ASPECT_FILL_PARENT);
RT
Hi,
I don't want display mediacontroller but i can't find the right way.
Can you help me?
First, of all thank you so much for this great player. It's working great.
I just want to disable all buttons, seekbar even fullscreen option, can you please tell if it is possible?
Could you please implement the subtitle feature for this library?
I'm playing RTMP URL, after the video completion, when I click re-play button, the player is not replaying the video.
Hey firstly thanks a ton for providing such a wonderful library.
I would like to know whether it supports thumbnail of video in list.
Please do share your thoughts
Hi there,
I use VideoView in one item of RecyclerView,
and when I call notifyDataSetChanged() method of Adapter,
RecyclerView is scrolling to it item that has VideoView.
please help me.
I'm having "No Implementation found" Error in my Logcat as...
E/zygote: No implementation found for void tv.danmaku.ijk.media.player.IjkMediaPlayer.native_finalize() (tried Java_tv_danmaku_ijk_media_player_IjkMediaPlayer_native_1finalize and Java_tv_danmaku_ijk_media_player_IjkMediaPlayer_native_1finalize__) 09-22 15:40:57.387 19999-20012/com.live.streamnow E/System: Uncaught exception thrown by finalizer 09-22 15:40:57.389 19999-20012/com.live.streamnow E/System: java.lang.UnsatisfiedLinkError: No implementation found for void tv.danmaku.ijk.media.player.IjkMediaPlayer.native_finalize() (tried Java_tv_danmaku_ijk_media_player_IjkMediaPlayer_native_1finalize and Java_tv_danmaku_ijk_media_player_IjkMediaPlayer_native_1finalize__) at tv.danmaku.ijk.media.player.IjkMediaPlayer.native_finalize(Native Method) at tv.danmaku.ijk.media.player.IjkMediaPlayer.finalize(IjkMediaPlayer.java:962) at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:250) at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:237) at java.lang.Daemons$Daemon.run(Daemons.java:103) at java.lang.Thread.run(Thread.java:764)
what should I do? Need help..!!!
i wanna know if you will add the dash files to be supported or not
and if you will how long it will take ?
Hi
I tried to implement ScaleGesture Detector in video view but with video, other views are also zooming.
As media controller is attached with videoView and I'm unable to extract the video view part (where video actually plays) so that I can zoom in and zoom out the only video without changing the size of other views (seekbar and button etc).
Sorry for my bad explanation: all I want is to implement zoom in and zoom out like other gestures.
Please tell me how can I do that? Thank you
I got error like "Server returned 4XX Client Error, but not one of 40{0,1,3,4}"
This is the my url
https://soledge20.dogannet.tv/S10/HLS_VOD/151461_90af/index.m3u8?key=0b6d42aca8d0dbdfb3d6cc9633150c8b&app=com.kanald&min=0&max=1250%22;
I have tried many times but not working
Portrait recorded video shows landscape into VideoView. How can i show video which is recorded to portrait mode.
Hello
I am using your sample app code to play MKV formatted video. The video content two audio track for different languages when playing local video its working fine but when I have loaded the video from my server ( Url ) and change the audio track the speed of video will increase and the track video and audio will different. can you help me how to solve this?
一,android 版本7.1.1
条件:视频播放中,锁屏后再点亮
现象:黑屏
二,android 版本5.1.1
无上述黑屏现象
请问这个问题是什么原因,怎么解决?
E/IJKMEDIA: https://origin-api-dhtv.dailyhunt.in/v2/item/yupptvredirect/262/master.m3u8: Server returned 403 Forbidden (access denied)
but this link perfectly working in exoplayer2 and all other players. and https link also not playing
Hi tcking, I just did a quick research to handle this projects' proguard configuration:
-dontwarn tv.danmaku.ijk.media.player.**
-keep class tv.danmaku.ijk.media.player.** { *; }
-keep interface tv.danmaku.ijk.media.player.* { *; }
If possible to place this on your read me would be helpful for others. Keep up the good work!
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.