Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public CumulusWebPlayer(Context context, WebViewListener listener) {
super.getSettings().setSupportZoom(false);
super.getSettings().setSupportMultipleWindows(false);
super.setWebViewClient(new BridgeClient());
super.getSettings().setUserAgentString("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.35 Safari/537.36"); //Claim to be a desktop
super.getSettings().setUserAgentString("Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"); // Claim to be iPhone
super.setKeepScreenOn(true);
this.mListener = listener;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static DataSource.Factory buildDataSourceFactory(Context context,

public static HttpDataSource.Factory buildHttpDataSourceFactory(Context context,
DefaultBandwidthMeter bandwidthMeter) {
String userAgent = Util.getUserAgent(context, "ExoPlayerDemo");
String userAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1";
return new DefaultHttpDataSourceFactory(userAgent, bandwidthMeter);
}

Expand Down