• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java LibsChecker类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中io.vov.vitamio.LibsChecker的典型用法代码示例。如果您正苦于以下问题:Java LibsChecker类的具体用法?Java LibsChecker怎么用?Java LibsChecker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



LibsChecker类属于io.vov.vitamio包,在下文中一共展示了LibsChecker类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    if (!LibsChecker.checkVitamioLibs(this))
        return;
    getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
    setContentView(R.layout.activity_video_play);
    View view = findView(R.id.appbar);
    int width = DeviceUtils.getScreenWidth(this) + DensityUtil.dip2px(this, 110) + getActionBarSize();
    CoordinatorLayout.LayoutParams params = new CoordinatorLayout.LayoutParams(CoordinatorLayout.LayoutParams.MATCH_PARENT, width);
    view.setLayoutParams(params);
    medias_id = getIntent().getIntExtra(MEDIAS_ID_KEY, -1);
    mPresenter = new PlayVideoPresenterImpl(this);
    mPresenter.getMedia(medias_id);
    initView();
    mPresenter.refresh(medias_id);
}
 
开发者ID:shegang,项目名称:meishiDemo,代码行数:18,代码来源:VideoPlayActivity.java


示例2: setStreamUrl

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
@ReactProp(name = "streamUrl")
public void setStreamUrl(VideoView view, @Nullable String streamUrl) {
  if (!LibsChecker.checkVitamioLibs(mActivity))
    return;

  view.setVideoPath(streamUrl);

  view.setMediaController(new MediaController(mContext));
  view.requestFocus();

  view.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
    @Override
    public void onPrepared(MediaPlayer mediaPlayer) {
      // optional need Vitamio 4.0
      mediaPlayer.setPlaybackSpeed(1.0f);
    }
  });
}
 
开发者ID:sejoker,项目名称:react-native-android-vitamio,代码行数:19,代码来源:VitamioViewManager.java


示例3: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_translate);
    translateBus.register(this);

    Intent intent = getIntent();
    resourceSlug = intent.getStringExtra(ResourceSlug);
    projectSlug = intent.getStringExtra(ProjectSlug);
    videoPath = intent.getStringExtra(VIDEO_PATH);
    name = intent.getStringExtra(ResourceName);

    setTitle(name);

    loadSrt();
    if (!LibsChecker.checkVitamioLibs(this)) {
        Toast.makeText(this, R.string.errorVideoLib, Toast.LENGTH_SHORT).show();
        isVideoPlayerOK = false;
    }
    initViewAndSetListener();
    initPlay();
}
 
开发者ID:edu-infinity,项目名称:eduinfinity-translateHelper,代码行数:23,代码来源:TranslateActivity.java


示例4: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	if (!LibsChecker.checkVitamioLibs(this))
		return;
	Intent intent = getIntent();
	uri = intent.getStringExtra("uri");
	title = intent.getStringExtra("title");
	if (!StringUtil.isEmpty(uri)) {
		if (StringUtil.isEmpty(title)) {
			title = "δ֪��Դ��Ƶ";
		}
		VideoActivity.openVideo(this, Uri.parse(uri), title);
		this.finish();
	} else {
		Toast.makeText(this, "��Ƶ��ַ����", Toast.LENGTH_SHORT).show();
		try {
			android.os.Process.killProcess(android.os.Process.myPid());
		} catch (Exception e) {
		}
	}
}
 
开发者ID:ymback,项目名称:BambooPlayer,代码行数:23,代码来源:ReceiveIntentActivity.java


示例5: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    if (!LibsChecker.checkVitamioLibs(this)) return;
    setContentView(R.layout.activity_video_view_live);
    getDataFromIntent();
    initviews();
    initTanMuViews();
    initVideoSettings();
}
 
开发者ID:wuyinlei,项目名称:MyHearts,代码行数:11,代码来源:VideoViewLiveActivity.java


示例6: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	if (!LibsChecker.checkVitamioLibs(this))
		return;
	setListAdapter(new SimpleAdapter(this, getData(), android.R.layout.simple_list_item_1, new String[] { "title" }, new int[] { android.R.id.text1 }));
}
 
开发者ID:AJRdev,项目名称:ARDrone-Android-GEII,代码行数:8,代码来源:VitamioListActivity.java


