Skip to content

Commit da3747e

Browse files
author
Sonam
committed
updates to readme
1 parent 0d241bc commit da3747e

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This plugin is a work in progress and has been built to show the steps of creati
4444
## How To Use
4545

4646

47-
47+
4848
1. Start a screen recording
4949

5050
```csharp
@@ -58,12 +58,25 @@ ReplayKitUnity.StartRecording();
5858
ReplayKitUnity.StopRecording();
5959
```
6060

61-
### Recieve Recorded video file
61+
3. Get the video file after recording is complete
6262

63-
//TODO:
63+
a) Subscribe to the onStopCaptureWithFile action in ReplayKitUnity
64+
65+
```csharp
66+
ReplayKitUnity.Instance.onStopCaptureWithFile += OnStopRecording; (connect to your function)
67+
```
68+
69+
b) Use the VideoPlayer Unity componnent or any video playback technique to play the .mp4
70+
71+
72+
4. Get notified when the recording has started
73+
74+
```csharp
75+
ReplayKitUnity.Instance.onStartRecording += OnStartRecording; (connect to your function)
76+
```
6477

6578

6679
## Contact:
67-
- Email: sonam@ustwo.com
80+
- Email: sdhingra89@gmail.com
6881

6982

0 commit comments

Comments
 (0)