Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么转视频呢MP4 #4

Open
hjx503838528 opened this issue Jun 8, 2020 · 3 comments
Open

怎么转视频呢MP4 #4

hjx503838528 opened this issue Jun 8, 2020 · 3 comments

Comments

@hjx503838528
Copy link

怎么转视频呢

@plusend
Copy link

plusend commented Sep 19, 2020

怎么转视频呢

Facebook playable ad 支持 zip 格式,可通过下述方式导出 zip 支持。

  1. mp3、png 等原先支持的格式保持转换为 res.js 即可;
  2. mp4 不需要特殊转换,保持 cocos creator 的目录结构(res/raw-assets/xx/xxx.mp4)拷贝出来即可;
  3. 修改 start.ts 文件,跳过 mp4 的转换;
  4. 修改 start.ts 文件,把原脚本嵌入 html 的部分替换为相对路径引入即可;
  5. 拷贝需要引入的 js / css 等文件;
  6. 压缩成 zip 文件。

@hjx503838528
Copy link
Author

怎么转视频呢

Facebook可播放广告支持zip格式,可通过依次方式扩展zip支持。

  1. mp3,png等原先支持的格式保持转换为res.js即可;
  2. mp4不需要特殊转换,保持cocos creator的目录结构(res / raw-assets / xx / xxx.mp4)复制出来即可;
  3. 修改start.ts文件,跳过mp4的转换;
  4. 修改start.ts文件,把原脚本嵌入html的部分替换为相对路径帖子即可;
  5. 副本需要约会的js / css等文件;
  6. 压缩成zip文件。

那二进制文件呢

@hjx503838528
Copy link
Author

怎么转视频呢

Facebook playable ad 支持 zip 格式,可通过下述方式导出 zip 支持。

  1. mp3、png 等原先支持的格式保持转换为 res.js 即可;
  2. mp4 不需要特殊转换,保持 cocos creator 的目录结构(res/raw-assets/xx/xxx.mp4)拷贝出来即可;
  3. 修改 start.ts 文件,跳过 mp4 的转换;
  4. 修改 start.ts 文件,把原脚本嵌入 html 的部分替换为相对路径引入即可;
  5. 拷贝需要引入的 js / css 等文件;
  6. 压缩成 zip 文件。

解决了~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants