"景先生毕设|www.jxszl.com

C# Android.Net.Uri类代码示例

2023-12-29 17:04编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中Android.Net.Uri类的典型用法代码示例。如果您正苦于以下问题:C#Android.Net.Uri类的具体用法?C#Android.Net.Uri怎么用?C#Android.Net.Uri使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:OnCreate protectedoverridevoidOnCreate(Bundleicicle) { //base.OnCreate(icicle); if(!LibsChecker.CheckVitamioLibs(this)) return; SetContentView(Resource.Layout.videobuffer); mVideoView=FindViewById(Resource.Id.buffer); pb=FindViewById(Resource.Id.probar); downloadRateView=FindViewById(Resource.Id.download_rate); loadRateView=FindViewById(Resource.Id.load_rate); if(path==""){ //TelltheusertoprovideamediafileURL/path. Toast.MakeText(this,"PleaseeditVideoBufferActivity,andsetpath"+"variabletoyourmediafileURL/path",ToastLength.Long).Show(); return; }else{ // //*Alternatively,forstreamingmediayoucanuse //*mVideoView.setVideoURI(Uri.parse(URLstring)); // uri=Android.Net.Uri.Parse(path); mVideoView.SetVideoURI(uri); mVideoView.SetMediaController(newMediaController(this)); mVideoView.RequestFocus(); mVideoView.SetOnInfoListener(this); mVideoView.SetOnBufferingUpdateListener(this); mVideoView.Prepared+=(objectsender,MediaPlayer.PreparedEventArgse)=>{ e.P0.SetPlaybackSpeed(1.0f); }; } }
原文链接:http://www.jxszl.com/biancheng/C/556530.html