Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46a5d768 authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Clarify use of initData in MediaCrypto constructor

Documentation bug: MediaCrypto constructor doc is unclear

bug: 29094355
Change-Id: I6c723874c0a8705216913d680fe5318a8c585dd4
parent 33110132
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -56,13 +56,15 @@ public final class MediaCrypto {
    private static final native boolean isCryptoSchemeSupportedNative(@NonNull byte[] uuid);

    /**
     * Instantiate a MediaCrypto object using opaque, crypto scheme specific
     * data.
     * Instantiate a MediaCrypto object and associate it with a MediaDrm session
     *
     * @param uuid The UUID of the crypto scheme.
     * @param initData Opaque initialization data specific to the crypto scheme.
     * @param sessionId The MediaDrm sessionId to associate with this
     * MediaCrypto session. The sessionId may be changed after the MediaCrypto
     * is created using {@link #setMediaDrmSession}
     */
    public MediaCrypto(@NonNull UUID uuid, @NonNull byte[] initData) throws MediaCryptoException {
        native_setup(getByteArrayFromUUID(uuid), initData);
    public MediaCrypto(@NonNull UUID uuid, @NonNull byte[] sessionId) throws MediaCryptoException {
        native_setup(getByteArrayFromUUID(uuid), sessionId);
    }

    /**