Skip to content

Release 0.1.7

Choose a tag to compare

@bvdcode bvdcode released this 24 Sep 09:40
· 26 commits to main since this release
Add retry mechanism to GetVideoAsync in BlinkClient

- Added `System.Net.Mime` namespace to `BlinkClient.cs`.
- Modified `GetVideoAsync` to include optional `tryCount` parameter.
- Implemented retry logic in `GetVideoAsync`:
  - Attempts to retrieve video up to `tryCount` times.
  - Posts to URL and waits for `GeneralSleepTime` before retrying.
  - Returns video as byte array if content type is "video/mp4".
  - Throws `BlinkClientException` if content type is not "video/mp4" after retries.