Skip to content

Commit 83f4fe7

Browse files
committed
[HGNN-2054] android video poster 수정
1 parent 774c4b8 commit 83f4fe7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/android/InAppChromeClient.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Licensed to the Apache Software Foundation (ASF) under one
2525
import org.json.JSONException;
2626

2727
import android.annotation.TargetApi;
28+
import android.graphics.Bitmap;
2829
import android.os.Build;
2930
import android.os.Message;
3031
import android.webkit.JsPromptResult;
@@ -131,7 +132,7 @@ public boolean onJsPrompt(WebView view, String url, String message, String defau
131132
}
132133
else {
133134
// Anything else with a gap: prefix should get this message
134-
LOG.w(LOG_TAG, "InAppBrowser does not support Cordova API calls: " + url + " " + defaultValue);
135+
LOG.w(LOG_TAG, "InAppBrowser does not support Cordova API calls: " + url + " " + defaultValue);
135136
result.cancel();
136137
return true;
137138
}
@@ -179,4 +180,9 @@ public boolean shouldOverrideUrlLoading(WebView view, String url) {
179180

180181
return true;
181182
}
183+
184+
@Override
185+
public Bitmap getDefaultVideoPoster() {
186+
return Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888);
187+
}
182188
}

0 commit comments

Comments
 (0)