You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: instreamvideo/src/main/java/com/appnexus/opensdk/instreamvideo/VideoWebView.java
+27-5Lines changed: 27 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,8 @@ class VideoWebView extends WebView {
69
69
privatebooleanadIsPlaying = false;
70
70
privatebooleanfailed = false;
71
71
privateVideoRequestManagermanager;
72
+
privatestaticfinalintTOTAL_RETRY_TIMES = 10;
73
+
privatestaticfinalintWAIT_INTERVAL_MILLES = 300;
72
74
73
75
privateintadDuration = 0;
74
76
privateStringcreativeId = "";
@@ -79,7 +81,6 @@ class VideoWebView extends WebView {
79
81
privateANOmidAdSessionomidAdSession;
80
82
81
83
// Using handler posts the playAd() call to the end of queue and fixes initial rendering black issue on Lollipop and below simulators.
82
-
// And during resume Ad, this handler is used to retry until the parent window comes in focus else fail gracefully. Its observed parent window gets focus approx 200ms after the resume of activity.
0 commit comments