Android ijkPlayer视频播放器

博客内容介绍了在Android平台上采用ijkPlayer进行视频播放的实践,提到了自定义的播放控制器,并展示了首页XML布局,涉及轮播图和双RecyclerView的数据展示。
摘要由CSDN通过智能技术生成
下面给大家说一下ijkplayer这个播放器,也算是一个比较老的播放器了:
先给大家展示一下效果图,这是我做的一个小Demo,看看是不是大家要的结果:

上面是ijkplayer播放器,我添加的播放控制器比较丑,就不展示了,首页是一个轮播图加双RecyclerView的嵌套进行数据的一个展示,由于首页图片无法上传就不进行展示了。

先发一下首页的xml布局:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent">
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="190dp"
        android:id="@+id/head_Layout"
        android:focusable="true"
        android:focusableInTouchMode="true"
        >
    <com.bigkoo.convenientbanner.ConvenientBanner
        android:layout_width="match_parent"
        android:layout_height="190dp"
        android:id="@+id/banner"
        android:layout_alignParentTop="true"
        android:layout_alignParentStart="true"
        />
    <EditText
        android:layout_width="300dp"
        android:layout_height="43dp"
        android:id="@+id/select_edit"
        android:textColorHint="#ececec"
        android:hint="一念天堂"
        android:drawableLeft="@drawable/web_select"
        android:background="@drawable/edit_sele"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:paddingLeft="5dp"
        android:layout_marginTop="19dp" />
    </RelativeLayout>
      <RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_below="@+id/head_Layout"
          android:background="#005277"
          >
    <zhangtao.bwie.com.demo.MyRecy
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/recy_view"
        android:background="#005277"
        ></zhangtao.bwie.com.demo.MyRecy>
      </RelativeLayout>
        </RelativeLayout>
    </ScrollView>
    </RelativeLayout>
</RelativeLayout>
接下来是首页的一些数据展示:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值