Как исправить: java.io.FileNotFoundException: Нет поставщика контента: - PullRequest
0 голосов
/ 10 июля 2019

Я пытаюсь открыть и воспроизвести видеофайл с URL, но когда я пытаюсь это сделать, возникает исключение.

java.io.FileNotFoundException: Нет поставщика контента: http://beispielseite.orgfree.com/video2.mp4

Я пробовал разные URL-адреса, и большинство не работает, но я нашел один, в которомтакже появляется исключение, но видео воспроизводится: https://ia600201.us.archive.org/22/items/ksnn_compilation_master_the_internet/ksnn_compilation_master_the_internet_512kb.mp4

final VideoView videoView = (VideoView)findViewById(R.id.videoView);
System.out.println(link);
videoView.setVideoPath(" https://ia600201.us.archive.org/22/items/ksnn_compilation_master_the_internet/ksnn_compilation_master_the_internet_512kb.mp4");
videoView.start();

2019-07-10 14: 10: 16.607 22439-22439 / com.example.watchads W / MediaPlayer: Не удалось открыть https://ia600201.us.archive.org/22/items/ksnn_compilation_master_the_internet/ksnn_compilation_master_the_internet_512kb.mp4: java.io.FileNotFoundException: Нет поставщика контента: https://ia600201.us.archive.org/22/items/ksnn_compilation_master_the_internet/ksnn_compilation_master_the_internet_512kb.mp4

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...