Quantcast
Channel: Kaltura - Latest posts
Viewing all articles
Browse latest Browse all 7410

Retrieve comments

$
0
0

@jess,

hi and sorry for bothering again. While I assign the user id when I create a new comment with Annotation when I retrieve those comments using CuePoint service the user id field is always empty. Is there another way of getting the profile associated with the comment or is there something wrong in my code below :

            KalturaAnnotation annotation = new KalturaAnnotation();
            annotation.text = commentText;
            annotation.entryId = entryId;
            annotation.userId = getUserId();
            annotation.isPublic = KalturaNullableBoolean.TRUE_VALUE;

            client.getCuePointService().add(annotation);

that's for creating a new comment ( I can confirm getUserId() returns a valid user id ) and :

     for (KalturaCuePoint comment :client.getCuePointService().list(filter).objects){
          Log.i(TAG, "userId = " + comment.userId );
     }

that's for retrieving on a specific entry id.

Thanks again!


Viewing all articles
Browse latest Browse all 7410

Trending Articles