Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Overview
The PlayReady Test Server supports query string syntax for license requests, providing a URL-based method for specifying license parameters. This approach allows developers to embed license configuration directly in the URL, making it easy to test different scenarios and configurations.
Syntax Format
The query string syntax uses standard URL parameters to specify license requirements:
https://playready.directtaps.net/pr/svc/rightsmanager.asmx?cfg=CONFIGURATION&kid=KEY_ID
Supported Parameters
Configuration Parameter (cfg)
The cfg parameter specifies the license configuration:
- persistent: Creates a persistent license that can be stored on the device
- non-persistent: Creates a temporary license that expires when the application closes
- rental: Creates a rental license with time-based restrictions
- subscription: Creates a subscription-based license
Key ID Parameter (kid)
The kid parameter specifies the Key ID for content decryption:
- Must be a valid GUID format
- Corresponds to the content's encryption key identifier
- Used to match the license with the encrypted content
Example URLs
Basic Persistent License
https://playready.directtaps.net/pr/svc/rightsmanager.asmx?cfg=persistent&kid=12345678-1234-1234-1234-123456789012
Non-Persistent License
https://playready.directtaps.net/pr/svc/rightsmanager.asmx?cfg=non-persistent&kid=87654321-4321-4321-4321-210987654321
Rental License with 48-hour expiration
https://playready.directtaps.net/pr/svc/rightsmanager.asmx?cfg=rental&kid=12345678-1234-1234-1234-123456789012&expiry=48h
Testing Scenarios
Basic License Acquisition
- Generate a license request using your PlayReady client
- Construct the URL with appropriate parameters
- Send an HTTP POST request to the constructed URL
- Process the returned license response
Different License Types
Test various license configurations by changing the cfg parameter:
- Test persistent vs. non-persistent behavior
- Verify rental expiration functionality
- Validate subscription-based access
Error Handling
Common error scenarios and responses:
Invalid Key ID
- Error: Malformed GUID in
kidparameter - Response: HTTP 400 Bad Request with error details
Unsupported Configuration
- Error: Invalid value for
cfgparameter - Response: HTTP 400 Bad Request with supported values
Missing Parameters
- Error: Required parameters not provided
- Response: HTTP 400 Bad Request with parameter requirements
Best Practices
- URL Encoding: Ensure proper URL encoding of parameter values
- HTTPS Usage: Always use secure connections for license requests
- Parameter Validation: Validate parameters before making requests
- Error Handling: Implement robust error handling for various scenarios
Integration Examples
JavaScript/HTML5
const licenseUrl = `https://playready.directtaps.net/pr/svc/rightsmanager.asmx?cfg=persistent&kid=${keyId}`;
// Use with your PlayReady implementation
C# Application
string licenseUrl = $"https://playready.directtaps.net/pr/svc/rightsmanager.asmx?cfg=persistent&kid={keyId}";
// Use with PlayReady SDK
Related Documentation
- PlayReady Test Server Service - Main service overview
- CustomData JSON Syntax - Alternative JSON-based approach
- Base64 JSON Syntax - Base64 encoded configuration
- PlayReady Test Servers - Complete server documentation
Support and Troubleshooting
For issues with query string syntax:
- Verify parameter formatting and values
- Check URL encoding of special characters
- Validate Key ID format (GUID)
- Test with different license configurations
- Review server response for error details
For additional support, refer to the main PlayReady Test Servers documentation.