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