liteavsdk / player_android Goto Github PK
View Code? Open in Web Editor NEWSuper player for android...
Home Page: https://cloud.tencent.com/document/product/881
Super player for android...
Home Page: https://cloud.tencent.com/document/product/881
传入的视频地址是一个m3u8格式的,如何实现切换清晰度?
我改了一下进度跳转, 可以通过点击进度条直接跳转到点击位置, 但是出现了seekbar会往回波动一下的情况. 之前看GSY那个开源项目说的是关键帧的问题, 然后有代码可以设置解决, 这个项目里面改怎么处理啊
大神,怎么从指定时间点进行播放?跪求超级播放器的api文档,我找遍了腾讯云都找不到 。跪求,谢谢
請問如何關掉彈慕與畫面截圖功能
Caused by: java.lang.UnsatisfiedLinkError: No implementation found for void com.tencent.ijk.media.player.IjkMediaPlayer.native_init() (tried Java_com_tencent_ijk_media_player_IjkMediaPlayer_native_1init and Java_com_tencent_ijk_media_player_IjkMediaPlayer_native_1init__)
at com.tencent.ijk.media.player.IjkMediaPlayer.native_init(Native Method)
at com.tencent.ijk.media.player.IjkMediaPlayer.initNativeOnce(IjkMediaPlayer.java:3)
at com.tencent.ijk.media.player.IjkMediaPlayer.initPlayer(IjkMediaPlayer.java:2)
at com.tencent.ijk.media.player.IjkMediaPlayer.<init>(IjkMediaPlayer.java:4)
at com.tencent.liteav.txcvodplayer.TXCVodVideoView.f(TXCVodVideoView.java:16)
at com.tencent.liteav.txcvodplayer.TXCVodVideoView.w(TXCVodVideoView.java:1)
at com.tencent.liteav.txcvodplayer.TXCVodVideoView$7.a(TXCVodVideoView.java:17)
at com.tencent.liteav.txcvodplayer.TextureRenderView$b.onSurfaceTextureAvailable(TextureRenderView.java:7)
at android.view.TextureView.getHardwareLayer(TextureView.java:450)
at android.view.TextureView.draw(TextureView.java:383)
at android.view.View.updateDisplayListIfDirty(View.java:18403)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.draw(View.java:19456)
at android.view.View.updateDisplayListIfDirty(View.java:18403)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at androidx.recyclerview.widget.RecyclerView.drawChild(RecyclerView.java:1)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at com.scwang.smartrefresh.layout.SmartRefreshLayout.drawChild(SmartRefreshLayout.java:32)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.draw(View.java:19456)
at androidx.core.widget.NestedScrollView.draw(NestedScrollView.java:1)
at android.view.View.updateDisplayListIfDirty(View.java:18403)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at com.scwang.smartrefresh.layout.SmartRefreshLayout.drawChild(SmartRefreshLayout.java:32)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.draw(View.java:19456)
at android.view.View.updateDisplayListIfDirty(View.java:18403)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4087)
at android.view.View.updateDisplayListIfDirty(View.java:18394)
at android.view.View.draw(View.java:19181)
at android.view.ViewGroup.drawChild(ViewGroup.java:4324)
文档地址是:https://cloud.tencent.com/document/product/881/20214
报错日志是:
Duplicate class com.tencent.ijk.media.exo.BuildConfig found in modules classes.jar (:LiteAVSDK_Player_6.7.7734:) and classes.jar (LiteAVSDK_Player_6.7.7734.aar)
Duplicate class com.tencent.ijk.media.exo.IjkExoMediaPlayer found in modules classes.jar (:LiteAVSDK_Player_6.7.7734:) and classes.jar (LiteAVSDK_Player_6.7.7734.aar)
Duplicate class com.tencent.ijk.media.exo.IjkExoMediaPlayer$1 found in modules classes.jar (:LiteAVSDK_Player_6.7.7734:) and classes.jar (LiteAVSDK_Player_6.7.7734.aar)
...
如题
开发者 您好 请问此开源项目遵从什么开源协议,并如果修改作为商业化使用 需要向贵公司提供什么?
使用TXLivePlayer播放rtmp直播时,给TXLivePlayer设置画面渲染的textureView,声音正常但是画面黑屏;log打印:invalid frame buffer id
以下为设置代码:
` TextureView textureView = findViewById(R.id.texture);
textureView.setSurfaceTextureListener(new TextureView.SurfaceTextureListener() {
@OverRide
public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {
TXLivePlayer txLivePlayer = new TXLivePlayer(MainActivity.this);
txLivePlayer.setRenderMode(TXLiveConstants.RENDER_MODE_ADJUST_RESOLUTION);
txLivePlayer.setPlayListener(MainActivity.this);
txLivePlayer.setSurface(new Surface(surface));
txLivePlayer.startPlay(rtmpUrl, TXLivePlayer.PLAY_TYPE_LIVE_RTMP);
}
@Override
public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) {
}
@Override
public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) {
return false;
}
@Override
public void onSurfaceTextureUpdated(SurfaceTexture surface) {
}
});`
IJKMEDIA: feed_input_buffer, FFP_MSG_VIDEO_DECODER_ERROR
IJKMEDIA: FFP_MSG_VIDEO_DECODER_ERROR:
TXCVodVideoView: onVideoDecoderError
TXCVodVideoView: sendSimpleEvent 2106 decode fail
使用的是6.6.7551版本 使用缓存时发现,有的视频能缓存 有的视频又不能缓存?请问是什么原因导致?
如题,在手势调节那个utils设置根本没用,还会自己调整到最大亮度
请问播放器怎么设置header
导致进入播放页面无法准确的设置亮度进度条的初始值
各种seekto 均无效,只有视频播放起来以后seekto才能用
离线下载不支持MP4格式的吗。。。
如题,比如怎么监听视频播放结束,视频播放进度,文档里啥没有啊?
如题
播放过程中向左拖动进度条到00:00再往左点的位置, 经常会出现进度条跳到之前正在播放位置, 然后才回到00:00位置, 弄了好久了, 我没能解决...
我播放视频的时候在onPlayEvent里边打印日志,没发现有打印loading状态对应的值
就是左右不停的抖动
我的 targetSdkVersion 29
即使我手动申请了SYSTEM_ALERT_WINDOW的权限依旧闪退
这个bug我查了一下, 说是:
mWindowParams.type = WindowManager.LayoutParams.TYPE_SYSTEM_ALERT;
Android 6.0以上修改成了:
mWindowParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY;
希望可以看下
按照快速集成文档集成此SDK,老是报找不到LiteAVSDK_Professional的错误
gradle:3.2.0
现象:视频处于播放状态,网络原因卡住,给了回调状态buffer,同时播放器播放状态为isplaying;
网络正常同时给了buffer状态,播放器播放状态为isplaying;
期望:上述两种状态希望给一个区别的回调
开局为何最大亮度?请问怎么取消设置
视频1正在播放,切换APP至后台,视频1播放完成后调用相关方法播放视频2,可以正常收到StartPlay的log,但是不会开始播放,只用再次切回前台才会播放,请问如何才能自动播放?
15698-15698 D/TXVodPlayer: ===========================================================================================================================================================
15698-15698 D/TXVodPlayer: ===========================================================================================================================================================
15698-15698 D/TXVodPlayer: ===== StartPlay url = https:/*******手动省略******** SDKVersion = 2 , 6.6.7458 ======
15698-15698 D/TXVodPlayer: ===========================================================================================================================================================
15698-15698 D/TXVodPlayer: ===========================================================================================================================================================
15698-15698 D/TXVodPlayer: startPlay https://*******手动省略********
1、LiteAVSDK可否提供在线的依赖方式,手动下载aar更新,太麻烦,不够优雅。
2、LiteAVSDK .class无关联源码,能关联源码,查看起来就更好了。
目前试了两台华为手机,直播都可以,点播不可以播放,都是播放失败,
E/IJKMEDIA: ijkio:cache:ffio:http://XXX/room000001000001/2019-11-22-10-58-27_2019-11-22-11-49-52.mp4: Operation not permitted
I/IJKMEDIA: SDL_JNI_DetachThreadEnv: [10244]
E/com.tencent.ijk.media.player.IjkMediaPlayer: Error (-10000,0)
E/TXCVodVideoView: onError: -10000,0
好像找不到设置的地方?
大神,你好,我这边使用腾讯播放器后,在activity中能第一次重力感应横竖屏切换,然后切换成横屏播放器,然后就不能重力感应切回竖屏了,求助大神。
at com.tencent.liteav.basic.log.TXCLog.nativeLogOpen(Native Method)
at com.tencent.liteav.basic.log.TXCLog.init(TXCLog.java:12)
at com.tencent.rtmp.TXVodPlayer.<init>(TXVodPlayer.java:9)
at com.tencent.liteav.demo.play.SuperPlayerView.initVodPlayer(SuperPlayerView.java:2)
at com.tencent.liteav.demo.play.SuperPlayerView.playWithMode(SuperPlayerView.java:7)
at com.spero.vision.vsnapp.common.comment.M.onClick(VideoCommentFragment.kt:10)
at android.view.View.performClick(View.java:5212)
at com.spero.vision.vsnapp.common.comment.VideoCommentFragment.te(VideoCommentFragment.kt:21)
at com.spero.vision.vsnapp.common.comment.VideoCommentFragment.fe(VideoCommentFragment.kt:13)
at com.spero.vision.vsnapp.common.comment.VideoCommentFragment.ge(VideoCommentFragment.kt:2)
at com.spero.vision.vsnapp.common.comment.VideoCommentFragment.onViewCreated(VideoCommentFragment.kt:6)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:72)
at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:6)
at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManager.java:150)
at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:2)
at androidx.fragment.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3)
at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:1)
at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:5)
at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:1)
at com.ytx.appframework.BaseActivity.onStart(BaseActivity.java:1)
at com.spero.vision.vsnapp.common.comment.VideoCommentActivity.onStart(VideoCommentActivity.kt:1)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1244)
at android.app.Activity.performStart(Activity.java:6326)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2477)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2574)
at android.app.ActivityThread.access$1000(ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1411)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5563)
SuperPlayerView 滑动修改音量太灵敏,包括亮度,进度一下增加太快,一不小心就是声音大的受不了
app中使用了小直播功能,现在有个需求是要播放其他视频,打算用superPlayer,问下是否跟小直播SDK冲突?如果冲突,我直接使用小直播里面的TXCloudVideoView 会不会造成收费?
测试了,好像不支持RTSP协议?
求解答
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.