com.google.android.exoplayer.util.Util.toLowerInvariant()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(155)

本文整理了Java中com.google.android.exoplayer.util.Util.toLowerInvariant()方法的一些代码示例,展示了Util.toLowerInvariant()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.toLowerInvariant()方法的具体详情如下:
包路径:com.google.android.exoplayer.util.Util
类名称:Util
方法名:toLowerInvariant

Util.toLowerInvariant介绍

[英]Converts text to lower case using Locale#US.
[中]使用Locale#US将文本转换为小写。

代码示例

代码示例来源:origin: fire3/sailorcast

public SmoothStreamingRendererBuilder(Context context, String userAgent, String url,
  MediaDrmCallback drmCallback) {
 this.context = context;
 this.userAgent = userAgent;
 this.url = Util.toLowerInvariant(url).endsWith("/manifest") ? url : url + "/Manifest";
 this.drmCallback = drmCallback;
}

代码示例来源:origin: googlesamples/androidtv-sample-inputs

public SmoothStreamingRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = Util.toLowerInvariant(url).endsWith("/manifest") ? url : url + "/Manifest";
  this.drmCallback = drmCallback;
}

代码示例来源:origin: Dawish/ijkplayer-android-demo

public SmoothStreamingRendererBuilder(Context context, String userAgent, String url,
  MediaDrmCallback drmCallback) {
 this.context = context;
 this.userAgent = userAgent;
 this.url = Util.toLowerInvariant(url).endsWith("/manifest") ? url : url + "/Manifest";
 this.drmCallback = drmCallback;
}

代码示例来源:origin: Dawish/BriskTVLauncher

public SmoothStreamingRendererBuilder(Context context, String userAgent, String url,
  MediaDrmCallback drmCallback) {
 this.context = context;
 this.userAgent = userAgent;
 this.url = Util.toLowerInvariant(url).endsWith("/manifest") ? url : url + "/Manifest";
 this.drmCallback = drmCallback;
}

代码示例来源:origin: Dreamxiaoxuan/AndroidTvDemo

public SmoothStreamingRendererBuilder(Context context, String userAgent, String url,
  MediaDrmCallback drmCallback) {
 this.context = context;
 this.userAgent = userAgent;
 this.url = Util.toLowerInvariant(url).endsWith("/manifest") ? url : url + "/Manifest";
 this.drmCallback = drmCallback;
}

代码示例来源:origin: wanliyang1990/WliveTV

public SmoothStreamingRendererBuilder(Context context, String userAgent, String url,
  MediaDrmCallback drmCallback) {
 this.context = context;
 this.userAgent = userAgent;
 this.url = Util.toLowerInvariant(url).endsWith("/manifest") ? url : url + "/Manifest";
 this.drmCallback = drmCallback;
}

代码示例来源:origin: bitmovin/bitcodin-android-demo

@Override
public boolean evaluate(String contentType) {
 contentType = Util.toLowerInvariant(contentType);
 return !TextUtils.isEmpty(contentType)
   && (!contentType.contains("text") || contentType.contains("text/vtt"))
   && !contentType.contains("html") && !contentType.contains("xml");
}

代码示例来源:origin: bitmovin/bitcodin-android-demo

break;
case TtmlNode.ATTR_TTS_TEXT_ALIGN:
 switch (Util.toLowerInvariant(attributeValue)) {
  case TtmlNode.LEFT:
   style = createIfNull(style).setTextAlign(Layout.Alignment.ALIGN_NORMAL);
 switch (Util.toLowerInvariant(attributeValue)) {
  case TtmlNode.LINETHROUGH:
   style = createIfNull(style).setLinethrough(true);

相关文章