Tabnine Logo
LocalDrmSessionManager.notifyErrorListener
Code IndexAdd Tabnine to your IDE (free)

How to use
notifyErrorListener
method
in
com.novoda.noplayer.internal.exoplayer.drm.LocalDrmSessionManager

Best Java code snippets using com.novoda.noplayer.internal.exoplayer.drm.LocalDrmSessionManager.notifyErrorListener (Showing top 1 results out of 315)

origin: novoda/no-player

@SuppressWarnings("PMD.AvoidCatchingGenericException") // We are forced to catch Exception as ResourceBusyException is minSdk 19
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
@Override
public DrmSession<FrameworkMediaCrypto> acquireSession(Looper playbackLooper, DrmInitData drmInitData) {
  DrmSession<FrameworkMediaCrypto> drmSession;
  try {
    SessionId sessionId = SessionId.of(mediaDrm.openSession());
    FrameworkMediaCrypto mediaCrypto = mediaDrm.createMediaCrypto(sessionId.asBytes());
    mediaDrm.restoreKeys(sessionId.asBytes(), keySetIdToRestore.asBytes());
    drmSession = new LocalDrmSession(mediaCrypto, keySetIdToRestore, sessionId);
  } catch (Exception exception) {
    drmSession = new InvalidDrmSession(new DrmSession.DrmSessionException(exception));
    notifyErrorListener(drmSession);
  }
  return drmSession;
}
com.novoda.noplayer.internal.exoplayer.drmLocalDrmSessionManagernotifyErrorListener

Popular methods of LocalDrmSessionManager

  • <init>
  • acquireSession
  • canAcquireSession
  • releaseSession

Popular in Java

  • Start an intent from android
  • addToBackStack (FragmentTransaction)
  • startActivity (Activity)
  • setScale (BigDecimal)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now