Old 3rd June 2022, 06:27   #1
ChocolateAdventurouz
Senior Member
 
ChocolateAdventurouz's Avatar
 
Join Date: Oct 2021
Location: In a solar system
Posts: 164
Winamp's JavaScript API doesn't work

Hello! I recently started playing around with the ' Winamp JavaScript API [JSAPI2]' (ml_webdev.dll)

I have made a small script that gets the artist from the API

JavaScript Code:
code:
var artist = window.external.Transport.GetMetadata("artist");
alert(artist);
console.log(artist);



HTML Code:
<html>
<head>
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	<script src="main.js"></script>
</head>
</html>
That should execute the script, but when I load it, nothing happens :/
Only the JSAPI2 Test works...
Am I missing something?
Thanks.
ChocolateAdventurouz is offline   Reply With Quote
Old 1st July 2022, 18:36   #2
DJ Egg
Techorator
Winamp & Shoutcast Team
 
Join Date: Jun 2000
Posts: 36,077
We've come across the exact same issue when trying to revive the Podcast Directory view for 5.9

Will be fixed in 5.9
DJ Egg is online now   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Tags
dev, jsapi2, online-services, services-dev, winamp-javascript-api

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump