VideoProfilepublic class VideoProfile extends Object implements android.os.ParcelableRepresents attributes of video calls.
{@hide} |
Fields Summary |
---|
public static final int | QUALITY_HIGH"High" video quality. | public static final int | QUALITY_MEDIUM"Medium" video quality. | public static final int | QUALITY_LOW"Low" video quality. | public static final int | QUALITY_DEFAULTUse default video quality. | private final int | mVideoState | private final int | mQuality | public static final Parcelable.Creator | CREATORResponsible for creating VideoProfile objects from deserialized Parcels. |
Constructors Summary |
---|
public VideoProfile(int videoState)Creates an instance of the VideoProfile
this(videoState, QUALITY_DEFAULT);
| public VideoProfile(int videoState, int quality)Creates an instance of the VideoProfile
mVideoState = videoState;
mQuality = quality;
|
Methods Summary |
---|
public int | describeContents()Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
return 0;
| public int | getQuality()The desired video quality for the call.
Valid values: {@link VideoProfile#QUALITY_HIGH}, {@link VideoProfile#QUALITY_MEDIUM},
{@link VideoProfile#QUALITY_LOW}, {@link VideoProfile#QUALITY_DEFAULT}.
return mQuality;
| public int | getVideoState()The video state of the call.
Valid values: {@link VideoProfile.VideoState#AUDIO_ONLY},
{@link VideoProfile.VideoState#BIDIRECTIONAL},
{@link VideoProfile.VideoState#TX_ENABLED},
{@link VideoProfile.VideoState#RX_ENABLED},
{@link VideoProfile.VideoState#PAUSED}.
return mVideoState;
| public void | writeToParcel(android.os.Parcel dest, int flags)Flatten this object in to a Parcel.
dest.writeInt(mVideoState);
dest.writeInt(mQuality);
|
|