Updated:
➤ Added 3 additional Command Procedures: Total 75.
• Browser_GrantPermissions
• Browser_ResetPermissions
• Browser_SetPermission
➤ Updated documentation.
➤ Improved Live_Webcam.pb.
• Now uses the
Browser_GrantPermissions command.
➤ Improved Speech_Recognition.pb.
• Now uses the
Browser_SetPermission command.
Command Procedures
➤ Browser_GrantPermissions(Connection, EventID, Permissions.s)
•
Permissions: String Array granting specific permissions.
➤ Browser_ResetPermissions(Connection, EventID)
• Reset all permissions.
➤ Browser_SetPermission(Connection, EventID, Permission.s, Setting.s)
•
Permission: String Object setting an individual permission.
•
Setting: granted, denied, prompt.
Code: Select all
Permissions$ = "[" + #DQUOTE$ + "audioCapture" + #DQUOTE$ + "," + #DQUOTE$ + "videoCapture" + #DQUOTE$ + "]"
Browser_GrantPermissions(Connection, 10600, Permissions$)
Allowed Values
accessibilityEvents, audioCapture, backgroundSync, backgroundFetch, capturedSurfaceControl, clipboardReadWrite, clipboardSanitizedWrite, displayCapture, durableStorage, flash, geolocation, idleDetection, localFonts, midi, midiSysex, nfc, notifications, paymentHandler, periodicBackgroundSync, protectedMediaIdentifier, sensors, storageAccess, speakerSelection, topLevelStorageAccess, videoCapture, videoCapturePanTiltZoom, wakeLockScreen, wakeLockSystem, webAppInstallation, windowManagement.
Code: Select all
Permission$ = "{" + #DQUOTE$ + "name" + #DQUOTE$ + ":" + #DQUOTE$ + "microphone" + #DQUOTE$ + "}"
Browser_SetPermission(Connection, 10800, Permission$, "granted")
Allowed Values
geolocation, notifications, push, midi, camera, microphone, background-fetch, background-sync, persistent-storage, ambient-light-sensor, accelerometer, gyroscope, magnetometer, screen-wake-lock, nfc, display-capture, clipboard-read, clipboard-write, payment handler, idle-detection, periodic-background-sync, system-wake-lock, storage-access, window-management, local-fonts, top-level-storage-access, captured-surface-control, speaker-selection, keyboard-lock, pointer-lock, fullscreen, web-app-installation.