这里需要需要炽鸟的SDK开发包(chird文件夹、armeabi文件夹)
首先新建一个工程 这里我取名为 AndroidDemo 然后将chird文件夹放在src文件夹下 将armeabi文件夹放在lib文件夹下
然后刷新工程
然后在布局文件中添加自定义视频的显示控件
activity_layout.xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/VideoFrameLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- 自定义视频显示控件 -->
<chird.StreamView
android:id="@+id/Video_StreamView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
></chird.StreamView>
</FrameLayout>
Mainactivity.java
package com.example.androiddemo;
import chird.StreamView;
import chird.chd_wmp_apis;
import chird.st_VideoFrame;
import android.support.v7.app.ActionBarActivity;
import android.graphics.Bitmap;
impo