This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Problem with radio stream script

Tags: None
(comma "," separated)
User avatar
Max
Registered Member
Posts
28
Karma
0
OS

Problem with radio stream script

Sun Jan 31, 2010 4:28 pm
I'm trying to make a script that will stream internet radio, and I seem to be having a problem.
I shamelessly copied the functions from the Cool Streams script (it's what everybody else did) and ran a test on the scripting console.
It didn't work.
Code: Select all
script.populate.connect(onPopulating);

Returns the error ReferenceError: connect is not defined.
I have the onPopulating function, and it looks like it should work.
I looked at several other radio scripts, and saw that they all have this line, and yet none of them run in the script console.
I'm clearly doing something wrong. What?


Cogito ergo surf
I think therefore I network.

Registered Linux user #481826 Get counted!
Image
Batpio
Registered Member
Posts
4
Karma
0
OS
Hi,

Probably the name of the script used in the spec file and the js are different

Check that:

Name = Name
X-KDE-PluginInfo-Name=Name

form spec file, and

ScriptableServiceScript.call( this, "Name", 4, "Test", "Test", true );

form js file are equal.
User avatar
Max
Registered Member
Posts
28
Karma
0
OS
I'm not trying to run it from a js file but in the scripting console.


Cogito ergo surf
I think therefore I network.

Registered Linux user #481826 Get counted!
Image


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, Sogou [Bot], Yahoo [Bot]