FileDocCategorySizeDatePackage
VideoProfile.javaAPI DocAndroid 5.1 API7011Thu Mar 12 22:22:42 GMT 2015android.telecom

VideoProfile

public class VideoProfile extends Object implements android.os.Parcelable
Represents 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_DEFAULT
Use default video quality.
private final int
mVideoState
private final int
mQuality
public static final Parcelable.Creator
CREATOR
Responsible for creating VideoProfile objects from deserialized Parcels.
Constructors Summary
public VideoProfile(int videoState)
Creates an instance of the VideoProfile

param
videoState The video state.


                    
       
        this(videoState, QUALITY_DEFAULT);
    
public VideoProfile(int videoState, int quality)
Creates an instance of the VideoProfile

param
videoState The video state.
param
quality The video quality.

        mVideoState = videoState;
        mQuality = quality;
    
Methods Summary
public intdescribeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.

return
a bitmask indicating the set of special object types marshalled by the Parcelable.


                                   
    
       
        return 0;
    
public intgetQuality()
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 intgetVideoState()
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 voidwriteToParcel(android.os.Parcel dest, int flags)
Flatten this object in to a Parcel.

param
dest The Parcel in which the object should be written.
param
flags Additional flags about how the object should be written. May be 0 or {@link #PARCELABLE_WRITE_RETURN_VALUE}.

        dest.writeInt(mVideoState);
        dest.writeInt(mQuality);