We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
在VlcPlayer这个类中onEventNative方法的case MediaPlayer.Event.TimeChanged:的时候可以获取到 ` String t = event.getTimeChanged() + ""; 只是需要吧获取到的时间长度格式化已下
/** * 将长度转换为时间 * * @param timeMs * @return */ public static String stringForTime(int timeMs) { //18565 StringBuilder mFormatBuilder = new StringBuilder(); Formatter mFormatter = new Formatter(mFormatBuilder, Locale.getDefault()); int totalSeconds = timeMs / 1000; int seconds = totalSeconds % 60; int minutes = (totalSeconds / 60) % 60; int hours = totalSeconds / 3600; mFormatBuilder.setLength(0); if (hours > 0) { return mFormatter.format("%d:%02d:%02d", hours, minutes, seconds).toString(); } else { return mFormatter.format("%02d:%02d", minutes, seconds).toString(); } }
`
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: