expo / web-examples

Examples of using Expo in the browser.
272 stars 51 forks source link

Expo camera error for web #47

Closed FrenchBully closed 5 years ago

FrenchBully commented 5 years ago

Works natively on ios and android, however, I see a non-supported error thrown. I thought the camera feature was fully supported on web according to: https://github.com/expo/web-examples/blob/master/docs/FEATURES.md

let video = await this.camera.recordAsync();

> 185 | async recordAsync(options?: RecordingOptions): Promise<{ uri: string }> {
      | ^  186 |   if (!CameraManager.record) {
  187 |     throw new UnavailabilityError('Camera', 'recordAsync');
  188 |   }

Error:

Unhandled Rejection (Error): The method or property Camera.recordAsync is not available on web, are you sure you've linked all the native dependencies properly?
EvanBacon commented 5 years ago

Recording video is not possible in the browser (in any meaningful way). This module is fully supported on web as far as what the web is capable of (AFAICT).

sushrutha commented 4 years ago

@EvanBacon I am facing the same issue. Trying to build a expo-web app to record daily standup from web. Any idea, why is recording video not possible in browser?

mattpepin commented 4 years ago

Not sure why it's not supported on the web. Videojs-record is an example of a working implementation:

https://github.com/collab-project/videojs-record