.Net Test.html
Jump to navigation
Jump to search
This page contains example code for .Net Interface to VLC. |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=iso-8859-1' /> <HTML> <HEAD> <TITLE>Sink managed event in Internet Explorer</TITLE> </HEAD> <BODY> <OBJECT id="myVLan" classid="clsid:FB99D376-ED98-4ac0-B2C9-F2E974E0849F" width="720" height="480"> </OBJECT>
<SCRIPT LANGUAGE="JScript"> var selectionsEmpty = true; function myVLan::NowPlayingEvent(a, b) { document.getElementById('nowPlaying').innerText = b; //alert(b); } function FillSelectionList(choiceArray, selectedChoice, selectId) { var selectElement = document.getElementById(selectId); while(selectElement.hasChildNodes()) { selectElement.removeChild(selectElement.lastChild); } for(index = 0; index < choiceArray.length; index = 2) { var choice = choiceArray[index]; var choiceText = choiceArray[index 1]; var newOption = document.createElement('option'); newOption.value = choice; newOption.appendChild(document.createTextNode(choiceText)); if(choice == selectedChoice) { newOption.selected = 'selected'; } selectElement.appendChild(newOption); } } function FillSelectionsWhenPlaying() { if(selectionsEmpty