-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from videokit-ai/camera-view
Support multi-camera streaming
- Loading branch information
Showing
58 changed files
with
1,386 additions
and
853 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* VideoKit | ||
* Copyright © 2024 Yusuf Olokoba. All Rights Reserved. | ||
*/ | ||
|
||
namespace VideoKit.Tests { | ||
|
||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using Newtonsoft.Json; | ||
|
||
internal sealed class MultiCameraDeviceEnumerateTest : MonoBehaviour { | ||
|
||
private async void Start () { | ||
await MultiCameraDevice.CheckPermissions(); | ||
var multiCameraDevices = await MultiCameraDevice.Discover(); | ||
foreach (var device in multiCameraDevices) | ||
Debug.Log(JsonConvert.SerializeObject(new Dictionary<string, object> { | ||
// Identifiers | ||
[@"uniqueID"] = device.uniqueId, | ||
[@"name"] = device.name, | ||
[@"location"] = device.location, | ||
[@"defaultForMediaType"] = device.defaultForMediaType, | ||
// Streaming | ||
[@"running"] = device.running, | ||
}, Formatting.Indented)); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.