Skip to content

Commit

Permalink
Basic Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercurial committed Jun 7, 2019
1 parent 5494d43 commit d9e11c0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,24 @@
# BlazorMedia
Blazor Library for Interacting with Browser Media Streaming APIs

# How to use

In your Component
```C#
@using BlazorMedia;
```
...
```C#
@if (BlazorMediaAPI.Initialized)
{
<VideoMedia OnDataReceived="@OnDataReceived" />
}
```
**Code Behind**
...
```C#
if (!BlazorMediaAPI.Initialized)
{
await BlazorMediaAPI.InitializeMediaStream(JSRuntime, 640, 480, true);
}
```

0 comments on commit d9e11c0

Please sign in to comment.