jiaozivideoplayer

android videoplayer videoview 安卓视频播放器 全屏 播放器列表全屏 仿今日头条UI

License

License

MIT
Categories

Categories

IDE Development Tools
GroupId

GroupId

cn.jzvd.scc
ArtifactId

ArtifactId

jzvideo
Last Version

Last Version

7.4.23306
Release Date

Release Date

Type

Type

aar
Description

Description

jiaozivideoplayer
android videoplayer videoview 安卓视频播放器 全屏 播放器列表全屏 仿今日头条UI
Project URL

Project URL

https://github.com/Jzvd/JiaoZiVideoPlayer
Source Code Management

Source Code Management

https://github.com/Jzvd/JiaoZiVideoPlayer

Download jzvideo

How to add to project

<!-- https://jarcasting.com/artifacts/cn.jzvd.scc/jzvideo/ -->
<dependency>
    <groupId>cn.jzvd.scc</groupId>
    <artifactId>jzvideo</artifactId>
    <version>7.4.23306</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/cn.jzvd.scc/jzvideo/
implementation 'cn.jzvd.scc:jzvideo:7.4.23306'
// https://jarcasting.com/artifacts/cn.jzvd.scc/jzvideo/
implementation ("cn.jzvd.scc:jzvideo:7.4.23306")
'cn.jzvd.scc:jzvideo:aar:7.4.23306'
<dependency org="cn.jzvd.scc" name="jzvideo" rev="7.4.23306">
  <artifact name="jzvideo" type="aar" />
</dependency>
@Grapes(
@Grab(group='cn.jzvd.scc', module='jzvideo', version='7.4.23306')
)
libraryDependencies += "cn.jzvd.scc" % "jzvideo" % "7.4.23306"
[cn.jzvd.scc/jzvideo "7.4.23306"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

高度自定义的安卓视频框架

中文文档

下载Demo

QuickStart

1.添加类库

implementation 'cn.jzvd:jiaozivideoplayer:7.6.0'

2.添加布局

<cn.jzvd.JzvdStd
    android:id="@+id/jz_video"
    android:layout_width="match_parent"
    android:layout_height="200dp" />

3.设置视频地址、缩略图地址、标题

MyJzvdStd jzvdStd = (MyJzvdStd) findViewById(R.id.jz_video);
jzvdStd.setUp("http://jzvd.nathen.cn/c6e3dc12a1154626b3476d9bf3bd7266/6b56c5f0dc31428083757a45764763b0-5287d2089db37e62345123a1be272f8b.mp4"
                            , "饺子闭眼睛");
jzvdStd.posterImageView.setImage("http://p.qpic.cn/videoyun/0/2449_43b6f696980311e59ed467f22794e792_1/640");

4.在Activity

@Override
public void onBackPressed() {
    if (Jzvd.backPress()) {
        return;
    }
    super.onBackPressed();
}
@Override
protected void onPause() {
    super.onPause();
    Jzvd.releaseAllVideos();
}

5.在AndroidManifest.xml

<activity
    android:name=".MainActivity"
    android:configChanges="orientation|screenSize|keyboardHidden"
    android:screenOrientation="portrait" /> <!-- or android:screenOrientation="landscape"-->

6.在proguard-rules.pro中按需添加

-keep public class cn.jzvd.JZMediaSystem {*; }
-keep public class cn.jzvd.demo.CustomMedia.CustomMedia {*; }
-keep public class cn.jzvd.demo.CustomMedia.JZMediaIjk {*; }
-keep public class cn.jzvd.demo.CustomMedia.JZMediaSystemAssertFolder {*; }

-keep class tv.danmaku.ijk.media.player.** {*; }
-dontwarn tv.danmaku.ijk.media.player.*
-keep interface tv.danmaku.ijk.media.player.** { *; }

效果

License MIT

Copyright (c) 2015-2020 jzvd.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

cn.jzvd.scc

Jzvd

JZVD JZPlayer JZVideo JZToken

Versions

Version
7.4.23306