• 大小: 21.58MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-06
  • 语言: 其他
  • 标签:

资源简介

金山云直播demo代码。包含直播推流包含直播推流包含直播推流包含直播推流

资源截图

代码片段和文件信息

package com.ksyun.live.demo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.ksyun.live.demo.player.activity.PlayerActivity;
import com.ksyun.media.streamer.demo.DemoActivity;


public class MainActivity extends AppCompatActivity {

    private Button btn_stream;
    private Button btn_player;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        btn_player = (Button)findViewById(R.id.btn_player);
        btn_stream = (Button)findViewById(R.id.btn_stream);

        btn_stream.setonclickListener(new View.onclickListener() {
            @Override
            public void onclick(View view) {
                Intent intent = new Intent(MainActivity.thisDemoActivity.class);
                startActivity(intent);
            }
        });
        btn_player.setonclickListener(new View.onclickListener() {
            @Override
            public void onclick(View view) {
                Intent intent = new Intent(MainActivity.thisPlayerActivity.class);
                startActivity(intent);
            }
        });
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-02-09 02:59  KSYLive_Android-master\
     文件         482  2018-02-09 02:59  KSYLive_Android-master\.gitignore
     目录           0  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\
     文件          86  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\.gitignore
     目录           0  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\.idea\
     文件         686  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\.idea\compiler.xml
     目录           0  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\.idea\copyright\
     文件          74  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\.idea\copyright\profiles_settings.xml
     文件         682  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\.idea\gradle.xml
     文件        3097  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\.idea\misc.xml
     文件         484  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\.idea\modules.xml
     文件         564  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\.idea\runConfigurations.xml
     目录           0  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\
     文件           7  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\.gitignore
     文件        1302  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\build.gradle
     目录           0  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\libs\
     文件      330311  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\libs\zxing.jar
     文件         660  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\proguard-rules.pro
     目录           0  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\
     目录           0  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\main\
     文件        7159  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\main\AndroidManifest.xml
     目录           0  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\main\assets\
     目录           0  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\main\assets\KSYResource\
     文件      162072  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\main\assets\KSYResource\0_pink.png
     文件      134119  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\main\assets\KSYResource\0_ruddy2.png
     文件      201305  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\main\assets\KSYResource\10_sunshine_night.png
     文件      134935  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\main\assets\KSYResource\11_ruddy.png
     文件      208820  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\main\assets\KSYResource\12_sunshine.png
     文件      789851  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\main\assets\KSYResource\13_nature.png
     文件       36390  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\main\assets\KSYResource\14_amatorka.png
     文件      129208  2018-02-09 02:59  KSYLive_Android-master\KSYLiveDemo\app\src\main\assets\KSYResource\15_elegance_1.png
............此处省略448个文件信息

评论

共有 条评论

相关资源