-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Problem description:
If the HTTP server sends a 404 error in response to the specified URL, no error is thrown indicating that the video cannot be played.
The last log received is
"[AVProVideo] Opening http://[non-existing-file].m3u8 (offset 0) with API WinRT"
Tested using
mediaPlayer.Events.AddListener(MediaPlayerEventHandler);
mediaPlayer.OpenMedia(MediaPathType.AbsolutePathOrURL, videoURL, autoPlay: true)
...
private void MediaPlayerEventHandler(MediaPlayer mediaPlayer, MediaPlayerEvent.EventType eventType, ErrorCode errorCode)
{
if(eventType == MediaPlayerEvent.EventType.Error)
{
// handle error
}
}
Device:
At least in the Unity Editor on Windows 10, haven't tested in builds yet.
Media:
Tested with a m3u8 and mp4 video URL on the same server.
System Information:
AVPro Video: v2.7.3 (plugin v2.7.0f1-core)
Target Platform: Standalone
Unity: v2020.3.30f1 WindowsEditor
OS: Desktop - Precision 3650 Tower (Dell Inc.) - Windows 10 (10.0.19045) 64bit - French
CPU: 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz - 16 threads - 32493KB
GPU: NVIDIA GeForce GTX 1650 SUPER - NVIDIA - Direct3D 11.0 [level 11.1] - 3943KB - 16384