Java Code Examples for tv.danmaku.ijk.media.player.IMediaPlayer#setDisplay()
The following examples show how to use
tv.danmaku.ijk.media.player.IMediaPlayer#setDisplay() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IjkVideoView.java From MKVideoPlayer with MIT License | 5 votes |
private void bindSurfaceHolder(IMediaPlayer mp, IRenderView.ISurfaceHolder holder) { if (mp == null) return; if (holder == null) { mp.setDisplay(null); return; } holder.bindToMediaPlayer(mp); }
Example 2
Source File: MediaPlayerView.java From HeroVideo-master with Apache License 2.0 | 5 votes |
private void bindSurfaceHolder(IMediaPlayer mp, IRenderView.ISurfaceHolder holder) { if (mp == null) return; if (holder == null) { mp.setDisplay(null); return; } holder.bindToMediaPlayer(mp); }
Example 3
Source File: SurfaceRenderView.java From talk-android with MIT License | 5 votes |
public void bindToMediaPlayer(IMediaPlayer mp) { if (mp != null) { if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) && (mp instanceof ISurfaceTextureHolder)) { ISurfaceTextureHolder textureHolder = (ISurfaceTextureHolder) mp; textureHolder.setSurfaceTexture(null); } mp.setDisplay(mSurfaceHolder); } }
Example 4
Source File: ParsingMediaManager.java From ParsingPlayer with GNU Lesser General Public License v2.1 | 5 votes |
private void bindSurfaceHolder(IMediaPlayer mp, SurfaceTexture surfaceTexture) { if (mp == null) return; if (surfaceTexture == null) { mp.setDisplay(null); return; } mp.setSurface(new Surface(surfaceTexture)); }
Example 5
Source File: IjkVideoView.java From MVideo with Apache License 2.0 | 5 votes |
private void bindSurfaceHolder(IMediaPlayer mp, IRenderView.ITextureHolder holder) { if (mp == null) return; if (holder == null) { mp.setDisplay(null); return; } holder.bindToMediaPlayer(mp); }
Example 6
Source File: SurfaceRenderView.java From IjkPlayerDemo with Apache License 2.0 | 5 votes |
public void bindToMediaPlayer(IMediaPlayer mp) { if (mp != null) { if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) && (mp instanceof ISurfaceTextureHolder)) { ISurfaceTextureHolder textureHolder = (ISurfaceTextureHolder) mp; textureHolder.setSurfaceTexture(null); } mp.setDisplay(mSurfaceHolder); } }
Example 7
Source File: IjkVideoView.java From TvPlayer with Apache License 2.0 | 5 votes |
private void bindSurfaceHolder(IMediaPlayer mp, IRenderView.ISurfaceHolder holder) { if (mp == null) return; if (holder == null) { mp.setDisplay(null); return; } holder.bindToMediaPlayer(mp); }
Example 8
Source File: SurfaceRenderView.java From LivePlayback with Apache License 2.0 | 5 votes |
public void bindToMediaPlayer(IMediaPlayer mp) { if (mp != null) { if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) && (mp instanceof ISurfaceTextureHolder)) { ISurfaceTextureHolder textureHolder = (ISurfaceTextureHolder) mp; textureHolder.setSurfaceTexture(null); } mp.setDisplay(mSurfaceHolder); } }
Example 9
Source File: SurfaceRenderView.java From GiraffePlayer with Apache License 2.0 | 5 votes |
public void bindToMediaPlayer(IMediaPlayer mp) { if (mp != null) { if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) && (mp instanceof ISurfaceTextureHolder)) { ISurfaceTextureHolder textureHolder = (ISurfaceTextureHolder) mp; textureHolder.setSurfaceTexture(null); } mp.setDisplay(mSurfaceHolder); } }
Example 10
Source File: SurfaceRenderView.java From MKVideoPlayer with MIT License | 5 votes |
public void bindToMediaPlayer(IMediaPlayer mp) { if (mp != null) { if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) && (mp instanceof ISurfaceTextureHolder)) { ISurfaceTextureHolder textureHolder = (ISurfaceTextureHolder) mp; textureHolder.setSurfaceTexture(null); } mp.setDisplay(mSurfaceHolder); } }
Example 11
Source File: IjkVideoView.java From talk-android with MIT License | 5 votes |
private void bindSurfaceHolder(IMediaPlayer mp, IRenderView.ISurfaceHolder holder) { if (mp == null) return; if (holder == null) { mp.setDisplay(null); return; } holder.bindToMediaPlayer(mp); }
Example 12
Source File: SurfaceRenderView.java From ShareBox with Apache License 2.0 | 5 votes |
public void bindToMediaPlayer(IMediaPlayer mp) { if (mp != null) { if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) && (mp instanceof ISurfaceTextureHolder)) { ISurfaceTextureHolder textureHolder = (ISurfaceTextureHolder) mp; textureHolder.setSurfaceTexture(null); } mp.setDisplay(mSurfaceHolder); } }
Example 13
Source File: IjkVideoView.java From GiraffePlayer with Apache License 2.0 | 5 votes |
private void bindSurfaceHolder(IMediaPlayer mp, IRenderView.ISurfaceHolder holder) { if (mp == null) return; if (holder == null) { mp.setDisplay(null); return; } holder.bindToMediaPlayer(mp); }
Example 14
Source File: SurfaceRenderView.java From AndroidTvDemo with Apache License 2.0 | 5 votes |
public void bindToMediaPlayer(IMediaPlayer mp) { if (mp != null) { if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) && (mp instanceof ISurfaceTextureHolder)) { ISurfaceTextureHolder textureHolder = (ISurfaceTextureHolder)mp; textureHolder.setSurfaceTexture(null); } mp.setDisplay(mSurfaceHolder); } }
Example 15
Source File: IjkVideoView.java From LivePlayback with Apache License 2.0 | 5 votes |
private void bindSurfaceHolder(IMediaPlayer mp, IRenderView.ISurfaceHolder holder) { if (mp == null) return; if (holder == null) { mp.setDisplay(null); return; } holder.bindToMediaPlayer(mp); }
Example 16
Source File: IjkVideoView.java From MD with Apache License 2.0 | 5 votes |
private void bindSurfaceHolder(IMediaPlayer mp, IRenderView.ISurfaceHolder holder) { if (mp == null) return; if (holder == null) { mp.setDisplay(null); return; } holder.bindToMediaPlayer(mp); }
Example 17
Source File: SurfaceRenderView.java From HeroVideo-master with Apache License 2.0 | 5 votes |
public void bindToMediaPlayer(IMediaPlayer mp) { if (mp != null) { if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) && (mp instanceof ISurfaceTextureHolder)) { ISurfaceTextureHolder textureHolder = (ISurfaceTextureHolder) mp; textureHolder.setSurfaceTexture(null); } mp.setDisplay(mSurfaceHolder); } }
Example 18
Source File: SurfaceRenderView.java From MD with Apache License 2.0 | 5 votes |
public void bindToMediaPlayer(IMediaPlayer mp) { if (mp != null) { if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) && (mp instanceof ISurfaceTextureHolder)) { ISurfaceTextureHolder textureHolder = (ISurfaceTextureHolder) mp; textureHolder.setSurfaceTexture(null); } mp.setDisplay(mSurfaceHolder); } }
Example 19
Source File: IjkVideoView.java From DanDanPlayForAndroid with MIT License | 5 votes |
private void bindSurfaceHolder(IMediaPlayer mp, IRenderView.ISurfaceHolder holder) { if (mp == null) return; if (holder == null) { mp.setDisplay(null); return; } holder.bindToMediaPlayer(mp); }
Example 20
Source File: SurfaceRenderView.java From TVRemoteIME with GNU General Public License v2.0 | 5 votes |
public void bindToMediaPlayer(IMediaPlayer mp) { if (mp != null) { if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) && (mp instanceof ISurfaceTextureHolder)) { ISurfaceTextureHolder textureHolder = (ISurfaceTextureHolder) mp; textureHolder.setSurfaceTexture(null); } mp.setDisplay(mSurfaceHolder); } }