示例7: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
@Override
public void onCreate(Bundle icicle) {
  super.onCreate(icicle);
  if (!LibsChecker.checkVitamioLibs(this))
    return;
  setContentView(R.layout.videobuffer);
  mVideoView = (VideoView) findViewById(R.id.buffer);
  pb = (ProgressBar) findViewById(R.id.probar);

  downloadRateView = (TextView) findViewById(R.id.download_rate);
  loadRateView = (TextView) findViewById(R.id.load_rate);
  if (path == "") {
    // Tell the user to provide a media file URL/path.
    Toast.makeText(
        VideoViewBuffer.this,
        "Please edit VideoBuffer Activity, and set path"
            + " variable to your media file URL/path", Toast.LENGTH_LONG).show();
    return;
  } else {
    /*
     * Alternatively,for streaming media you can use
     * mVideoView.setVideoURI(Uri.parse(URLstring));
     */
    uri = Uri.parse(path);
    mVideoView.setVideoURI(uri);
    mVideoView.setMediaController(new MediaController(this));
    mVideoView.requestFocus();
    mVideoView.setOnInfoListener(this);
    mVideoView.setOnBufferingUpdateListener(this);
    mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
      @Override
      public void onPrepared(MediaPlayer mediaPlayer) {
        // optional need Vitamio 4.0
        mediaPlayer.setPlaybackSpeed(1.0f);
      }
    });
  }

}
 
开发者ID:AJRdev,项目名称:ARDrone-Android-GEII,代码行数:40,代码来源:VideoViewBuffer.java


示例8: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
/**
 * 
 * Called when the activity is first created.
 */
@Override
public void onCreate(Bundle icicle) {
  super.onCreate(icicle);
  if (!LibsChecker.checkVitamioLibs(this))
    return;
  setContentView(R.layout.mediaplayer_3);
  mTextureView = (TextureView) findViewById(R.id.surface);
  mTextureView.setSurfaceTextureListener(this);

}
 
开发者ID:AJRdev,项目名称:ARDrone-Android-GEII,代码行数:15,代码来源:MediaPlayerDemo_setSurface.java


示例9: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
@Override
public void onCreate(Bundle icicle) {
	super.onCreate(icicle);
	if (!LibsChecker.checkVitamioLibs(this))
		return;
	setContentView(R.layout.videoview);
	mEditText = (EditText) findViewById(R.id.url);
	mVideoView = (VideoView) findViewById(R.id.surface_view);
	if (path == "") {
		// Tell the user to provide a media file URL/path.
		Toast.makeText(VideoViewDemo.this, "Please edit VideoViewDemo Activity, and set path" + " variable to your media file URL/path", Toast.LENGTH_LONG).show();
		return;
	} else {
		/*
		 * Alternatively,for streaming media you can use
		 * mVideoView.setVideoURI(Uri.parse(URLstring));
		 */
		mVideoView.setVideoPath(path);
		mVideoView.setMediaController(new MediaController(this));
		mVideoView.requestFocus();

		mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
			@Override
			public void onPrepared(MediaPlayer mediaPlayer) {
				// optional need Vitamio 4.0
				mediaPlayer.setPlaybackSpeed(1.0f);
			}
		});
	}

}
 
开发者ID:AJRdev,项目名称:ARDrone-Android-GEII,代码行数:32,代码来源:VideoViewDemo.java


示例10: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
/**
 * 
 * Called when the activity is first created.
 */
@Override
public void onCreate(Bundle icicle) {
	super.onCreate(icicle);
	if (!LibsChecker.checkVitamioLibs(this))
		return;
	setContentView(R.layout.mediaplayer_2);
	mPreview = (SurfaceView) findViewById(R.id.surface);
	holder = mPreview.getHolder();
	holder.addCallback(this);
	holder.setFormat(PixelFormat.RGBA_8888); 
	extras = getIntent().getExtras();

}
 
开发者ID:AJRdev,项目名称:ARDrone-Android-GEII,代码行数:18,代码来源:MediaPlayerDemo_Video.java


示例11: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	if (!LibsChecker.checkVitamioLibs(this))
		return;
	setContentView(R.layout.subtitle1);
	tv = (TextView) findViewById(R.id.sub1);
	splayer = (SurfaceView) findViewById(R.id.surface);
	sholder = splayer.getHolder();
	sholder.setFormat(PixelFormat.RGBA_8888);
	sholder.addCallback(this);
}
 
