• 大小: 12.79MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-25
  • 语言: Java
  • 标签: FFMpeg  JNI  NDK  RTSP  

资源简介

Android端支持全屏播放,声音开关,视频截图,视屏录制等功能

资源截图

代码片段和文件信息

package org.easydarwin.easyplayer;

import android.databinding.DataBindingUtil;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.method.linkMovementMethod;
import android.text.style.ForegroundColorSpan;
import android.text.style.URLSpan;

import org.easydarwin.easyplayer.databinding.ActivityAboutBinding;

public class AboutActivity extends AppCompatActivity {

    private ActivityAboutBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
         binding = DataBindingUtil.setContentView(this R.layout.activity_about);

        setSupportActionBar(binding.toolbar);
        if (PlaylistActivity.isPro()){
            binding.title.setText(“EasyPlayer Pro全功能播放器:“);
            binding.desc.setText(“EasyPlayer Pro专业版全功能播放器,是由EasyDarwin开源团队维护的一款支持RTSP、RTMP、HTTP、HLS多种流媒体协议的播放器版本,更多详情邮件咨询:“);
            binding.desc.setMovementMethod(linkMovementMethod.getInstance());
            SpannableString spannableString = new SpannableString(“support@easydarwin.org“);
            //设置下划线文字
            spannableString.setSpan(new URLSpan(“mailto:support@easydarwin.org“) 0 spannableString.length() Spanned.SPAN_INCLUSIVE_EXCLUSIVE);

            //设置文字的前景色
            spannableString.setSpan(new ForegroundColorSpan(Color.RED) 0 spannableString.length() Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
            binding.desc.append(spannableString);

            binding.desc.append(“\n您也可以使用EasyPlayer RTSP版本,更轻,更精炼!EasyPlayer RTSP版本“);
            spannableString = new SpannableString(“戳我“);
            //设置下划线文字
            spannableString.setSpan(new URLSpan(“https://fir.im/EasyPlayer“) 0 spannableString.length() Spanned.SPAN_INCLUSIVE_EXCLUSIVE);

            //设置文字的前景色
            spannableString.setSpan(new ForegroundColorSpan(Color.RED) 0 spannableString.length() Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
            binding.desc.append(spannableString);
            binding.desc.append(“或者扫描下载:“);

        }else{
            binding.title.setText(“EasyPlayer RTSP播放器:“);
            binding.desc.setText(“EasyPlayer RTSP是由EasyDarwin开源团队开发 者开发和维护的一个RTSP播放器项目,目前 支持Windows/Android/iOS,视频支持 H.264/H.265/MPEG4/MJPEG,音频支持 G711A/G711U/G726/AAC,支持RTSP over  TCP/UDP切换,支持硬解码,是一套极佳的 RTSP播放组件!项目地址:“);

            binding.desc.setMovementMethod(linkMovementMethod.getInstance());
            SpannableString spannableString = new SpannableString(“https://github.com/EasyDarwin/EasyPlayer“);
            //设置下划线文字
            spannableString.setSpan(new URLSpan(“https://github.com/EasyDarwin/EasyPlayer“) 0 spannableString.length() Spanned.SPAN_INCLUSIVE_EXCLUSIVE);

            //设置文字的前景色
            spannableString.setSpan(new ForegroundColorSpan(Color.RED) 0 spannableString.length() Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
            binding.desc.append(spannableStrin

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\
     文件          79  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\.gitignore
     目录           0  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\
     文件           7  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\.gitignore
     文件        2355  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\build.gradle
     文件         821  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\gradle.properties
     目录           0  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\libs\
     文件      180110  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\libs\gson-2.1.jar
     文件       44592  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\libs\texturegesture-release.aar
     文件       24639  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\libs\update-release.aar
     文件         989  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\proguard-rules.pro
     目录           0  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\screenshot\
     文件       26819  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\screenshot\single_video.jpg
     目录           0  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\
     目录           0  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\
     文件        3243  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\AndroidManifest.xml
     文件       22995  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\ic_launcher-web.png
     目录           0  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\
     目录           0  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\
     目录           0  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\easydarwin\
     目录           0  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\easydarwin\easyplayer\
     文件        4203  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\easydarwin\easyplayer\AboutActivity.java
     文件       18841  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\easydarwin\easyplayer\MediaFilesActivity.java
     文件        9076  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\easydarwin\easyplayer\MultiplayActivity.java
     文件       26422  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\easydarwin\easyplayer\PlayActivity.java
     文件       23258  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\easydarwin\easyplayer\PlaylistActivity.java
     文件        3739  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\easydarwin\easyplayer\SettingsActivity.java
     文件        4744  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\easydarwin\easyplayer\SplashActivity.java
     文件        1359  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\easydarwin\easyplayer\TheApp.java
     文件        4619  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\easydarwin\easyplayer\TwoWndPlayActivity.java
     文件        7456  2018-07-19 06:17  EasyPlayer-RTSP-Android-master\EasyPlayer\src\main\java\org\easydarwin\easyplayer\VideoWindowOptionMenuFragment.java
............此处省略326个文件信息

评论

共有 条评论