Help with JavaScript

Questions and information about using VBScript and JavaScript in NeoBook functions

Moderator: Neosoft Support

Locked
David de Argentina
Posts: 1596
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina
Contact:

Help with JavaScript

Post by David de Argentina »

Hi all,

I'm trying to do a internet radio player using flash player.

The code is something like this

Code: Select all

<html>
<head>
<script type="text/javascript" src="http://enlaradio.com.ar/shared/player/v5v6/jwplayer.js"></script>
</head>
<body>
<div id="titulo">Radio Capi</div>
<div id="mediaplayer"></div>
<script type='text/javascript'>
  jwplayer('mediaplayer').setup({
    flashplayer: "http://enlaradio.com.ar/shared/player/v5v6/player.swf",
    id: "mediaID",
    file: "http://78.129.232.162:31125/;.mp3",
    streamer: "",
    image: "",
    controlbar: "bottom",
    width: "478",
    height: "80",
    autostart: "true",
    modes: [ {type: 'flash', src: 'http://enlaradio.com.ar/shared/player/v5v6/player.swf'},
             {type: 'html5'},{type: 'download'}
           ]
  });
</script>
</body>
</html>
In fact, this code works... not very fine but works
(if i use BrowserLoadFromStr action and paste it, does not work, if BrowserGoto, works fine... )

My idea is change on demand the parameters "file" and "streamer" of the player.

I do the following:

Code: Select all

BrowserExecScript "NavegadorWeb1" "mediaplayer.file='live';|mediaplayer.streamer='rtmp://radio10.stweb.tv:1935/radio10';" "JScript"
Code executes without errors, but nothing happens...

Any ideas how to change this parameters ?

Thanks in advance,
David de Argentina
David de Argentina
Posts: 1596
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina
Contact:

Re: Help with JavaScript

Post by David de Argentina »

Tony Kroos
Posts: 419
Joined: Thu Oct 15, 2009 3:43 pm

Re: Help with JavaScript

Post by Tony Kroos »

Since there's a special API, there must be appropriate functions and methods for this kind of task
http://www.longtailvideo.com/support/jw ... -playlists - jwplayer().load ?
David de Argentina
Posts: 1596
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina
Contact:

Re: Help with JavaScript

Post by David de Argentina »

Thanks Tony,

I tryed them, but i had received a crossdomain policy block message.

I solved problem, using force brute, rewritting the html with new data source.

Thanks !

David de Argentina
Locked