Cordova Plugin Toast (Smart TV)
This guide is for integrating the MediaMelon Player SDK for the javascript based Cordova Plugin Toast (Tizen, WebOS, Orsay)
Step 1: Add the MediaMelon Player SDK
<script type="text/javascript" src="https://PATH_TO_SMARTSTREAMING_SDK"></script>Step 2: Register and Initialize the MediaMelon Player SDK
function playMedia() {
.....
.....
document.body.appendChild(bgContainer);
// MediaMelon Start
toastMMPlugin = new ToastJsMMSSIntgr();
if(toastMMPlugin.getRegistrationStatus() === false){
toastMMPlugin.registerMMSmartStreaming("PLAYER_NAME", "CUSTOMER_ID", "SUBSCRIBER_ID", "DOMAIN_NAME", "SUBSCRIBER_TYPE" , "SUBSCRIBER_TAG");
toastMMPlugin.reportPlayerInfo("PLAYER_BRAND", "PLAYER_MODEL", "PLAYER_VERSION");
}
var mediaSourceURL = 'http://media.w3.org/2010/05/sintel/trailer.mp4'';
// MediaMelon End
media = toast.Media.getInstance();
media.open(mediaSourceURL);Step 3: Toast Level Changes for Bitrate Support
Last updated