fix:1、删除上一个sdk,更换新的。2、删除了max广告
This commit is contained in:
@@ -423,11 +423,20 @@ namespace BallKingdomCrush
|
||||
{
|
||||
TextureHelper.SetImgLoader(loader, fileName,
|
||||
(a) => {
|
||||
coverCache[fileName] = a.nativeTexture as Texture2D;
|
||||
callback?.Invoke(coverCache[fileName]);
|
||||
if (a != null && a.nativeTexture != null)
|
||||
{
|
||||
coverCache[fileName] = a.nativeTexture as Texture2D;
|
||||
callback?.Invoke(coverCache[fileName]);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning($"[LiveVideoManager] 封面加载失败: {fileName}");
|
||||
callback?.Invoke(null);
|
||||
}
|
||||
}, "LiveAlbums/", FolderNames.VideoCoversName);
|
||||
}
|
||||
|
||||
|
||||
private IEnumerator ExtractCoverFromVideo(string fileName, string videoPath, Action<Texture2D> callback)
|
||||
{
|
||||
var go = new GameObject("LiveVideoCoverExtractor_" + fileName);
|
||||
|
||||
Reference in New Issue
Block a user