Skip to main content

[JAVAHELP] Display multimedia/pdf files

8 replies [Last post]
Anonymous

Hi all,

I am currently working with JavaHelp 2.0 (RC2) and I would like to display
either multimedia or pdf files. Display in the sense where when the user
clicks on the link which points to a pdf file, it will open up acrobat
reader to display this file. Is it possible? Right now, I have the
following in my html file....

When I click on it now, it displays unreadable strings on the content pane.

Thanks in advance.

Cheers,
Prudence

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Sean Murphy

Hi Prudence,

What kind of multimedia are talking about?

Cheers
Sean
----- Original Message -----
From: Prudence Au
To: JAVAHELP-INTEREST@JAVA.SUN.COM
Sent: Friday, October 03, 2003 3:05 PM
Subject: Re: [JAVAHELP] Display multimedia/pdf files

Hi Binky,

Do you have an example on EditorKit embedded with JavaHelp? I guess I

will need to build my own GUI using EditorKit instead of JHelp, right?

Any help will be greatly appreciated.

Thanks in advance,

Prudence

********************************************************************************
You may leave the list at any time by sending message with no subject and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives are available at http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Prudence Au

Hi Sean,

I am talking about display pdf files and audio/video files. Do you have any
experiment on these?

Cheers,
Prudence
-----Original Message-----
From: Discussion list of JavaHelp
[mailto:JAVAHELP-INTEREST@JAVA.SUN.COM]On Behalf Of Sean Murphy
Sent: Friday, October 03, 2003 3:40 PM
To: JAVAHELP-INTEREST@JAVA.SUN.COM
Subject: Re: [JAVAHELP] Display multimedia/pdf files

Hi Prudence,

What kind of multimedia are talking about?

Cheers
Sean
----- Original Message -----
From: Prudence Au
To: JAVAHELP-INTEREST@JAVA.SUN.COM
Sent: Friday, October 03, 2003 3:05 PM
Subject: Re: [JAVAHELP] Display multimedia/pdf files

Hi Binky,

Do you have an example on EditorKit embedded with JavaHelp? I guess I

will need to build my own GUI using EditorKit instead of JHelp, right?

Any help will be greatly appreciated.

Thanks in advance,

Prudence

****************************************************************************
****
You may leave the list at any time by sending message with no subject
and "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM.
Archives are available at
http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
reports at http://java.sun.com/cgi-bin/bugreport.cgi.

****************************************************************************
****
You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at
http://archives.java.sun.com/archives/javahelp-interest.html. Submit bug
reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Sean Murphy

Prudence,

We are using (LightWeightComponent) beans. PDFs are redirected to Web browser. Audios/videos can be displayed thanks to Java Media Framworks either in the HTML that contains the bean tag or in a secondary window.

There is a demo available online, showing several beans in a JavaHelp document.
If you are running Windows, with JWS 1.2, and JavaVM 1.4+ (rec. JVM 1.4.2), take a look at:
http://www.xlreader.com/demos/12/demos.html
Once there, click on the link jhreader12_doc1_main.jnlp

The manual is located in
http://www.xlreader.com/download/12/dlxlbeans12.zip
(3.6 MB size)

- Sean

PS: Below is the list of beans:
Links displayed:
a) in secondary window:
. from audio
. from video
. from streaming audio
. from streaming video only
. from streaming video & audio
. from HTML
. from RTF
b) in Web browser:
. from HTML, PDF, ...
c) in Web mailer:
. from email address
d) in same HTML page (containing the bean tag):
. from audio
. from video
. from streaming audio
. from streaming video only
. from streaming video & audio

----- Original Message -----
From: Prudence Au
To: JAVAHELP-INTEREST@JAVA.SUN.COM
Sent: Friday, October 03, 2003 9:44 PM
Subject: Re: [JAVAHELP] Display multimedia/pdf files

Hi Sean,

I am talking about display pdf files and audio/video files. Do you have any experiment on these?

Cheers,
Prudence

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Prudence Au

Hi Binky,

Do you have an example on EditorKit embedded with JavaHelp? I guess I

will need to build my own GUI using EditorKit instead of JHelp, right?

Any help will be greatly appreciated.

Thanks in advance,

Prudence

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
[att1.html]

Roger Brinkley

Prudence Au wrote:
> Hi Binky,
>
> Do you have an example on EditorKit embedded with JavaHelp? I guess I
>
> will need to build my own GUI using EditorKit instead of JHelp, right?
>

I wouldn't go that far. If you build an EditorKit all you have to do is
assign the mime type to that EditorKit and it displays appropriately in
the JHelpContentViewer. There is an API to register the mime type so
that JavaHelp will recognize it.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Prudence Au

Hi Binky,

I've briefly looked into EditorKit and looks like writing an EditorKit for
every file type I would like to have supported is not easy. Really, all I
really need is to be able to launch Acrobat Reader when it is a PDF file or
Real Audio etc for audio file. It doesn't have to be displayed on the
content viewer at all. Is that any way to have the content viewer to launch
an external application?

TIA,
Prudence

-----Original Message-----
From: Discussion list of JavaHelp
[mailto:JAVAHELP-INTEREST@JAVA.SUN.COM]On Behalf Of Roger Brinkley
Sent: Friday, October 03, 2003 10:38 AM
To: JAVAHELP-INTEREST@JAVA.SUN.COM
Subject: Re: [JAVAHELP] Display multimedia/pdf files

Prudence Au wrote:
> Hi Binky,
>
> Do you have an example on EditorKit embedded with JavaHelp? I guess I
>
> will need to build my own GUI using EditorKit instead of JHelp, right?
>

I wouldn't go that far. If you build an EditorKit all you have to do is
assign the mime type to that EditorKit and it displays appropriately in
the JHelpContentViewer. There is an API to register the mime type so
that JavaHelp will recognize it.

Binky

****************************************************************************
****

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at
http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Roger Brinkley

Prudence Au wrote:
> Hi Binky,
>
> I've briefly looked into EditorKit and looks like writing an EditorKit for
> every file type I would like to have supported is not easy. Really, all I
> really need is to be able to launch Acrobat Reader when it is a PDF file or
> Real Audio etc for audio file. It doesn't have to be displayed on the
> content viewer at all. Is that any way to have the content viewer to launch
> an external application?
>

Write a LightWeightComponent instead. The secondary window is actually a
lightweight component. Others have written these for a variety of uses
and I think they are in the archives (at least the old archives).

See the JHUG for more details on writing a lightweight component for the
content viewer.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Roger Brinkley

Prudence Au wrote:
> Hi all,
>
> I am currently working with JavaHelp 2.0 (RC2) and I would like to
> display either multimedia or pdf files. Display in the sense where when
> the user clicks on the link which points to a pdf file, it will open up
> acrobat reader to display this file. Is it possible? Right now, I have
> the following in my html file....
>
>
>

The current viewer in V2.0 doesn't support multimedia or PDF files.
You'd need to either write a lightweigt component to displayes those
files in a their particular viewers or write an EditorKit for those type
of files.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.