#1 Extension para google chrome
Tengo problema con este código que no pudo hacer funcionar en google chrome porque no soporta activex y no encuentro otra manera de cumplir esa función que sea compartible con chroma, les agradesco mucho su ayuda.
Código:
<html>
<head>
<script>
var iTunesApp = new activexobject("iTunes.Application"); //el problema es que google chrome no soporta activex, la otra opcion que encontre para que funcionara fue con Wscript.createobject(... pero tampoco funciona en google, alguien sabe como hacer que funcione este codigo?
getCurrentTrackInfo()
function getCurrentTrackInfo() {
var current = iTunesApp.CurrentTrack;
var stream = iTunesApp.CurrentStreamTitle;
var trackType = "";
var trackName = "";
var trackArtist = "";
var trackAlbum = "";
if (stream != "") {
streamURL = iTunesApp.Application.CurrentStreamURL;
trackType="stream";
trackName=stream;
trackArtist=current.Name;
trackAlbum=streamURL;
} else {
trackType="file";
trackName=current.Name;
trackArtist=current.Artist;
trackAlbum=current.Album;
}
var trackname = current.name;
window.alert(trackname);
}
</script>
</head>
<body>
</body>
</html>
0