Skip to content

Commit 1cf7e5a

Browse files
committed
refactor: 移除 GetDisplayMedia 方法
1 parent cc37a8a commit 1cf7e5a

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

src/BootstrapBlazor/Services/MediaDevices/DefaultMediaDevices.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ private async Task<JSModule> LoadModule()
2323
return await module.InvokeAsync<List<MediaDeviceInfo>?>("enumerateDevices");
2424
}
2525

26-
public Task<MediaStream> GetDisplayMedia(DisplayMediaOptions? options = null)
27-
{
28-
throw new NotImplementedException();
29-
}
30-
3126
public async Task Open(MediaTrackConstraints constraints)
3227
{
3328
var module = await LoadModule();

src/BootstrapBlazor/Services/MediaDevices/IMediaDevices.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,6 @@ public interface IMediaDevices
1616
/// <returns></returns>
1717
Task<IEnumerable<IMediaDeviceInfo>?> EnumerateDevices();
1818

19-
/// <summary>
20-
/// The getDisplayMedia() method of the MediaDevices interface prompts the user to select and grant permission to capture the contents of a display or portion thereof (such as a window) as a MediaStream.
21-
/// </summary>
22-
/// <param name="options"></param>
23-
/// <returns></returns>
24-
Task<MediaStream> GetDisplayMedia(DisplayMediaOptions? options = null);
25-
2619
/// <summary>
2720
/// The open() method of the MediaDevices interface creates a new MediaStream object and starts capturing media from the specified device.
2821
/// </summary>

0 commit comments

Comments
 (0)