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

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

本文整理了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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1. break;
  2. case TtmlNode.ATTR_TTS_TEXT_ALIGN:
  3. switch (Util.toLowerInvariant(attributeValue)) {
  4. case TtmlNode.LEFT:
  5. style = createIfNull(style).setTextAlign(Layout.Alignment.ALIGN_NORMAL);
  6. switch (Util.toLowerInvariant(attributeValue)) {
  7. case TtmlNode.LINETHROUGH:
  8. style = createIfNull(style).setLinethrough(true);

相关文章