Back to project page opentok-android-sdk-samples.
The source code is released under:
Apache License
If you think the Android project opentok-android-sdk-samples listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.opentok.android.demo.multiparty; /* w ww . j a va 2 s . c o m*/ import android.content.Context; import com.opentok.android.Stream; import com.opentok.android.Subscriber; public class MySubscriber extends Subscriber { private String userId; private String name; public MySubscriber(Context context, Stream stream) { super(context, stream); // With the userId we can query our own database // to extract player information setName("User" + ((int)(Math.random()*1000))); } public String getUserId() { return userId; } public void setUserId(String name) { this.userId = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } }