Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get Stream UUID using rtc api

Hello Team,

I am trying get  Stream's UUID using rtc api, so is there any possible way to perform such action?

Thanks in advance!!

0 votes



4 answers

Permanent link

If you are working with server side API, retrieve the stream's handle object, then apply the method getItemID() to it.

If you need the UUID in a String format, just apply getItemId().toString() sequentially.
These methods will likely work with Plain Java API as well, just try.

0 votes

Comments
no it does not work on stream handle as the there is not get method available for getting the itemId,here is my code can you suggest where actually you are telling to call the getIemId(), as i have tried streamHandle.getItemID().toString(); but it does not worked for me

"
  for (IWorkspaceHandle wksHandle : workspaceHandles)
        {
        
          count++;
          streamHandle = workspaceMgr.getWorkspaceConnection(wksHandle, null);
        
         
          streamName = streamHandle.getName();
''


Permanent link

 Using reportable REST API, you could get the details using the below call:


0 votes

Comments

ok i will try this


Permanent link
I got the answer for the same asked question, we can achieve the functionality by given below snippet

   for (IWorkspaceHandle wksHandle : workspaceHandles)

          String UUID=  wksHandle.getItemId().getUuidValue().toString();

Thanks all for your support!!

0 votes


Permanent link
I got the answer for the same asked question, we can achieve the functionality by given below snippet

   for (IWorkspaceHandle wksHandle : workspaceHandles)

          String UUID=  wksHandle.getItemId().getUuidValue().toString();

Thanks all for your support!!

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 169

Question asked: Dec 24 '19, 1:09 p.m.

Question was seen: 3,332 times

Last updated: Dec 30 '19, 3:10 a.m.

Confirmation Cancel Confirm