You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
0 commit comments