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

Recording on Windows not able to play #375

Open
mobilevvdn opened this issue Jul 27, 2023 · 0 comments
Open

Recording on Windows not able to play #375

mobilevvdn opened this issue Jul 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mobilevvdn
Copy link

mobilevvdn commented Jul 27, 2023

Describe the bug
I am using this player for streaming RTSP video its working good but now i want to record the video but not able to play in any player. I am able to create the recorded video file in mp4 formate but not able to play. Can you help me on this ?
If you want any missing code do let me know

Minimal reproducible code

void startRecording() async {
  try {
    final fileName = "recording_${DateTime.now().millisecondsSinceEpoch}.mp4";
    final directory = Directory("C:\\Users\\vvsa\\Pictures\\Screenshots");
    final file = File('${directory.path}\\$fileName');
    record = Record.create(id: 0, media: Media.network('Url of the video'), savingFile: file);
    record.start();
  } catch (e) {
    print('Error starting recording: $e');
  }
}

Operating system:

  • Windows1 1.

Note: Its encoding issue while i am searching on the internet but how to do proper encoding?

@mobilevvdn mobilevvdn added the bug Something isn't working label Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant