Old 3rd June 2022, 07:27   #1
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:
var artist = window.external.Transport.GetMetadata("artist");

HTML Code:
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	<script src="main.js"></script>
That should execute the script, but when I load it, nothing happens :/
Only the JSAPI2 Test works...
Am I missing something?
ChocolateAdventurouz is offline   Reply With Quote
Old 1st July 2022, 19:36   #2
DJ Egg
Winamp & Shoutcast Team
Join Date: Jun 2000
Posts: 36,137
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 offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

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