登录
首页 » Java » videoPlayer

videoPlayer

于 2012-10-23 发布 文件大小:86KB
0 144
下载积分: 1 下载次数: 14

代码说明:

  android 视频播放器的基本实现,供大家学习参考(the basic realization of the android video player for everyone to learn the reference)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • android open gl 示例代码下载
    [实例简介]Open GL 入门级示例 [实例截图] [核心代码]package com.china.gltry;import javax.microedition.khronos.egl.EGL10;import javax.microedition.khronos.egl.EGL11;import javax.microedition.khronos.egl.EGLConfig;import javax.microedition.khronos.egl.EGLContext;import javax.microedition.khronos.egl.EGLDisplay;import javax.microedition.khronos.egl.EGLSurface;import javax.microedition.khronos.opengles.GL;import android.view.SurfaceHolder;/** * An EGL helper class. */public class EGLHelper{ public EGLHelper() { } /** * Initialize EGL for a given configuration spec. * @param configSpec */ public void start(int[] configSpec){ /* * Get an EGL instance */ mEgl = (EGL10) EGLContext.getEGL(); /* * Get to the default display. */ mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); /* * We can now initialize EGL for that display */ int[] version = new int[2]; mEgl.eglInitialize(mEglDisplay, version); EGLConfig[] configs = new EGLConfig[1]; int[] num_config = new int[1]; mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, num_config); mEglConfig = configs[0]; /* * Create an OpenGL ES context. This must be done only once, an * OpenGL context is a somewhat heavy object. */ mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, null); mEglSurface = null; } /* * Create and return an OpenGL surface */ public GL createSurface(SurfaceHolder holder) { /* * The window size has changed, so we need to create a new * surface. */ if (mEglSurface != null) { /* * Unbind and destroy the old EGL surface, if * there is one. */ mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); mEgl.eglDestroySurface(mEglDisplay, mEglSurface); } /* * Create an EGL surface we can render into. */ mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, holder, null); /* * Before we can issue GL commands, we need to make sure * the context is current and bound to a surface. */ mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); GL gl = mEglContext.getGL(); return gl; } /** * Display the current render surface. * @return false if the context has been lost. */ public boolean swap() { mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); /* * Always check for EGL_CONTEXT_LOST, which means the context * and all associated data were lost (For instance because * the device went to sleep). We need to sleep until we * get a new surface. */ return mEgl.eglGetError() != EGL11.EGL_CONTEXT_LOST; } public void finish() { if (mEglSurface != null) { mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); mEgl.eglDestroySurface(mEglDisplay, mEglSurface); mEglSurface = null; } if (mEglContext != null) { mEgl.eglDestroyContext(mEglDisplay, mEglContext); mEglContext = null; } if (mEglDisplay != null) { mEgl.eglTerminate(mEglDisplay); mEglDisplay = null; } } EGL10 mEgl; EGLDisplay mEglDisplay; EGLSurface mEglSurface; EGLConfig mEglConfig; EGLContext mEglContext;}
    2015-04-06下载
    积分:1
  • android 高斯模糊算法例子
    android 高斯模糊算法例子
    2015-06-07下载
    积分:1
  • Android SurfaceView 实例源码
    其中实现了一个图片在屏幕缓缓移动的效果
    2013-05-23下载
    积分:1
  • CookieUtils
    得到Cookie的值,得到cookie的域名,设置Cookie的值,并使其在指定时间内生效。(Get the value of the cookie, get the domain name of the cookie, set the value of the cookie, and make it effective within a specified time.)
    2019-04-27 20:04:07下载
    积分:1
  • CreatePulleyJoint
    滑轮关节,Android开发精典案例源码,很好的参考资料。(The pulley joint, Android development of classical case of source code, a good reference.)
    2013-11-12 00:14:46下载
    积分:1
  • shudu01
    自己编写的Android数独游戏程序,修改了其中的很多BUG,在自己手机上运行良好,要求Android2.3以上(Write your own Android sudoku game procedures, revised and many of those bugs, work well on their mobile phones, above Android2.3 is required)
    2015-07-24 18:13:40下载
    积分:1
  • android AppWidgetExample(AppWidget示例)源码
    android AppWidgetExample(AppWidget示例)源码
    2014-03-16下载
    积分:1
  • WirelessOrder_Client
    该项目为本人开发的无线点菜系统源代码,包括点菜系统的登录,注册,空桌查询。转台,并台,查询功能。(The project a wireless ordering system source code which i developed, including a la carte system, login, register, empty tables query. Turntable, and Taiwan, the query function.)
    2011-10-22 09:38:05下载
    积分:1
  • Java 图形界面 聊天室完整代码
    完整的chatroom源码,大学小作业必备,实现简单,代码标准。可实现多人聊天,有客户端,服务端。
    2022-01-25 22:37:20下载
    积分:1
  • 考试制度
    项目视图: E-考试系统是快速成长的教育网站,提供免费服务,为学生练习各种类型的测试,并出席了在这个项目中的现场测试得到的最佳实践,我们设计了各个模块的网站。管理员和学生模块都是: 此模块中,网站管理员可更新最新的问题和添加新的测试类型并为学生.学生模块生成的报告: 学生应该向应用程序注册并得到唯一的用户名和密码登录到系统,并使用各种类型的测试,分析测试结果.不同类型的表格,表格可在此系统中回家两个主要的模块。 后台管理模块登录、 注册、 帐户、 配置文件、 更改密码、 注销、 考试、 试验结果、 报告生成。 项目优势: 学生可以得到经验,才决定带电测试和更好的性能增加范围。在测试中的问题与答案均取自前一年的试卷。这将提高成员的知识。报告将帮助学生分析错误与领域: 在任何编程语言 (vb.net,asp.net,java,php) 设计了这个项目。 得分细节。 下载的在线考试系统项目原代码。 项目开发在这里我们提供源代码的 java 平台和参考链接以下载代码在其他平台的有用链接: Asp.netOnline 考试系统项目 PPTPopular 项目: 工资管理系统在 JavaJava 图书馆管理系统 ScreenShotsJava 图书馆管理系统 SRS DocumentationJava 银行管理系统中的在线考试系统项目
    2022-07-14 18:34:59下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载