[GH-ISSUE #490] 导入视频的功能没有合理的错误处理 #410

Closed
opened 2026-02-26 09:31:20 +03:00 by kerem · 3 comments
Owner

Originally created by @wybb on GitHub (Jun 24, 2019).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/490

Originally assigned to: @NickeManarin on GitHub.

_upperPlayer.MediaOpened += UpperMediaPlayer_MediaOpened;
_upperPlayer.MediaFailed += (s, ex) =>
{
//增加错误处理
};
_upperPlayer.Open(file);
_upperPlayer.Pause();

Originally created by @wybb on GitHub (Jun 24, 2019). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/490 Originally assigned to: @NickeManarin on GitHub. _upperPlayer.MediaOpened += UpperMediaPlayer_MediaOpened; _upperPlayer.MediaFailed += (s, ex) => { //增加错误处理 }; _upperPlayer.Open(file); _upperPlayer.Pause();
kerem 2026-02-26 09:31:20 +03:00
Author
Owner

@wybb commented on GitHub (Jun 24, 2019):

假如电脑上没有安装MediaPlayer就会触发错误,但是ScreenToGif并没有做相关处理

<!-- gh-comment-id:504829199 --> @wybb commented on GitHub (Jun 24, 2019): 假如电脑上没有安装MediaPlayer就会触发错误,但是ScreenToGif并没有做相关处理
Author
Owner

@NickeManarin commented on GitHub (Jun 26, 2019):

Yes, I need to add a warning explaining that the loading failed. Also, I want to use FFmpeg when possible to load the frames if the default media player is not installed.

<!-- gh-comment-id:505878866 --> @NickeManarin commented on GitHub (Jun 26, 2019): Yes, I need to add a warning explaining that the loading failed. Also, I want to use FFmpeg when possible to load the frames if the default media player is not installed.
Author
Owner

@NickeManarin commented on GitHub (Jun 29, 2019):

Done. If the media fails to load. The app will warn the user.

<!-- gh-comment-id:506980809 --> @NickeManarin commented on GitHub (Jun 29, 2019): Done. If the media fails to load. The app will warn the user.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#410
No description provided.