Current version: (AGNO-JavaScript API)

Configuration

This feature can used in combination with custom source as follow:


brand: "agnoplay",
url: window.location.href,
streaming_protocol: "auto", // Make sure you set it to auto so source type is not fixed for multiple DRM support
chromecast_custom_receiver: true,
chromecast_custom_receiver_app_id: "C082881B",
stream_source: "custom",
custom_source: {
  title: "Test video",
  thumbnail: "/static/img/agnoplay-default-demo-1155x650.jpg",
  source: "https://amssamples.streaming.mediaservices.windows.net/622b189f-ec39-43f2-93a2-201ac4e31ce1/BigBuckBunny.ism/manifest(format=mpd-time-csf)", // Required
  type: "application/dash+xml", // "application/dash+xml" || "application/x-mpegURL"
  drm: {
    commonHeaders: {
      "Common-Header": "Value",
    },
    widevine: {
      licenseUrl: "https://amssamples.keydelivery.mediaservices.windows.net/Widevine/?KID=1ab45440-532c-4399-94dc-5c5ad9584bac",
      licenseHeaders: {
        "License-Server-Specific-Headers": "Value",
      },
    },
    playready: {
      licenseUrl: "https://amssamples.keydelivery.mediaservices.windows.net/PlayReady/",
      licenseHeaders: {
        "License-Server-Specific-Headers": "Value",
      },
    },
    fairplay: {
      licenseUrl: "",
      licenseHeaders: {
        "License-Server-Specific-Headers": "Value",
      },
      certificateUrl: "",
      certificateHeaders: {
        "Certificate-Server-Specific-Headers": "Value",
      },
    },
  },
}
    
DRM

This example shows the possibility to play videos with DRM, using a custom source

Typical support combinations of device and DRM
  • Android devices - Widevine
  • Chrome browser on a PC or MAC - Widevine
  • FireFox - Widevine
  • iOS device - FairPlay
  • Safari browser - FairPlay
  • Internet Explorer browser - PlayReady

Chromecast Note: If you are using custom headers for a license server or your video manifest file doesn't contain a license url, you need to use a Chromecast custom receiver app (either the default Agnoplay receiver app or your own) to be able to cast your DRMprotected video on Chromecast. To create your own custom receiver follow this guide