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

VideoAudio is giving VideoError Video Source is empty #40

Open
jccguimaraes opened this issue Aug 25, 2024 · 1 comment
Open

VideoAudio is giving VideoError Video Source is empty #40

jccguimaraes opened this issue Aug 25, 2024 · 1 comment

Comments

@jccguimaraes
Copy link

Hi, please correct me if I am wrong, but making filter: VideoSearchOptions::Video, or filter: VideoSearchOptions::Audio, works but filter: VideoSearchOptions::VideoAudio, isn't, returns Video source empty.

async fn download_from_yt(id: &str) -> Result<String, VideoError> {
    let video_options = VideoOptions {
        quality: VideoQuality::Highest,
        filter: VideoSearchOptions::VideoAudio,
        ..Default::default()
    };

    let video = Video::new_with_options(id, video_options.clone())?;

    let video_info = video.get_info().await?;

    let path = std::path::Path::new(r"test.mp4");

    video.download(path).await?;

    Ok(format!(
        "Video '{}' downloaded!",
        video_info.video_details.title
    ))
}
@Mithronn
Copy link
Owner

yes, its correct if po_token detected, code using IOS client to fetch stream datas and IOS client dosen't have video and audio streams at the same time.

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