使用 kotlin 中的范围存储从链接存储视频

问题描述

我正在尝试从需要范围存储的 android 11 的服务器 URL 中保存图像和视频。 我已使用此代码成功将图像保存在图片目录中。

case SET_FOOD_EXTRAS:
   const { itemId,extra,extraIndex,itemIndex } = action.payload;
   const cloneItems = cloneDeep([...state.items]);

   // cloneItems.splice(itemIndex,{ extras: [extra] });
   cloneItems[itemIndex].extras = [extra];

   return {
     ...state,items: cloneItems,summary: setSummary(state,cloneItems)
   };

但不知道如何像聪明人一样下载/保存视频。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)