Connecting Tech Pros Worldwide Help | Site Map

Realaudio doplay netscape mozilla

  #1  
Old July 20th, 2005, 12:59 PM
Lucien
Guest
 
Posts: n/a
I have trouble using JavaScript to access an embedded real audio in
netscape navigator 7.1 and mozilla 1.4 and 1.5 (It seems to work in NS 4.7)

Eg.

<EMBED NAME=javademo SRC="test.rpm" WIDTH=220 HEIGHT=180 CONSOLE=one
CONTROLS=ImageWindow BACKGROUNDCOLOR=white
MAINTAINASPECT=true>

<!-- Form Buttons using JavaScript Controls-->

<FORM>
<INPUT TYPE="button" VALUE="Play"
onClick="document.javademo.DoPlay()">
</form>

The javascript error: "document.javademo.DoPlay is not a function"
any suggestions?

Luciano



  #2  
Old July 20th, 2005, 01:00 PM
VK
Guest
 
Posts: n/a

re: Realaudio doplay netscape mozilla


Did they drop <embed> for <object> starting v5? I personally did not use
<embed> for years so I'm not 100% sure.

Try document.embeds[0].DoPlay() instead.
If not, try <object>


  #3  
Old July 20th, 2005, 01:00 PM
Martin Honnen
Guest
 
Posts: n/a

re: Realaudio doplay netscape mozilla




Lucien wrote:
[color=blue]
> I have trouble using JavaScript to access an embedded real audio in
> netscape navigator 7.1 and mozilla 1.4 and 1.5 (It seems to work in NS 4.7)
>
> Eg.
>
> <EMBED NAME=javademo SRC="test.rpm" WIDTH=220 HEIGHT=180 CONSOLE=one
> CONTROLS=ImageWindow BACKGROUNDCOLOR=white
> MAINTAINASPECT=true>
>
> <!-- Form Buttons using JavaScript Controls-->
>
> <FORM>
> <INPUT TYPE="button" VALUE="Play"
> onClick="document.javademo.DoPlay()">
> </form>
>
> The javascript error: "document.javademo.DoPlay is not a function"
> any suggestions?[/color]

A plugin that allows scripting with Netscape 4 doesn't support scripting
with Netscape 7 so you need to check whether there is a new version of
the Real Player plugin that allows scripting with Netscape 7.
--

Martin Honnen
http://JavaScript.FAQTs.com/

  #4  
Old July 20th, 2005, 01:02 PM
Lucien
Guest
 
Posts: n/a

re: Realaudio doplay netscape mozilla


same problem ....

VK wrote:[color=blue]
> Did they drop <embed> for <object> starting v5? I personally did not use
> <embed> for years so I'm not 100% sure.
>
> Try document.embeds[0].DoPlay() instead.
> If not, try <object>
>
>[/color]

  #5  
Old July 20th, 2005, 01:02 PM
Lucien
Guest
 
Posts: n/a

re: Realaudio doplay netscape mozilla


I have the latest version of RealOne installed. It is a Javascript
callback problem. I can play Realaudio files but I can't call the plugin
with javascript. Any help would be appreciated.
Lucien

Martin Honnen wrote:
[color=blue]
>
>
> Lucien wrote:
>[color=green]
>> I have trouble using JavaScript to access an embedded real audio in
>> netscape navigator 7.1 and mozilla 1.4 and 1.5 (It seems to work in NS
>> 4.7)
>>
>> Eg.
>>
>> <EMBED NAME=javademo SRC="test.rpm" WIDTH=220 HEIGHT=180 CONSOLE=one
>> CONTROLS=ImageWindow BACKGROUNDCOLOR=white
>> MAINTAINASPECT=true>
>>
>> <!-- Form Buttons using JavaScript Controls-->
>>
>> <FORM>
>> <INPUT TYPE="button" VALUE="Play"
>> onClick="document.javademo.DoPlay()">
>> </form>
>>
>> The javascript error: "document.javademo.DoPlay is not a function"
>> any suggestions?[/color]
>
>
> A plugin that allows scripting with Netscape 4 doesn't support scripting
> with Netscape 7 so you need to check whether there is a new version of
> the Real Player plugin that allows scripting with Netscape 7.[/color]

  #6  
Old July 23rd, 2005, 02:38 PM
dancos
Guest
 
Posts: n/a

re: Realaudio doplay netscape mozilla



I had all the problems you described in your message.

I find this page on Real Site:
http://tinyurl.com/6bv8s

you can see that the Real Object embedded in the page works fine wit
control buttons (Play, Pause, Stop, GetState, etc...)

After looking this page I understand that my problem was on the name o
the embedded object (i called the object "Player1").
I simply changed object name and now it works fine!

I attach the txt file with source code of the embedded player wit
controls button.

I hope this will help you!


Bye
Daniele



Lucien Wrote:[color=blue]
> I have the latest version of RealOne installed. It is a Javascript
> callback problem. I can play Realaudio files but I can't call th
> plugin
> with javascript. Any help would be appreciated.
> Lucien
>
> Martin Honnen wrote:
>
>
>
> Lucien wrote:
>
> I have trouble using JavaScript to access an embedded real audio in
> netscape navigator 7.1 and mozilla 1.4 and 1.5 (It seems to work i
> NS
> 4.7)
>
> Eg.
>
> EMBED NAME=javademo SRC="test.rpm" WIDTH=220 HEIGHT=180 CONSOLE=one
> CONTROLS=ImageWindow BACKGROUNDCOLOR=white
> MAINTAINASPECT=true
>
> !-- Form Buttons using JavaScript Controls--
>
> FORM
> INPUT TYPE="button" VALUE="Play"
> onClick="document.javademo.DoPlay()"
> /form
>
> The javascript error: "document.javademo.DoPlay is not a function"
> any suggestions?
>
>
> A plugin that allows scripting with Netscape 4 doesn't suppor
> scripting
> with Netscape 7 so you need to check whether there is a new versio
> of
> the Real Player plugin that allows scripting with Netscape 7[/color]

+-------------------------------------------------------------------
|Filename: playback1.txt
|Download: 2553
+-------------------------------------------------------------------

--
dancos
  #7  
Old July 23rd, 2005, 04:21 PM
kokul
Guest
 
Posts: n/a

re: Realaudio doplay netscape mozilla



Are you shure that the problem was the name of the object? I tried th
link below with mozilla 1.5 but it didn't work. Same thing with firefo
or opera.
only netscape 7.1 worked fine. I think the javascript functions fro
the RealPlayer only work proper with the IE.

dancos Wrote:[color=blue]
> I had all the problems you described in your message.
>
> I find this page on Real Site:
> http://tinyurl.com/6bv8s
>
> you can see that the Real Object embedded in the page works fine wit
> control buttons (Play, Pause, Stop, GetState, etc...)
>
> After looking this page I understand that my problem was on the name o
> the embedded object (i called the object "Player1").
> I simply changed object name and now it works fine!
>
> I attach the txt file with source code of the embedded player wit
> controls button.
>
> I hope this will help you!
>
>
> Bye
> Daniel[/color]

--
kokul
Closed Thread