refactor: mvp
This commit is contained in:
parent
1f6db8e8a9
commit
58cc7521cb
@ -13,9 +13,10 @@ namespace Tech_Demo.Presenter
|
|||||||
view.Presenter = this;
|
view.Presenter = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Equipment GetEquipment()
|
public string GetEquipmentUrl()
|
||||||
{
|
{
|
||||||
return new Equipment {Id = 1, Name = "设备1", Ip = "192.168.1.110", Url = @"rtsp://10.211.55.2:8554/rains", Type = 1};
|
var equipment = new Equipment {Id = 1, Name = "设备1", Ip = "192.168.1.110", Url = @"rtsp://10.211.55.2:8554/rains", Type = 1};
|
||||||
|
return equipment.Url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -157,8 +157,7 @@ namespace Tech_Demo
|
|||||||
":network-caching=100", ":rtsp-tcp"
|
":network-caching=100", ":rtsp-tcp"
|
||||||
}; // { ":network-caching=100", ":rtsp -tcp", ":no-audio" }; // --avcodec-hw={any,d3d11va,dxva2,none}
|
}; // { ":network-caching=100", ":rtsp -tcp", ":no-audio" }; // --avcodec-hw={any,d3d11va,dxva2,none}
|
||||||
// var videoUri = new Uri(@"rtsp://admin:abc123456@192.168.1.233:554/h264/ch33/main/av_stream");
|
// var videoUri = new Uri(@"rtsp://admin:abc123456@192.168.1.233:554/h264/ch33/main/av_stream");
|
||||||
var equipment = Presenter.GetEquipment();
|
var videoUri = new Uri(Presenter.GetEquipmentUrl());
|
||||||
var videoUri = new Uri(equipment.Url);
|
|
||||||
if (videoView.MediaPlayer == null)
|
if (videoView.MediaPlayer == null)
|
||||||
{
|
{
|
||||||
var libVlc = new LibVLC(enableDebugLogs: true);
|
var libVlc = new LibVLC(enableDebugLogs: true);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user