client-sdk-flutter icon indicating copy to clipboard operation
client-sdk-flutter copied to clipboard

CaptureFrame method fails on Firefox and Safari using LiveKit

Open youshail opened this issue 1 year ago • 0 comments

I am using LiveKit with WebRTC, and the captureFrame method works as expected on Android APP and web browsers like Chrome, Edge, and Opera. However, it fails on Firefox and Safari with the following exception:

print('- START - captureFrame '); final ByteBuffer frame = await mediaStreamTrack.captureFrame();

ERROR - Exception caught: Error: undefined is not a constructor (evaluating 'new constr($arguments[0])')

macOS Sonoma 14.4.1

  • Flutter version: 3.19.6 (stable)
  • DART version: 3.3.4
  • Plugin version: 2.2.4
  • Flutter WebRTC version: 0.11.6+hotfix.1
  • OS: Desktop
  • OS version: macOS Sonoma 14.4.1
  • Safari version: 17.4.1 (19618.1.15.11.14)
  • Firefox version: 131.0

youshail avatar Oct 03 '24 10:10 youshail