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

资源简介

不错的安卓播放器,使用方便。。。。。。。。。。。。。。

资源截图

代码片段和文件信息

/*
 * Copyright (C) 2017 The Android Open Source Project
 *
 * Licensed under the Apache License Version 2.0 (the “License“);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing software
 * distributed under the License is distributed on an “AS IS“ BASIS
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.google.android.exoplayer2.imademo;

import android.app.Activity;
import android.os.Bundle;
import com.google.android.exoplayer2.ExoPlayer;
import com.google.android.exoplayer2.ui.SimpleExoPlayerView;

/**
 * Main Activity for the IMA plugin demo. {@link ExoPlayer} objects are created by
 * {@link PlayerManager} which this class instantiates.
 */
public final class MainActivity extends Activity {

  private SimpleExoPlayerView playerView;
  private PlayerManager player;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main_activity);
    playerView = findViewById(R.id.player_view);
    player = new PlayerManager(this);
  }

  @Override
  public void onResume() {
    super.onResume();
    player.init(this playerView);
  }

  @Override
  public void onPause() {
    super.onPause();
    player.reset();
  }

  @Override
  public void onDestroy() {
    player.release();
    super.onDestroy();
  }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\
     文件         827  2017-11-27 13:58  ExoPlayer-release-v2\.gitignore
     文件        1081  2017-11-27 13:58  ExoPlayer-release-v2\.hgignore
     文件        1856  2017-11-27 13:58  ExoPlayer-release-v2\CONTRIBUTING.md
     文件        2054  2017-11-27 13:58  ExoPlayer-release-v2\ISSUE_TEMPLATE
     文件       11358  2017-11-27 13:58  ExoPlayer-release-v2\LICENSE
     文件        4573  2017-11-27 13:58  ExoPlayer-release-v2\README.md
     文件       37894  2017-11-27 13:58  ExoPlayer-release-v2\RELEASENOTES.md
     文件        1589  2017-11-27 13:58  ExoPlayer-release-v2\build.gradle
     文件        1449  2017-11-27 13:58  ExoPlayer-release-v2\constants.gradle
     文件        3259  2017-11-27 13:58  ExoPlayer-release-v2\core_settings.gradle
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\
     文件         158  2017-11-27 13:58  ExoPlayer-release-v2\demos\README.md
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\
     文件         121  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\README.md
     文件        1445  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\build.gradle
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\
     文件        1655  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\AndroidManifest.xml
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\java\
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\java\com\
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\java\com\google\
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\java\com\google\android\
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\java\com\google\android\exoplayer2\
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\java\com\google\android\exoplayer2\imademo\
     文件        1628  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\java\com\google\android\exoplayer2\imademo\MainActivity.java
     文件        4294  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\java\com\google\android\exoplayer2\imademo\PlayerManager.java
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\res\
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\res\layout\
     文件         936  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\res\layout\main_activity.xml
     目录           0  2017-11-27 13:58  ExoPlayer-release-v2\demos\ima\src\main\res\mipmap-hdpi\
............此处省略1724个文件信息

评论

共有 条评论