我试图列出所有的图片和视频在一个文件夹,但设置在回收视图或网格视图提供了一个好的结果。它塞在卷轴里。请建议如何以更好的方式显示所有文件。
我就是这样拿文件的,
listFile = AllUtils.getFiles(fetchPath, mContext);
在回收视图中展示部分
public void onBindViewHolder(@NonNull DetailViewHolder holder, final int position) {
if (listFile.get(position).toString().contains("mp4")) {
我有一个Youtube视频ID,我想要获取此ID的视频标题。我已经获得了包含标题的XML提要,但不确定如何提取它。
$.ajax({
url: 'http://gdata.youtube.com/feeds/api/videos/' + videoId
}).done(function ( data ) {
console.log( data.title ); //does not work
console.log( data.entry.title ); //does not work
});
我这里有个奇怪的问题!
我在一个文件里有一段视频。我想从这个视频中提取一些帧,并从中制作一个视频,然后使用它来显示(注意:我不想使用imshow()来实现这个目的)。我想在不将其写入文件的情况下执行此操作。
Algorithm:
1. Read the video from file
2. extract the frames
3. make a video out of these frames(save it as a variable; do not write it into a file)
4. Use this variable which holds the new video