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

In browser, is that only use stream ? beacuse i can't create file on web. #283

Closed
junixapp opened this issue Feb 6, 2024 · 4 comments
Closed

Comments

@junixapp
Copy link

junixapp commented Feb 6, 2024

No description provided.

@mellowcello77
Copy link

This question might not be clear, but valid. Using the location of a file in Flutter web is extremely hard to find a documented solution for.

@llfbandit
Copy link
Owner

Really? Here's the start method documentation.

/// Starts new recording session.
///
/// [path]: The output path file. Required on all IO platforms.
/// On `web`: This parameter is ignored.
///
/// Output path can be retrieves when [stop] method is called.
Future<void> start(

You can't use files on web platform, only blobs. This is why stop method returns the path of the audio recorded.
The browser generates an internal URL to access the blob.
You can use cross_file package to deal with blobs/files for cross platform.

@AliKarimiENT
Copy link

AliKarimiENT commented Feb 8, 2024

Hi there @llfbandit,
Are you saying that we just need to pass the provided URL from the stop function to the cross-file loading method?

@llfbandit
Copy link
Owner

Yes.

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

4 participants