开发者ID:AJRdev,项目名称:ARDrone-Android-GEII,代码行数:13,代码来源:MediaPlayerSubtitle.java


示例12: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
@Override
public void onCreate(Bundle icicle) {
	super.onCreate(icicle);
	if (!LibsChecker.checkVitamioLibs(this))
		return;
	tx = new TextView(this);
	setContentView(tx);
	Bundle extras = getIntent().getExtras();
	playAudio(extras.getInt(MEDIA));
}
 
开发者ID:AJRdev,项目名称:ARDrone-Android-GEII,代码行数:11,代码来源:MediaPlayerDemo_Audio.java


示例13: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
@Override
public void onCreate(Bundle icicle) {
	super.onCreate(icicle);
	if (!LibsChecker.checkVitamioLibs(this))
		return;
	setContentView(R.layout.subtitle2);
	mVideoView = (VideoView) findViewById(R.id.surface_view);
	mSubtitleView = (TextView) findViewById(R.id.subtitle_view);

	if (path == "") {
		// Tell the user to provide a media file URL/path.
		Toast.makeText(VideoViewSubtitle.this, "Please edit VideoViewSubtitle Activity, and set path" + " variable to your media file URL/path", Toast.LENGTH_LONG).show();
		return;
	} else {
		/*
		 * Alternatively,for streaming media you can use
		 * mVideoView.setVideoURI(Uri.parse(URLstring));
		 */
		mVideoView.setVideoPath(path);

		// mVideoView.setMediaController(new MediaController(this));
		mVideoView.requestFocus();

		mVideoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
			@Override
			public void onPrepared(MediaPlayer mediaPlayer) {
				// optional need Vitamio 4.0
				mediaPlayer.setPlaybackSpeed(1.0f);
				mVideoView.addTimedTextSource(subtitle_path);
				mVideoView.setTimedTextShown(true);

			}
		});
		mVideoView.setOnTimedTextListener(new OnTimedTextListener() {

			@Override
			public void onTimedText(String text) {
				mSubtitleView.setText(text);
			}

			@Override
			public void onTimedTextUpdate(byte[] pixels, int width, int height) {

			}
		});
	}
}
 
开发者ID:AJRdev,项目名称:ARDrone-Android-GEII,代码行数:48,代码来源:VideoViewSubtitle.java


示例14: onCreate

import io.vov.vitamio.LibsChecker; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {

	super.onCreate (savedInstanceState);

	if (!LibsChecker.checkVitamioLibs(this))
		return;


	if (Menu_UI.bVideo == true){
		setContentView(R.layout.joy_video);
	}
	else {
		setContentView(R.layout.joy_main);
	}



	getWindow().getDecorView().setBackgroundColor(Color.WHITE);
	getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
			WindowManager.LayoutParams.FLAG_FULLSCREEN);
	ActionBar actionBar = getActionBar();
	actionBar.hide();


	if (Menu_UI.bVideo == true){

		mVideo = new VideoManager (this);
		mPreview = (SurfaceView) findViewById(R.id.surface);
		holder = mPreview.getHolder();
		holder.addCallback(this);
		holder.setFormat(PixelFormat.RGBA_8888);
		metrics = new DisplayMetrics();
		getWindowManager().getDefaultDisplay().getMetrics(metrics);




	}



	joy1 = (JoystickView) findViewById(R.id.joystickView01); // Cr�ation des joystick et association avec leurs listener																
	joy1.setOnJostickMovedListener(listener1);

	joy2 = (JoystickView) findViewById(R.id.joystickView02);
	joy2.setOnJostickMovedListener(listener2);


	textView1 = (TextView) findViewById(R.id.textView1); 	//INSTANCIATION TEXTVIEWS
	textView2 = (TextView) findViewById(R.id.textView2);
	textView3 = (TextView) findViewById(R.id.textView3);
	textView4 = (TextView) findViewById(R.id.textView4);
	textView5 = (TextView) findViewById(R.id.textView5);
	textView6 = (TextView) findViewById(R.id.textView6);
	textView13 = (TextView) findViewById(R.id.textView13);




}
 
开发者ID:AJRdev,项目名称:ARDrone-Android-GEII,代码行数:62,代码来源:Drone_UI.java



注:本文中的io.vov.vitamio.LibsChecker类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java AutoCompletionPolicy类代码示例发布时间:2022-05-22
下一篇:
Java PropertyDescriptor类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap