MediaDrm.OpenSession Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
OpenSession() |
Open a new session with the MediaDrm object. |
OpenSession(Int32) |
Open a new session at a requested security level. |
OpenSession()
Open a new session with the MediaDrm object.
[Android.Runtime.Register("openSession", "()[B", "")]
public byte[] OpenSession ();
[<Android.Runtime.Register("openSession", "()[B", "")>]
member this.OpenSession : unit -> byte[]
Returns
- Attributes
Exceptions
if provisioning is needed
if required resources are in use
Remarks
Open a new session with the MediaDrm object. A session ID is returned. By default, sessions are opened at the native security level of the device.
Java documentation for android.media.MediaDrm.openSession()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
OpenSession(Int32)
Open a new session at a requested security level.
[Android.Runtime.Register("openSession", "(I)[B", "", ApiSince=28)]
public byte[] OpenSession (int level);
[<Android.Runtime.Register("openSession", "(I)[B", "", ApiSince=28)>]
member this.OpenSession : int -> byte[]
Parameters
- level
- Int32
the new security level
Returns
- Attributes
Remarks
Open a new session at a requested security level. The security level represents the robustness of the device's DRM implementation. By default, sessions are opened at the native security level of the device. Overriding the security level is necessary when the decrypted frames need to be manipulated, such as for image compositing. The security level parameter must be lower than the native level. Reducing the security level will typically limit the content to lower resolutions, as determined by the license policy. If the requested level is not supported, the next lower supported security level will be set. The level can be queried using #getSecurityLevel
. A session ID is returned.
Java documentation for android.media.MediaDrm.openSession(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.