diff --git a/packages/webview_flutter/webview_flutter_ohos/lib/src/ohos_webview.dart b/packages/webview_flutter/webview_flutter_ohos/lib/src/ohos_webview.dart index c1df719144dd094faff7da19336d3e8866ce810b..551b5b545d59a85455a1ce9484eb81434057a446 100644 --- a/packages/webview_flutter/webview_flutter_ohos/lib/src/ohos_webview.dart +++ b/packages/webview_flutter/webview_flutter_ohos/lib/src/ohos_webview.dart @@ -1321,14 +1321,14 @@ class PermissionRequest extends OhosObject { super.detached(); /// Resource belongs to audio capture device, like microphone. - static const String audioCapture = 'ohos.webkit.resource.AUDIO_CAPTURE'; + static const String audioCapture = 'TYPE_AUDIO_CAPTURE'; /// Resource will allow sysex messages to be sent to or received from MIDI /// devices. - static const String midiSysex = 'ohos.webkit.resource.MIDI_SYSEX'; + static const String midiSysex = 'TYPE_MIDI_SYSEX'; /// Resource belongs to video capture device, like camera. - static const String videoCapture = 'ohos.webkit.resource.VIDEO_CAPTURE'; + static const String videoCapture = 'TYPE_VIDEO_CAPTURE'; /// Resource belongs to protected media identifier. static const String protectedMediaId =