mpviewplugins/mpdetailsviewplugin/resources/index.html
changeset 47 4cc1412daed0
parent 45 612c4815aebe
child 51 560ce2306a17
equal deleted inserted replaced
45:612c4815aebe 47:4cc1412daed0
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
       
     2 <html>
       
     3     <head>
       
     4         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />        
       
     5         <title>Publish</title>
       
     6 
       
     7         <link type="text/css" rel="stylesheet" href="http://hf.ci.wipsl.com/PleiXXPTsup/noheva-be/css/ovi.player.share.ui.css" />
       
     8 		<link type="text/css" rel="stylesheet" href="musiccontext.css" />		<!-- CSS for music context area -->
       
     9 		
       
    10 		<!-- Player scripts -->
       
    11         <script type="text/javascript" src="http://hf.ci.wipsl.com/PleiXXPTsup/noheva-be/js/publishplayer.js"></script>
       
    12 		
       
    13 		<!-- Local stuff to be implemented by user application to provide the contextual information -->
       
    14 		<script type="text/javascript" src="musiccontext.js"></script>
       
    15 		
       
    16 		<!-- Error recovery in case page player script loading fails -->
       
    17 		 <script type="text/javascript">
       
    18 		 var mybody = {
       
    19 				onLoad: function () {
       
    20 					if (window['music'] &&
       
    21 						window['ovi'] &&
       
    22 						ovi['player'] &&
       
    23 						ovi.player['publish'] ) {
       
    24 						music.initPlayer();
       
    25 						music.updateContextArea();
       
    26 					} else {
       
    27 						showErrorMessage();
       
    28 					}
       
    29 				},
       
    30 				onFocus: function () {
       
    31 					if (window['music']) {
       
    32 						music.updateContextArea();
       
    33 					}
       
    34 				}
       
    35 			}
       
    36 			function showErrorMessage() {
       
    37 				var errorUi = "<H1>" + window.context.errorMessage() + "</H1>";
       
    38 				errorUi += "<input type='button' value='Close' onClick='context.owner().closeShareDialog();'>";
       
    39 				document.getElementById("ovi.player.share.ui").innerHTML = errorUi;
       
    40 			}
       
    41 		</script>		
       
    42 
       
    43     </head>
       
    44 	<!-- onfocus refreshes only the song when publishplayer is set active / deactive -->
       
    45     <body onload="mybody.onLoad();" onfocus="mybody.onFocus();">
       
    46 		<div id="ovi.player.share.ui"></div>
       
    47     </body>
       
    48 </html>