Hi, I'm trying to create project with a video by using blob type. I used createWithAsset () method with bellow configuration but the edtior show an error message and then close. So if anyone know what I did wrong please let me know, any helps would be really appericated.
- Version of the app: v4
- Platform and OS version: Chrome 131.0.6778.205 (Official Build) (arm64)
- Basic steps to reproduce the problem:
...
// data dataUrl is a url to the mp4 file
// fetch the file
const fetchedVideo = await fetch(dataUrl);
// covert to blob
const videoBlob = await fetchedVideo.blob();
//open and upload to adobe embeded with below config
ccEverywhere.editor.createWithAsset(
{
canvasSize: 'Video',
asset: {
type: 'video',
dataType: 'blob',
data: videoBlob,
},
},
{
selectedCategory: 'media',
allowedFileTypes: ['image/png', 'image/jpeg', 'video/mp4'],
callbacks: {
onPublish: (intent, publishParams) => {
//...
},
},
},
[
{
id: 'export-btn',
label: 'Save & Export',
action: {
target: 'publish',
},
style: {
uiType: 'button',
},
},
],
{
zIndex: 1,
}
);