When working with the video asset type, by assets, you have 3 options for playback. By default, it will be streamed from the Digizuite DAM . Either through Episerver or directly through Optimizely.
VideoPlaybackType.Redirect
Will redirect the Optimizely url to digizuite.VideoPlaybackType.Streaming (default)
Will stream from Digizuite DAM . This can be configured, see DFE 2.1.0 - 3 Setting up Episerver and look for the parameter redirectvideostream
.
If you want to have a CDN provider in front of the video streams, you need one prerequisite, which is that the video assets in the Digizuite DAM are published to a destination with no security.
To configure CDN for video steaming, open the web.config and look for the <digizuite
element. The child element we are looking for is this <cdn baseUrl="" destinationId="" />
. You can read about the parameters here DFE 2.1.0 - 3 Setting up Episerver.
Please contact your contact person at Digizuite, they will be able to provide you the destionation ID. Please remember that the destionation ID should be a destination with no security.
Please note that when you setup a new CDN endpoint in Microsoft Azure, the property Origin path
must be empty, otherwise the requested URL to Digizuite will be incorrect.through Optimizely.VideoPlaybackType.Cdn
Will redirect the Optimizely url to the cdn url that has been configure in VideoCdnBaseUrl
.
Her is an example how to override the default settings:
Code Block | ||
---|---|---|
| ||
services.AddDigizuiteDAM(
new Digizuite.Optimizely.Configuration.DAMIntegrationConfiguration()
{
Connection = new Digizuite.Models.DigizuiteConfiguration()
{
BaseUrl = new Uri("x"),
SystemUsername = "x",
SystemPassword = "x",
ConfigVersionId = "x"
},
VideoPlaybackType = Enums.VideoPlaybackType.Redirect
}); |