|
1 | | -**To get a stage participant** |
2 | | - |
3 | | -The following ``get-participant`` example gets the stage participant for a specified participant ID and session ID in the specified stage ARN (Amazon Resource Name). :: |
4 | | - |
5 | | - aws ivs-realtime get-participant \ |
6 | | - --stage-arn arn:aws:ivs:us-west-2:123456789012:stage/abcdABCDefgh \ |
7 | | - --session-id st-a1b2c3d4e5f6g \ |
8 | | - --participant-id abCDEf12GHIj |
9 | | - |
10 | | -Output:: |
11 | | - |
12 | | - { |
13 | | - "participant": { |
14 | | - "browserName", "Google Chrome", |
15 | | - "browserVersion", "116", |
16 | | - "firstJoinTime": "2023-04-26T20:30:34+00:00", |
17 | | - "ispName", "Comcast", |
18 | | - "osName", "Microsoft Windows 10 Pro", |
19 | | - "osVersion", "10.0.19044" |
20 | | - "participantId": "abCDEf12GHIj", |
21 | | - "published": true, |
22 | | - "recordingS3BucketName": "bucket-name", |
23 | | - "recordingS3Prefix": "abcdABCDefgh/st-a1b2c3d4e5f6g/abCDEf12GHIj/1234567890", |
24 | | - "recordingState": "ACTIVE", |
25 | | - "sdkVersion", "", |
26 | | - "state": "CONNECTED", |
27 | | - "userId": "", |
28 | | - } |
29 | | - } |
30 | | - |
31 | | -For more information, see `Enabling Multiple Hosts on an Amazon IVS Stream <https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/multiple-hosts.html>`__ in the *Amazon Interactive Video Service User Guide*. |
| 1 | +**Example 1: To get a stage participant** |
| 2 | + |
| 3 | +The following ``get-participant`` example gets the stage participant for a specified participant ID and session ID in the specified stage ARN (Amazon Resource Name). :: |
| 4 | + |
| 5 | + aws ivs-realtime get-participant \ |
| 6 | + --stage-arn arn:aws:ivs:us-west-2:123456789012:stage/abcdABCDefgh \ |
| 7 | + --session-id st-a1b2c3d4e5f6g \ |
| 8 | + --participant-id abCDEf12GHIj |
| 9 | + |
| 10 | +Output:: |
| 11 | + |
| 12 | + { |
| 13 | + "participant": { |
| 14 | + "browserName": "Google Chrome", |
| 15 | + "browserVersion": "116", |
| 16 | + "firstJoinTime": "2023-04-26T20:30:34+00:00", |
| 17 | + "ispName": "Comcast", |
| 18 | + "osName": "Microsoft Windows 10 Pro", |
| 19 | + "osVersion": "10.0.19044", |
| 20 | + "participantId": "abCDEf12GHIj", |
| 21 | + "published": true, |
| 22 | + "recordingS3BucketName": "bucket-name", |
| 23 | + "recordingS3Prefix": "abcdABCDefgh/st-a1b2c3d4e5f6g/abCDEf12GHIj/1234567890", |
| 24 | + "recordingState": "ACTIVE", |
| 25 | + "sdkVersion": "", |
| 26 | + "state": "CONNECTED", |
| 27 | + "userId": "" |
| 28 | + } |
| 29 | + } |
| 30 | + |
| 31 | +For more information, see `Enabling Multiple Hosts on an Amazon IVS Stream <https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/multiple-hosts.html>`__ in the *Amazon IVS Low-Latency Streaming User Guide*. |
| 32 | + |
| 33 | +**Example 2: To get a stage participant that has been replicated to another stage** |
| 34 | + |
| 35 | +The following ``get-participant`` example gets the stage participant for a specified participant ID and session ID in the specified stage ARN (Amazon Resource Name), when the participant has also been replicated to another stage. :: |
| 36 | + |
| 37 | + aws ivs-realtime get-participant \ |
| 38 | + --stage-arn arn:aws:ivs:us-west-2:123456789012:stage/abcdABCDefgh \ |
| 39 | + --session-id st-a1b2c3d4e5f6g \ |
| 40 | + --participant-id abCDEf12GHIj |
| 41 | + |
| 42 | +Output:: |
| 43 | + |
| 44 | + { |
| 45 | + "participant": { |
| 46 | + "browserName": "Google Chrome", |
| 47 | + "browserVersion": "116", |
| 48 | + "firstJoinTime": "2023-04-26T20:30:34+00:00", |
| 49 | + "ispName": "Comcast", |
| 50 | + "osName": "Microsoft Windows 10 Pro", |
| 51 | + "osVersion": "10.0.19044", |
| 52 | + "participantId": "abCDEf12GHIj", |
| 53 | + "published": true, |
| 54 | + "recordingS3BucketName": "bucket-name", |
| 55 | + "recordingS3Prefix": "abcdABCDefgh/st-a1b2c3d4e5f6g/abCDEf12GHIj/1234567890", |
| 56 | + "recordingState": "ACTIVE", |
| 57 | + "replicationState": "ACTIVE", |
| 58 | + "replicationType": "SOURCE", |
| 59 | + "sdkVersion": "", |
| 60 | + "state": "CONNECTED", |
| 61 | + "userId": "" |
| 62 | + } |
| 63 | + } |
| 64 | + |
| 65 | +For more information, see `Enabling Multiple Hosts on an Amazon IVS Stream <https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/multiple-hosts.html>`__ in the *Amazon IVS Low-Latency Streaming User Guide*. |
| 66 | + |
| 67 | +**Example 3: To get a stage participant that has been replicated from another stage** |
| 68 | + |
| 69 | +The following ``get-participant`` example gets the stage participant for a specified participant ID and session ID in the specified stage ARN (Amazon Resource Name), when the participant has been replicated from another stage. :: |
| 70 | + |
| 71 | + aws ivs-realtime get-participant \ |
| 72 | + --stage-arn arn:aws:ivs:us-west-2:123456789012:stage/abcdABCDefgh \ |
| 73 | + --session-id st-a1b2c3d4e5f6g \ |
| 74 | + --participant-id abCDEf12GHIj |
| 75 | + |
| 76 | +Output:: |
| 77 | + |
| 78 | + { |
| 79 | + "participant": { |
| 80 | + "browserName": "Google Chrome", |
| 81 | + "browserVersion": "116", |
| 82 | + "firstJoinTime": "2023-04-26T20:30:34+00:00", |
| 83 | + "ispName": "Comcast", |
| 84 | + "osName": "Microsoft Windows 10 Pro", |
| 85 | + "osVersion": "10.0.19044", |
| 86 | + "participantId": "abCDEf12GHIj", |
| 87 | + "published": true, |
| 88 | + "recordingS3BucketName": "bucket-name", |
| 89 | + "recordingS3Prefix": "abcdABCDefgh/st-a1b2c3d4e5f6g/abCDEf12GHIj/1234567890", |
| 90 | + "recordingState": "ACTIVE", |
| 91 | + "replicationState": "ACTIVE", |
| 92 | + "replicationType": "REPLICA", |
| 93 | + "sdkVersion": "", |
| 94 | + "state": "CONNECTED", |
| 95 | + "userId": "" |
| 96 | + } |
| 97 | + } |
| 98 | + |
| 99 | +For more information, see `Enabling Multiple Hosts on an Amazon IVS Stream <https://docs.aws.amazon.com/ivs/latest/LowLatencyUserGuide/multiple-hosts.html>`__ in the *Amazon IVS Low-Latency Streaming User Guide*. |
0 commit comments