Source language: Translate to:

Help with JavaScript

Questions and information about using VBScript and JavaScript in NeoBook functions

Moderator: Neosoft Support

Help with JavaScript

Postby David de Argentina » Tue Jun 18, 2013 1:42 pm

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
User avatar
David de Argentina
 
Posts: 1559
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Re: Help with JavaScript

Postby David de Argentina » Tue Jun 18, 2013 2:33 pm

User avatar
David de Argentina
 
Posts: 1559
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina

Re: Help with JavaScript

Postby Tony Kroos » Tue Jun 18, 2013 4:13 pm

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 ?
Tony Kroos
 
Posts: 402
Joined: Thu Oct 15, 2009 3:43 pm

Re: Help with JavaScript

Postby David de Argentina » Tue Jun 18, 2013 4:49 pm

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
User avatar
David de Argentina
 
Posts: 1559
Joined: Mon Apr 04, 2005 4:13 pm
Location: Buenos Aires, Argentina


Return to NeoBook Functions - VBScript & JavaScript

Who is online

Users browsing this forum: No registered users and 1 guest