我有几个UIViewControllers
故事板.现在我想把一些UIViewControllers
转移到另一个故事板.可能吗?
查询MediaStore.Video.Media.EXTERNAL_CONTENT_URI
仅返回视频/sdcard/DCIM/100MEDIA
但我想在我的/sdcard/Android/data/mypackage/files
文件夹中获取视频缩略图.可能吗 ?
这是我的代码的一部分:
ContentResolver cr = getContentResolver();
String[] proj = {
BaseColumns._ID
};
Cursor c = cr.query(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, proj, null, null, null);
if (c.moveToFirst()) {
do
{
int id = c.getInt(0);
Bitmap b = MediaStore.Video.Thumbnails.getThumbnail(cr, id, MediaStore.Video.Thumbnails.MINI_KIND, null);
Log.d("*****My Thumbnail*****", "onCreate bitmap " + b);
ImageView iv = (ImageView) findViewById(R.id.img_thumbnail);
iv.setImageBitmap(b);
}
while( c.moveToNext() );
}
c.close();
Run Code Online (Sandbox Code Playgroud) 当我通过MediaRecorder录制视频时,它始终以横向模式录制,无论实际的设备方向如何.如何强制MediaRecorder/Camera使用真正的方向?
在kotlin native中有memScoped函数,当控制超出范围时,它会自动释放已分配的内存.有没有像本地对象的析构函数?
有没有办法扭转xdelta补丁?
例如:
A - 文件版本1.
B - 文件的第2版.
P - 补丁.
文件B我们可以通过将补丁P应用到文件A
来更新.如果我有文件B和补丁P,是否有更新文件A的方法?
我的代码:
mediaRecorder = new MediaRecorder();
mediaRecorder.setCamera(camera);
mediaRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT);
mediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
CamcorderProfile profile = CamcorderProfile.get(QUALITY_LOW);
mediaRecorder.setProfile(profile);
Run Code Online (Sandbox Code Playgroud)
有用.但我只需要录制视频.
如果我不使用mediaRecorder.setAudioSource(),则mediaRecorder.setProfile()会因IllegalStateException而失败.
任何的想法?
android ×4
video ×2
background ×1
image ×1
ios ×1
kotlin ×1
native ×1
patch ×1
record ×1
storyboard ×1
thumbnails ×1
xcode ×1