小编Bha*_*esh的帖子

错误:React Native expo-video-thumbnails IOS 中无法写入文件错误

我正在从视频 URL 生成缩略图,它在 Android 中工作正常,但在 IOS 中出现错误(Error: Can't write to file)

下面是我的代码。

import * as VideoThumbnails from 'expo-video-thumbnails';

var thumbnail = await VideoThumbnails.getThumbnailAsync(link, { time: 2000 });
Run Code Online (Sandbox Code Playgroud)

react-native

5
推荐指数
0
解决办法
386
查看次数

RewardVideoListener不是抽象的,并且不会覆盖RewardedVideoAdListener中的抽象方法onRewardedVideoCompleted()

//这是我的代码

package name.ratson.cordova.admob.rewardvideo;

import android.util.Log;

import com.google.android.gms.ads.reward.RewardItem;
import com.google.android.gms.ads.reward.RewardedVideoAdListener;

import org.json.JSONException;
import org.json.JSONObject;

import name.ratson.cordova.admob.AbstractExecutor;

class RewardVideoListener implements RewardedVideoAdListener {
private final RewardVideoExecutor executor;

RewardVideoListener(RewardVideoExecutor executor) {
    this.executor = executor;
}

@Override
public void onRewardedVideoAdFailedToLoad(int errorCode) {
    synchronized (executor.rewardedVideoLock) {
        executor.isRewardedVideoLoading = false;
    }

    JSONObject data = new JSONObject();
    try {
        data.put("error", errorCode);
        data.put("reason", AbstractExecutor.getErrorReason(errorCode));
        data.put("adType", executor.getAdType());
    } catch (JSONException e) {
        e.printStackTrace();
    }
    executor.fireAdEvent("admob.rewardvideo.events.LOAD_FAIL", data);
}

@Override
public void onRewardedVideoAdLeftApplication() {
    JSONObject data = new JSONObject();
    try {
        data.put("adType", …
Run Code Online (Sandbox Code Playgroud)

admob ionic-framework

2
推荐指数
1
解决办法
2698
查看次数

用户在 AWS 用户池中更改密码时未经过身份验证

当我当时尝试调用更改密码 API 时,我在 cognito 用户池中收到“用户未经过身份验证”错误。

ionic3

2
推荐指数
1
解决办法
1764
查看次数

标签 统计

admob ×1

ionic-framework ×1

ionic3 ×1

react-native ×1