I created an app with an youtube window with command to call
Play to and it worked. the charm bar still there.
When I click on the button the W8.1 Play to charm bar displays.
They just need to find a way to do it. Maybe another button similar to
Connect to call the charm bar
Maybe after they enable the add-ons/plugins, I will be able to create one with this and share with the community.
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh465191
// Play To Contract
var ptm = Windows.Media.PlayTo.PlayToManager.getForCurrentView();
ptm.addEventListener("sourcerequested", sourceRequestHandler, false);
function sourceRequestHandler(e) {
try {
e.sourceRequest.setSource(mediaElement.msPlayToSource);
} catch (ex) {
id("messageDiv").innerHTML += "Exception encountered: " + ex.message + "<br/>";
}
}