Repository navigation
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listassigned for triageissue is assigned to a domain expert for further triageissue is assigned to a domain expert for further triagebrowser: chrome-androidonly manifests in Chrome on Androidonly manifests in Chrome on Androidbrowser: chrome-desktoponly manifests in desktop Chromeonly manifests in desktop Chromefound in release: 2.10Found to occur in 2.10Found to occur in 2.10found in release: 2.13Found to occur in 2.13Found to occur in 2.13has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginThe camera pluginp: video_playerThe Video Player pluginThe Video Player pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionwaiting for PR to land (fixed)A fix is in flightA fix is in flight
Description
I am trying to record and reproduce the recorded video on Flutter Web
I I'm recording videos using the camera plugin.
After finishing recording the video, the plugin returns me a url of type blob.
With the blob url, I'm trying to play the recorded video using the video_player plugin.
But when trying to initialize VideoPlayerController, the following error appears on my console.
Error: Unsupported operation: Infinity
at Object.throw_ [as throw] (http://localhost:45721/dart_sdk.js:5067:11)
at Number.[dartx.round] (http://localhost:45721/dart_sdk.js:17853:17)
at video_player_web._VideoPlayer.new.sendInitialized (http://localhost:45721/packages/video_player_web/video_player_web.dart.lib.js:370:247)
at http://localhost:45721/packages/video_player_web/video_player_web.dart.lib.js:312:16
at Object._checkAndCall (http://localhost:45721/dart_sdk.js:5274:16)
at Object.dcall (http://localhost:45721/dart_sdk.js:5279:17)
at HTMLVideoElement.<anonymous> (http://localhost:45721/dart_sdk.js:109327:100)
flutter doctor -v output
[✓] Flutter (Channel stable, 2.10.3, on Linux Mint 20.2 5.13.0-35-generic, locale pt_BR.UTF-8)
• Flutter version 2.10.3 at /mnt/Arquivos/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7e9793dee1 (2 weeks ago), 2022-03-02 11:23:12 -0600
• Engine revision bd539267b4
• Dart version 2.16.1
• DevTools version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /mnt/Arquivos/Android/Sdk
• Platform android-31, build-tools 31.0.0
• ANDROID_HOME = /mnt/Arquivos/Android/Sdk
• Java binary at: /mnt/Arquivos/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Linux toolchain - develop for Linux desktop
• clang version 10.0.0-4ubuntu1
• cmake version 3.16.3
• ninja version 1.10.0
• pkg-config version 0.29.1
[✓] Android Studio (version 2020.3)
• Android Studio at /mnt/Arquivos/android-studio
• Flutter plugin version 63.2.1
• Dart plugin version 203.8452
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[✓] IntelliJ IDEA Community Edition (version 2021.3)
• IntelliJ at /mnt/Arquivos/idea-IC-212.5457.46
• Flutter plugin version 65.2.4
• Dart plugin version 213.7227
[✓] VS Code (version 1.65.2)
• VS Code at /usr/share/code
• Flutter extension version 3.36.0
[✓] Connected device (2 available)
• Linux (desktop) • linux • linux-x64 • Linux Mint 20.2 5.13.0-35-generic
• Chrome (web) • chrome • web-javascript • Google Chrome 99.0.4844.74
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Reacted by Tobias Bentin, Deepak Goyal and MonoBit
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listassigned for triageissue is assigned to a domain expert for further triageissue is assigned to a domain expert for further triagebrowser: chrome-androidonly manifests in Chrome on Androidonly manifests in Chrome on Androidbrowser: chrome-desktoponly manifests in desktop Chromeonly manifests in desktop Chromefound in release: 2.10Found to occur in 2.10Found to occur in 2.10found in release: 2.13Found to occur in 2.13Found to occur in 2.13has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: cameraThe camera pluginThe camera pluginp: video_playerThe Video Player pluginThe Video Player pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-webWeb applications specificallyWeb applications specificallyr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionwaiting for PR to land (fixed)A fix is in flightA fix is in flight
Activity
maheshj01 commentedon Mar 17, 2022
Hi @Alvarocda, Thanks for filing the issue. Please share a minimal and complete reproducible code to investigate further.
Thanks
[-]Cant reproduce recorded videos using camera and video_player plugins[/-][+][Web]Cannot play recorded videos using camera with video player plugin[/+]Alvarocda commentedon Mar 17, 2022
Hi @maheshmnj
Here is a gist with a reproducible code
I noticed that when the error appears on the console, the video starts playing automatically, I can hear the audio of the recorded video but no image appears
maheshj01 commentedon Mar 18, 2022
@Alvarocda thanks for the info, I updated your code sample a bit as below and I was able to reproduce the issue. The recorded video plays fine on the android app But fails to render on the web and audio keeps playing. Reproducible on both stable and the master channel.
code sample
flutter doctor -v (mac)
14 remaining items
ditman commentedon Apr 1, 2022
@haozi5460 that looks like iOS native code, I think that might be a separate issue. This one (seems to) have to do with the camera web plugin recording videos in a format that is not compatible with the video player for web (in the same browser). We don't have access to
NSStufffrom the web code.haozi5460 commentedon Apr 1, 2022
An additional test is the built-in camera of the iPhone 12 system. After the video is uploaded to the S3 server, it cannot be opened on the Chrome browser. The downloaded video can be played by Safari and the built-in video player of Mac. And can't play on Windows computer
haozi5460 commentedon Apr 1, 2022
RBSoftwareBR commentedon Apr 14, 2022
Any updates on this? I have the same issue using windows/chrome.
deepak786 commentedon Jun 19, 2022
I have the same issue but using this solution flutter-team-archive/plugins#3167 (comment) worked for me.
ditman commentedon Jul 14, 2022
I've posted a PR that should fix this issue: flutter-team-archive/plugins#6101
balvinderz commentedon Jan 5, 2023
this can be closed.
maheshj01 commentedon Jan 5, 2023
I can confirm that this is fixed. The deployed app https://cameraweb.netlify.app/# has been updated as per the latest stable 3.3 and the latest versions of the plugins
Closing as fixed! in case anyone still encounters the issue, then please feel free to write in the comments and we will reopen it.
github-actions commentedon Mar 4, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.