forked from 77media/video-flow
统一创建入口:剧本扩展字段
This commit is contained in:
parent
680ddd7cc6
commit
3e7a27cb7a
@ -349,6 +349,8 @@ export interface CreateMovieProjectV4Request {
|
||||
language: string;
|
||||
/** 画面比例(横/竖屏) */
|
||||
aspect_ratio: AspectRatioValue;
|
||||
/** 扩展模式 */
|
||||
expansion_mode: boolean;
|
||||
/** 是否是图生 */
|
||||
is_image_to_video: boolean;
|
||||
/** pcode编码 */
|
||||
|
||||
@ -187,12 +187,13 @@ export default function VideoCreationForm() {
|
||||
/** Build request parameters */
|
||||
const requestParams: CreateMovieProjectV4Request = {
|
||||
script: inputText,
|
||||
mode: configOptions.expansion_mode ? 'auto' : 'manual',
|
||||
mode: configOptions.mode,
|
||||
resolution: '720p',
|
||||
language: configOptions.language,
|
||||
aspect_ratio: configOptions.aspect_ratio,
|
||||
expansion_mode: configOptions.expansion_mode,
|
||||
is_image_to_video: photos.length > 0,
|
||||
pcode: configOptions.pcode,
|
||||
pcode: configOptions.pcode === 'portrait' ? '' : configOptions.pcode,
|
||||
};
|
||||
|
||||
/** Add character briefs if exists */
|
||||
|
||||
@ -43,14 +43,16 @@ export interface ConfigOptions {
|
||||
videoDuration: VideoDurationValue;
|
||||
aspect_ratio: AspectRatioValue;
|
||||
pcode: PortraitAnimeValue;
|
||||
mode: "auto" | "manual";
|
||||
}
|
||||
|
||||
/** Default configuration */
|
||||
export const defaultConfig: ConfigOptions = {
|
||||
language: 'english',
|
||||
expansion_mode: false,
|
||||
expansion_mode: true,
|
||||
videoDuration: 'unlimited',
|
||||
aspect_ratio: 'VIDEO_ASPECT_RATIO_LANDSCAPE',
|
||||
pcode: 'portrait',
|
||||
mode: 'auto',
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user