The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

msPlayToPreferredSourceUri property

Gets or sets the path to the preferred media source. This enables the Play To target device to stream the media content, which can be DRM protected, from a different location, such as a cloud media server.

This property is read/write.




object.msPlayToPreferredSourceUri = ptr
ptr = object.msPlayToPreferredSourceUri


Property values

Type: DOMString


msPlayToPreferredSourceUri enables Play To by reference. This allows streaming content on the Play To target device from a different location, such as a cloud media server. This enables web pages and Windows Store apps to play Digital Rights Management (DRM) protected content. The app specifies a preferred Uniform Resource Identifier (URI) that will be sent to the Play To target device. This URI can point to a cloud based media server. If the msPlayToPreferredSourceUri is present, the Play To target device can stream content directly from the cloud, which can be DRM protected, instead of streaming content from the Windows machine which must be unprotected content.

A forward slash ("/") is appended to the URI string when it is sent over the network to a Play To device. This is done to conform to URI standards.


Here is some code that shows how to set up Play To by reference.

<video src=""  
       msPlayToPreferredSourceUri="" /> 

var video = document.createElement('video');

video.src = "";
video.msPlayToPreferredSourceUri = "";

See also