|
|
|
@ -205,8 +205,8 @@ |
|
|
|
private int _ffmpegProfileId; |
|
|
|
private int _ffmpegProfileId; |
|
|
|
private bool _channelMode; |
|
|
|
private bool _channelMode; |
|
|
|
private string _streamSelector; |
|
|
|
private string _streamSelector; |
|
|
|
private IEnumerable<string> _watermarkNames = new System.Collections.Generic.HashSet<string>(); |
|
|
|
private IReadOnlyCollection<string> _watermarkNames = new System.Collections.Generic.HashSet<string>(); |
|
|
|
private IEnumerable<string> _graphicsElementNames = new System.Collections.Generic.HashSet<string>(); |
|
|
|
private IReadOnlyCollection<string> _graphicsElementNames = new System.Collections.Generic.HashSet<string>(); |
|
|
|
private bool _startFromBeginning; |
|
|
|
private bool _startFromBeginning; |
|
|
|
private int? _subtitleId; |
|
|
|
private int? _subtitleId; |
|
|
|
private int _seekSeconds; |
|
|
|
private int _seekSeconds; |
|
|
|
@ -292,7 +292,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
private async Task PreviewChannel() |
|
|
|
private async Task PreviewChannel() |
|
|
|
{ |
|
|
|
{ |
|
|
|
await _logsField.SetText(string.Empty); |
|
|
|
await _logsField.SetTextAsync(string.Empty); |
|
|
|
_lastSpeed = null; |
|
|
|
_lastSpeed = null; |
|
|
|
|
|
|
|
|
|
|
|
var baseUri = NavigationManager.ToAbsoluteUri(NavigationManager.Uri).ToString(); |
|
|
|
var baseUri = NavigationManager.ToAbsoluteUri(NavigationManager.Uri).ToString(); |
|
|
|
@ -421,7 +421,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
private async Task HandleTroubleshootingCompleted(PlaybackTroubleshootingCompletedNotification result) |
|
|
|
private async Task HandleTroubleshootingCompleted(PlaybackTroubleshootingCompletedNotification result) |
|
|
|
{ |
|
|
|
{ |
|
|
|
await InvokeAsync(async () => { await _logsField.SetText(string.Empty); }); |
|
|
|
await InvokeAsync(async () => { await _logsField.SetTextAsync(string.Empty); }); |
|
|
|
_lastSpeed = null; |
|
|
|
_lastSpeed = null; |
|
|
|
|
|
|
|
|
|
|
|
foreach (double speed in result.MaybeSpeed) |
|
|
|
foreach (double speed in result.MaybeSpeed) |
|
|
|
@ -442,14 +442,14 @@ |
|
|
|
if (FileSystem.File.Exists(logFileName)) |
|
|
|
if (FileSystem.File.Exists(logFileName)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
string text = await File.ReadAllTextAsync(logFileName); |
|
|
|
string text = await File.ReadAllTextAsync(logFileName); |
|
|
|
await InvokeAsync(async () => { await _logsField.SetText(text); }); |
|
|
|
await InvokeAsync(async () => { await _logsField.SetTextAsync(text); }); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
foreach (var exception in result.MaybeException) |
|
|
|
foreach (var exception in result.MaybeException) |
|
|
|
{ |
|
|
|
{ |
|
|
|
string text = exception.Message + Environment.NewLine + Environment.NewLine + exception; |
|
|
|
string text = exception.Message + Environment.NewLine + Environment.NewLine + exception; |
|
|
|
await InvokeAsync(async () => { await _logsField.SetText(text); }); |
|
|
|
await InvokeAsync(async () => { await _logsField.SetTextAsync(text); }); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|