Activex, javascript, and streaming
Posted: 21 Oct 2014 21:35
Ive got a video game that has a music streaming system that uses WMP and a hidden IE window and i'm trying to convert it to VLC for various reasons. This is what i have so far
Now the initial song will play but trying to alter it after that results in no change.
Code: Select all
<object id='player' classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab"></object>
<script>
function noErrorMessages () { return true; }
window.onerror = noErrorMessages;
function SetMusic(url, time, volume) {
var player = document.getElementById('player');
player.target = url;
player.input.time = time;
player.audio.volume = volume;
}
</script>