com.yqritc.scalablevideoview.ScalableVideoView Java Examples
The following examples show how to use
com.yqritc.scalablevideoview.ScalableVideoView.
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: MainActivity.java From Android-ScalableVideoView with Apache License 2.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mVideoView = (ScalableVideoView) findViewById(R.id.video_view); findViewById(R.id.btn_next).setOnClickListener(this); try { mVideoView.setRawData(R.raw.landscape_sample); mVideoView.setVolume(0, 0); mVideoView.setLooping(true); mVideoView.prepare(new MediaPlayer.OnPreparedListener() { @Override public void onPrepared(MediaPlayer mp) { mVideoView.start(); } }); } catch (IOException ioe) { //ignore } }
Example #2
Source File: SampleAdapter.java From Android-ScalableVideoView with Apache License 2.0 | 5 votes |
private void setVideo(final ScalableVideoView videoView) { try { videoView.setRawData(mVideoResId); videoView.setVolume(0, 0); videoView.setLooping(true); videoView.prepare(new MediaPlayer.OnPreparedListener() { @Override public void onPrepared(MediaPlayer mp) { videoView.start(); } }); } catch (IOException ioe) { //ignore } }
Example #3
Source File: SampleAdapter.java From Android-ScalableVideoView with Apache License 2.0 | 4 votes |
public ViewHolder(View view) { super(view); mTextView = (TextView) view.findViewById(R.id.video_text); mVideoView = (ScalableVideoView) view.findViewById(R.id.video_view); }