Skip to content

Commit a9a1061

Browse files
committed
Minor edit to FairPlay sample code.
1 parent bb5bb86 commit a9a1061

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

articles/media-services/latest/offline-fairplay-for-ios.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ options.Add(
8383

8484
## Enable offline mode
8585

86-
To enable offline mode, create a custom StreamingPolicy and use its name when creating a StreamingLocator in [CreateStreamingLocatorAsync](https://github.com/Azure-Samples/media-services-v3-dotnet-tutorials/blob/master/AMSV3Tutorials/EncryptWithDRM/Program.cs#L563).
86+
To enable offline mode, create a custom StreamingPolicy and use its name when creating a StreamingLocator in [CreateStreamingLocatorAsync](https://github.com/Azure-Samples/media-services-v3-dotnet-tutorials/blob/master/AMSV3Tutorials/EncryptWithDRM/Program.cs#L561).
8787

8888
```csharp
8989
CommonEncryptionCbcs objStreamingPolicyInput= new CommonEncryptionCbcs()
@@ -92,23 +92,24 @@ CommonEncryptionCbcs objStreamingPolicyInput= new CommonEncryptionCbcs()
9292
{
9393
FairPlay = new StreamingPolicyFairPlayConfiguration()
9494
{
95-
AllowPersistentLicense = true //this enables offline mode
95+
AllowPersistentLicense = true // This enables offline mode
9696
}
9797
},
9898
EnabledProtocols = new EnabledProtocols()
9999
{
100100
Hls = true,
101-
Dash = true //Even though DASH under CBCS is not supported for either CSF or CMAF, HLS-CMAF-CBCS uses DASH-CBCS fragments in its HLS playlist
101+
Dash = true // Even though DASH under CBCS is not supported for either CSF or CMAF, HLS-CMAF-CBCS uses DASH-CBCS fragments in its HLS playlist
102102
},
103103

104104
ContentKeys = new StreamingPolicyContentKeys()
105105
{
106-
//Default key must be specified if keyToTrackMappings is present
106+
// Default key must be specified if keyToTrackMappings is present
107107
DefaultKey = new DefaultKey()
108108
{
109109
Label = "CBCS_DefaultKeyLabel"
110110
}
111111
}
112+
}
112113

113114
```
114115

0 commit comments

Comments
 (0)