streamingMedia
The streamingMedia
component helps you collect data related to media sessions on your website.
The collected data can include information about media playbacks, pauses, completions, and other related events. Once collected, you can send this data to Adobe Experience Platform and/or Adobe Analytics, to generate reports. This feature provides a comprehensive solution for tracking and understanding media consumption behavior on your website.
Prerequisites prerequisites
To use the streamingMedia
component of Web SDK, you must meet the following prerequisites:
- Make sure you have access to Adobe Experience Platform and/or Adobe Analytics.
- You must use Web SDK version 2.20.0 or later. See the Web SDK installation overview to learn how to install the latest version.
- Enable the Media Analytics option for the datastream you are using.
- Ensure that the schema used by your datastream includes the Media Collection schema fields.
- Configure the Streaming Media feature in the Web SDK configuration, as shown in this page, either through the tag extension or through the JavaScript library.
Configure streaming media using the Web SDK tag extension tag-extension
To configure streaming media in the Web SDK tag extension, follow the steps below.
- Log in to experience.adobe.com using your Adobe ID credentials.
- Navigate to Data Collection > Tags.
- Select the desired tag property.
- Navigate to Extensions, then click Configure on the Adobe Experience Platform Web SDK card.
- Configure the Streaming Media settings as described in the Web SDK tag extension configuration page.
Configure streaming media using the Web SDK JavaScript library library
To configure streaming media in Web SDK, use the properties described below.
When calling the configure
command, add the streamingMedia
object.
alloy("configure", {
streamingMedia: {
channel: "video channel",
playerName: "test player",
appVersion: "Media Analytics with Web SDK 2.20.0",
mainPingInterval: 10,
adPingInterval: 10
}
});
channel
Video channel
.playerName
appVersion
mainPingInterval
10
. Values can range from 10
to 50
seconds. If no value is specified, the default value is used when using automatically-tracked sessions.adPingInterval
10
. Values can range from 1
to 10
seconds. If no value is specified, the default value is used when using automatically-tracked sessions.