###前提・実現したいこと
S3に保存した動画ファイルをURLでAndroid上で再生したいです。
###発生している問題・エラーメッセージ
W/MediaPlayer: Couldn't open https://s3-ap-northeast-1.amazonaws.com/test-town/10%E7%A7%92%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E3%82%BF%E3%82%99%E3%82%A6%E3%83%B3.mp4: java.io.FileNotFoundException: No content provider: https://s3-ap-northeast-1.amazonaws.com/test-town/10%E7%A7%92%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E3%82%BF%E3%82%99%E3%82%A6%E3%83%B3.mp4
###該当のソースコード
final VideoView videoView = (VideoView) findViewById(R.id.video); videoView.setVideoURI(Uri.parse("https://s3-ap-northeast-1.amazonaws.com/test-town/10%E7%A7%92%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E3%82%BF%E3%82%99%E3%82%A6%E3%83%B3.mp4"));
関連するコードはこの2行です。
エラーは出ていませんがエミュレーターを起動しこのコードが書いてるページへ繊維すると上記エラーコードを吐き出し動画ファイルが表示されません。
ご経験ある方、ご指摘お願いします。
###追加
AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" />
10%E7%A7%92%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E3%83%80%E3%82%A6%E3%83%B3の際のログ
06-16 16:40:40.370 2410-2419/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/metrics.db' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed. 06-16 16:40:40.370 2410-32439/com.google.android.gms I/art: Waiting for a blocking GC DisableMovingGc 06-16 16:40:40.372 2410-32439/com.google.android.gms I/art: Starting a blocking GC DisableMovingGc 06-16 16:40:40.409 1316-32438/? E/NuCachedSource2: source returned error -1, 10 retries left 06-16 16:40:40.659 2410-2419/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/help_responses.db.18' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed. 06-16 16:40:40.663 2410-2419/com.google.android.gms W/SQLiteConnectionPool: A SQLiteConnection object for database '/data/user/0/com.google.android.gms/databases/auto_complete_suggestions.db' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed. 06-16 16:40:43.536 1316-32438/? E/NuCachedSource2: source returned error -1, 9 retries left 06-16 16:40:46.653 1316-32438/? E/NuCachedSource2: source returned error -1, 8 retries left 06-16 16:40:49.773 1316-32438/? E/NuCachedSource2: source returned error -1, 7 retries left 06-16 16:40:52.893 1316-32438/? E/NuCachedSource2: source returned error -1, 6 retries left 06-16 16:40:56.019 1316-32438/? E/NuCachedSource2: source returned error -1, 5 retries left 06-16 16:40:59.131 1316-32438/? E/NuCachedSource2: source returned error -1, 4 retries left 06-16 16:41:02.252 1316-32438/? E/NuCachedSource2: source returned error -1, 3 retries left 06-16 16:41:03.773 2135-2135/com.google.android.googlequicksearchbox:search I/GrammarCompilationSvcCt: #startService for null, APP_NAMES. 06-16 16:41:03.778 2135-320/com.google.android.googlequicksearchbox:search I/ContextCompilationHandl: Compiling grammar for: en-US, type=APP_NAMES 06-16 16:41:03.779 2135-320/com.google.android.googlequicksearchbox:search I/ContextCompilationHandl: No grammar compilation resources for VOICE_ACTIONS_COMPILER, aborting. 06-16 16:41:05.334 1316-32438/? E/NuCachedSource2: source returned error -1, 2 retries left 06-16 16:41:08.483 1316-32438/? E/NuCachedSource2: source returned error -1, 1 retries left 06-16 16:41:11.600 1316-32438/? E/NuCachedSource2: source returned error -1, 0 retries left 06-16 16:41:11.690 1316-32431/? E/GenericSource: Failed to init from data source! 06-16 16:41:11.691 1316-32430/? D/NuPlayerDriver: notifyListener_l(0xb270c180), (100, 1, -2147483648), loop setting(0, 0) 06-16 16:41:11.691 32297-32432/station.around.aroundsatation E/MediaPlayer: error (1, -2147483648) 06-16 16:41:11.691 32297-32297/station.around.aroundsatation E/MediaPlayer: Error (1,-2147483648) 06-16 16:41:11.691 32297-32297/station.around.aroundsatation D/VideoView: Error: 1,-2147483648 06-16 16:41:11.737 1299-1332/? D/gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer 06-16 16:41:11.771 1299-1332/? D/gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer 06-16 16:41:11.793 1299-1332/? D/gralloc_ranchu: gralloc_alloc: format 1 and usage 0x900 imply creation of host color buffer 06-16 16:41:13.852 1578-2184/system_process W/InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@a45d52f attribute=null, token = android.os.BinderProxy@bfa38e0 06-16 16:41:32.343 2135-2135/com.google.android.googlequicksearchbox:search I/GrammarCompilationSvcCt: #startService for null, APP_NAMES. 06-16 16:41:32.346 2135-740/com.google.android.googlequicksearchbox:search I/ContextCompilationHandl: Compiling grammar for: en-US, type=APP_NAMES 06-16 16:41:32.346 2135-740/com.google.android.googlequicksearchbox:search I/ContextCompilationHandl: No grammar compilation resources for VOICE_ACTIONS_COMPILER, aborting.
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/06/16 07:46
2017/06/16 08:09
2017/06/16 08:15
2017/06/16 09:41