/*
 * DRM Manager class.
 *
 * @copyright:
 * Copyright (c) 2009-2016 NexStreaming Corporation, all rights reserved.
 */

package com.nexstreaming.mpddescramblesample;

/**
 *  \brief  This class allows NexPlayer&trade;&nbsp;to support and handle encrypted SmoothStreaming manifests 
 *  or HLS playlists.
 *  
 *  NexPlayer&trade;&nbsp;implements this when it receives the manifest or top level of a playlist so that it may
 *  be decrypted if required.
 *  
 *  As illustrated in the sample code, this registers the MPDDescramble callback function to handle any 
 *  necessary decryption of encrypted manifests or playlists.
 *  
 *  \code
	MPDDescrambleManager drmManager = new MPDDescrambleManager(); 
	String strEnginePath;
	strEnginePath = "/data/data/com.nexstreaming.nexplayersample/lib/libnexplayerengine.so";
	drmManager.initManager(strEnginePath);
	\endcode
 *
 * \since version 5.9
 */
 
 /** \deprecated  For internal use only.  Please do not use. */
public class MPDDescrambleManager {

    private static final String TAG = "MPDDescrambleManager";

    /**
     * MPDDescrambleManager constructor.
     */
    public MPDDescrambleManager() {
    }
    /**
     * Initializes and registers the MPDDescrambleManager.
     * 
     * \param strEngineLibName	The relevant engine library name as a string.
     *
     */
    public static native int initManager(String strEngineLibName);
    
    /** 
    * \For internal use only. Please do not use.
    */
    public static native int initManagerMulti(Object nexPlayerHandle, String strEngineLibName);

    static 
    {
        System.loadLibrary("mpddescramblesample_jni");
    }
}
