我想打开视频文件并在视频播放器中使用与文件名不同的标题(默认使用)设置预览标题。
String videoFile = "Video file url / path";
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse(videoFile), "video/mp4");
// Is there an extra to set the previewed video title?
mMainActivity.startActivity(intent);
最佳答案
有no documented extra for ACTION_VIEW
那将提供此功能,并且第三方视频播放器无论如何都不必遵守它。如果您想控制标题,欢迎您在自己的应用中实现自己的视频播放器。
关于android - 如何打开带有自定义标题的视频文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28548051/