feat: add audioTrack for multilanguage audio
This commit is contained in:
parent
2d302d763d
commit
ae72a230a2
10 changed files with 54 additions and 10 deletions
|
|
@ -71,6 +71,7 @@ pub struct AudioStream {
|
|||
pub format: AudioFormat,
|
||||
pub codec: AudioCodec,
|
||||
pub throttled: bool,
|
||||
pub track: Option<AudioTrack>,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
|
|
@ -116,6 +117,13 @@ pub enum VideoFormat {
|
|||
Webm,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
|
||||
pub struct AudioTrack {
|
||||
pub id: String,
|
||||
pub name: String,
|
||||
pub is_default: bool,
|
||||
}
|
||||
|
||||
impl FileFormat for VideoFormat {
|
||||
fn extension(&self) -> &str {
|
||||
match self {
|
||||
|
|
|
|||
Reference in a new issue