首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

Android 使用videoview播放Rtsp视频 demo

移动开发 279.22KB 29 需要积分: 1
立即下载

资源介绍:

Android 使用videoview播放Rtsp视频 demo http://blog.csdn.net/huanzhongying/article/details/53032909
package com.cyun; import android.app.Activity; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.MediaController; import android.widget.VideoView; /** * @author cyun * @desc 播放rtsp视频 */ public class VideoActivity extends Activity implements View.OnClickListener { private VideoView videoview; private Button btnplay; private String urlNet = "http://img1.peiyinxiu.com/2014121211339c64b7fb09742e2c.mp4"; // 动画片 private String urlHaiguan = "rtsp://218.204.223.237:554/live/1/66251FC11353191F/e7ooqwcfbqjoo80j.sdp"; // 海关 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_video); videoview = (VideoView) findViewById(R.id.videoview); btnplay = (Button) findViewById(R.id.btnplay); btnplay.setOnClickListener(this); } @Override public void onClick(View v) { switch (v.getId()) { case R.id.btnplay: playRtsp(); break; } } private void playRtsp() { videoview.setMediaController(new MediaController(this)); videoview.setVideoURI(Uri.parse(urlNet)); // urlNet urlHaiguan videoview.requestFocus(); videoview.start(); } }

资源文件列表:

Rtsp_Video.zip 大约有89个文件
  1. Rtsp_Video/
  2. Rtsp_Video/.idea/
  3. Rtsp_Video/.idea/compiler.xml 686B
  4. Rtsp_Video/.idea/copyright/
  5. Rtsp_Video/.idea/copyright/profiles_settings.xml 76B
  6. Rtsp_Video/.idea/gradle.xml 626B
  7. Rtsp_Video/.idea/libraries/
  8. Rtsp_Video/.idea/libraries/android_android_24.xml 247B
  9. Rtsp_Video/.idea/libraries/animated_vector_drawable_24_1_1.xml 651B
  10. Rtsp_Video/.idea/libraries/appcompat_v7_24_1_1.xml 767B
  11. Rtsp_Video/.idea/libraries/design_24_1_1.xml 731B
  12. Rtsp_Video/.idea/libraries/espresso_core_2_2_2.xml 633B
  13. Rtsp_Video/.idea/libraries/espresso_idling_resource_2_2_2.xml 688B
  14. Rtsp_Video/.idea/libraries/exposed_instrumentation_api_publish_0_5.xml 706B
  15. Rtsp_Video/.idea/libraries/hamcrest_core_1_3.xml 526B
  16. Rtsp_Video/.idea/libraries/hamcrest_integration_1_3.xml 354B
  17. Rtsp_Video/.idea/libraries/hamcrest_library_1_3.xml 540B
  18. Rtsp_Video/.idea/libraries/javawriter_2_1_1.xml 330B
  19. Rtsp_Video/.idea/libraries/javax_annotation_api_1_2.xml 358B
  20. Rtsp_Video/.idea/libraries/javax_inject_1.xml 324B
  21. Rtsp_Video/.idea/libraries/jsr305_2_0_1.xml 330B
  22. Rtsp_Video/.idea/libraries/junit_4_12.xml 477B
  23. Rtsp_Video/.idea/libraries/recyclerview_v7_24_1_1.xml 785B
  24. Rtsp_Video/.idea/libraries/rules_0_5.xml 727B
  25. Rtsp_Video/.idea/libraries/runner_0_5.xml 733B
  26. Rtsp_Video/.idea/libraries/support_annotations_24_1_1.xml 507B
  27. Rtsp_Video/.idea/libraries/support_v4_24_1_1.xml 909B
  28. Rtsp_Video/.idea/libraries/support_vector_drawable_24_1_1.xml 646B
  29. Rtsp_Video/.idea/misc.xml 2.58KB
  30. Rtsp_Video/.idea/modules.xml 357B
  31. Rtsp_Video/.idea/runConfigurations.xml 564B
  32. Rtsp_Video/.idea/workspace.xml 161.73KB
  33. Rtsp_Video/app/
  34. Rtsp_Video/app/.gitignore 7B
  35. Rtsp_Video/app/build.gradle 1006B
  36. Rtsp_Video/app/libs/
  37. Rtsp_Video/app/proguard-rules.pro 668B
  38. Rtsp_Video/app/src/
  39. Rtsp_Video/app/src/androidTest/
  40. Rtsp_Video/app/src/androidTest/java/
  41. Rtsp_Video/app/src/androidTest/java/com/
  42. Rtsp_Video/app/src/androidTest/java/com/thdz/
  43. Rtsp_Video/app/src/androidTest/java/com/thdz/rsguard/
  44. Rtsp_Video/app/src/androidTest/java/com/thdz/rsguard/ExampleInstrumentedTest.java 762B
  45. Rtsp_Video/app/src/main/
  46. Rtsp_Video/app/src/main/AndroidManifest.xml 1.41KB
  47. Rtsp_Video/app/src/main/java/
  48. Rtsp_Video/app/src/main/java/com/
  49. Rtsp_Video/app/src/main/java/com/cyun/
  50. Rtsp_Video/app/src/main/java/com/cyun/VideoActivity.java 1.4KB
  51. Rtsp_Video/app/src/main/res/
  52. Rtsp_Video/app/src/main/res/drawable/
  53. Rtsp_Video/app/src/main/res/drawable-hdpi/
  54. Rtsp_Video/app/src/main/res/drawable-xhdpi/
  55. Rtsp_Video/app/src/main/res/drawable-xxhdpi/
  56. Rtsp_Video/app/src/main/res/layout/
  57. Rtsp_Video/app/src/main/res/layout/activity_video.xml 1.13KB
  58. Rtsp_Video/app/src/main/res/menu/
  59. Rtsp_Video/app/src/main/res/menu/menu_main.xml 415B
  60. Rtsp_Video/app/src/main/res/mipmap-hdpi/
  61. Rtsp_Video/app/src/main/res/mipmap-mdpi/
  62. Rtsp_Video/app/src/main/res/mipmap-xhdpi/
  63. Rtsp_Video/app/src/main/res/mipmap-xhdpi/ic_launcher.png 189.58KB
  64. Rtsp_Video/app/src/main/res/mipmap-xxhdpi/
  65. Rtsp_Video/app/src/main/res/mipmap-xxxhdpi/
  66. Rtsp_Video/app/src/main/res/values/
  67. Rtsp_Video/app/src/main/res/values/colors.xml 406B
  68. Rtsp_Video/app/src/main/res/values/dimens.xml 261B
  69. Rtsp_Video/app/src/main/res/values/strings.xml 128B
  70. Rtsp_Video/app/src/main/res/values/styles.xml 550B
  71. Rtsp_Video/app/src/main/res/values-v21/
  72. Rtsp_Video/app/src/main/res/values-v21/styles.xml 336B
  73. Rtsp_Video/app/src/main/res/values-w820dp/
  74. Rtsp_Video/app/src/main/res/values-w820dp/dimens.xml 364B
  75. Rtsp_Video/app/src/test/
  76. Rtsp_Video/app/src/test/java/
  77. Rtsp_Video/app/src/test/java/com/
  78. Rtsp_Video/app/src/test/java/com/thdz/
  79. Rtsp_Video/app/src/test/java/com/thdz/rsguard/
  80. Rtsp_Video/app/src/test/java/com/thdz/rsguard/ExampleUnitTest.java 410B
  81. Rtsp_Video/build.gradle 386B
  82. Rtsp_Video/gradle/
  83. Rtsp_Video/gradle/wrapper/
  84. Rtsp_Video/gradle/wrapper/gradle-wrapper.jar 52.38KB
  85. Rtsp_Video/gradle/wrapper/gradle-wrapper.properties 233B
  86. Rtsp_Video/gradle.properties 747B
  87. Rtsp_Video/gradlew 4.85KB
  88. Rtsp_Video/gradlew.bat 2.35KB
  89. Rtsp_Video/settings.gradle 16B
0评论
提交 加载更多评论
其他资源 AD Type C 封装库 6Pin 24Pin分享(带3D视图)
介绍链接:https://blog.csdn.net/XiaoYuHaoAiMin/article/details/104171690 某宝有卖的6Pin 24Pin TypeC 接口AD封装库,包括3D视图,6Pin我做过一个东西的,自己画的,24Pin的来自互联网,技术有限,可能不提供支持!
月老情侣交友盲盒4.0.1源码
基于Matlab编程的身份证号码识别源码[Matlab编程].zip
MATLAB身份证识别系统是一个基于MATLAB开发的人工智能系统,用于识别和提取身份证上的信息。该系统可以自动读取身份证图像,进行图像处理和分割,然后将分割后的图像区域进行特征提取和模式识别,最终实现身份证号码、姓名、性别、民族、出生日期和住址信息的自动识别和提取。 该系统的主要步骤包括图像的预处理、边缘检测和分割、文字区域提取和字符识别等。MATLAB提供了丰富的图像处理函数和工具箱,可以方便地实现这些步骤。图像的预处理可以包括灰度化、二值化、去噪等操作,边缘检测和分割可以使用Canny算法等方法,文字区域提取可以使用连通域分析等技术,字符识别可以使用模式识别算法,如卷积神经网络等。 使用MATLAB身份证识别系统可以大大提高身份证信息的识别准确性和效率,减少人工录入的错误和工作量。同时,该系统还可以应用于其他图像识别任务,如车牌识别、人脸识别等领域。
libomp140.x86-64.dll
解决 pycharm 项目运行报 OSError: [WinError 126] 找不到指定的模块。 Error loading "D:\software\python310\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.
MFC类库详解
MFC类库详解
CHM
Android XMPP例子(Openfire+asmack+spark)
Android XMPP例子(Openfire+asmack+spark)
Redis 数据库 安装、配置、访问资源
【Redis】Redis 数据库 安装、配置、访问 ( Redis 简介 | 下载 Redis 安装包 | 安装 Redis 数据库 | 命令行访问 Redis | 使用可视化工具访问 Redis ) https://hanshuliang.blog.csdn.net/article/details/128945441 博客资源快照 001_Linux安装包 002_Windows安装包 003_可视化工具_Redis Desktop Manager
32个uniapp项目源码 涵盖商城团购等
源码列表: IT之家小程序版客户端(使用 Mpvue 开发,兼容 Web)ithome-lite-master.zip mpvue 仿网易严选mpvue-shop-master.zip mpvue-音乐播放器mpvue-music-master.zip mpvue性能测试与体验miniweibo-master.zip mpvue改造的日历.zip mpvue框架仿滴滴出行didi-master.zip mpVue高仿美团小程序教程mpvue-meituan-master.zip uni APP自动更新并安装.vue uni-app nvue沉浸式状态栏(线性渐变色).vue uni-app 二维码生成器分享wxqrcode.zip uni-app 侧边导航分类,适合商品分类页面uni-app-left-navigation-master.zip uni-app 自定义底部导航栏uni-app-bottom-navigation-master.zip uni-app全局变量的几种实现方式.zip uni-app的markdown富文本编辑器插件uniapp-