本文整理汇总了Java中com.google.android.exoplayer.TimeRange.getCurrentBoundsUs方法的典型用法代码示例。如果您正苦于以下问题:Java TimeRange.getCurrentBoundsUs方法的具体用法?Java TimeRange.getCurrentBoundsUs怎么用?Java TimeRange.getCurrentBoundsUs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.google.android.exoplayer.TimeRange
的用法示例。
在下文中一共展示了TimeRange.getCurrentBoundsUs方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onAvailableRangeChanged
import com.google.android.exoplayer.TimeRange; //导入方法依赖的package包/类
@Override
public void onAvailableRangeChanged(int sourceId, TimeRange availableRange) {
availableRangeValuesUs = availableRange.getCurrentBoundsUs(availableRangeValuesUs);
Log.d(TAG, "availableRange [" + availableRange.isStatic() + ", " + availableRangeValuesUs[0]
+ ", " + availableRangeValuesUs[1] + "]");
}
示例2: onAvailableRangeChanged
import com.google.android.exoplayer.TimeRange; //导入方法依赖的package包/类
@Override
public void onAvailableRangeChanged(TimeRange availableRange) {
availableRangeValuesUs = availableRange.getCurrentBoundsUs(availableRangeValuesUs);
Log.d(TAG, "availableRange [" + availableRange.isStatic() + ", " + availableRangeValuesUs[0]
+ ", " + availableRangeValuesUs[1] + "]");
}
示例3: checkAvailableRange
import com.google.android.exoplayer.TimeRange; //导入方法依赖的package包/类
private static void checkAvailableRange(TimeRange seekRange, long startTimeUs, long endTimeUs) {
long[] seekRangeValuesUs = seekRange.getCurrentBoundsUs(null);
assertEquals(startTimeUs, seekRangeValuesUs[0]);
assertEquals(endTimeUs, seekRangeValuesUs[1]);
}
示例4: onSeekRangeChanged
import com.google.android.exoplayer.TimeRange; //导入方法依赖的package包/类
@Override
public void onSeekRangeChanged(TimeRange seekRange) {
seekRangeValuesUs = seekRange.getCurrentBoundsUs(seekRangeValuesUs);
Log.d(TAG, "seekRange [ " + seekRange.type + ", " + seekRangeValuesUs[0] + ", "
+ seekRangeValuesUs[1] + "]");
}
示例5: onAvailableRangeChanged
import com.google.android.exoplayer.TimeRange; //导入方法依赖的package包/类
@Override
public void onAvailableRangeChanged(int sourceId, TimeRange availableRange) {
availableRangeValuesUs = availableRange.getCurrentBoundsUs(availableRangeValuesUs);
Log.d(TAG, "availableRange [" + availableRange.isStatic() + ", " + availableRangeValuesUs[0]
+ ", " + availableRangeValuesUs[1] + "]");
}
示例6: onAvailableRangeChanged
import com.google.android.exoplayer.TimeRange; //导入方法依赖的package包/类
@Override
public void onAvailableRangeChanged(TimeRange availableRange) {
availableRangeValuesUs = availableRange.getCurrentBoundsUs(availableRangeValuesUs);
Log.d(TAG, "availableRange [" + availableRange.isStatic() + ", " + availableRangeValuesUs[0]
+ ", " + availableRangeValuesUs[1] + "]");
}
示例7: onAvailableRangeChanged
import com.google.android.exoplayer.TimeRange; //导入方法依赖的package包/类
@Override
public void onAvailableRangeChanged(TimeRange availableRange) {
availableRangeValuesUs = availableRange.getCurrentBoundsUs(availableRangeValuesUs);
Log.d(TAG, "availableRange [" + availableRange.isStatic() + ", " + availableRangeValuesUs[0]
+ ", " + availableRangeValuesUs[1] + "]");
}
示例8: onSeekRangeChanged
import com.google.android.exoplayer.TimeRange; //导入方法依赖的package包/类
@Override
public void onSeekRangeChanged(TimeRange seekRange) {
seekRangeValuesUs = seekRange.getCurrentBoundsUs(seekRangeValuesUs);
Log.d(TAG, "seekRange [ " + seekRange.type + ", " + seekRangeValuesUs[0] + ", "
+ seekRangeValuesUs[1] + "]");
}
示例9: checkSeekRange
import com.google.android.exoplayer.TimeRange; //导入方法依赖的package包/类
private void checkSeekRange(TimeRange seekRange, long startTimeUs, long endTimeUs) {
long[] seekRangeValuesUs = seekRange.getCurrentBoundsUs(null);
assertEquals(startTimeUs, seekRangeValuesUs[0]);
assertEquals(endTimeUs, seekRangeValuesUs[1]);
}