General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Internal Realplayer via plugin...
Posted by: MonkeeSage
Date: January 19, 2003 07:58PM

If you have nppl3260.dll and the accompanying .zip file in your plugins directory, it auto registers a mime-type with Netscape's plugin system for files with the extension .rpm...so, a nifty trick for those who want to use the _embded_ realplayer inside of a K-Meleon layer (or new window so you can resize winking smiley ), here is what you do.

Manually edit your Prefs.js when K-Meleon is not running, and comment (using two foward slashes -- // ) or delete the line that auto launches the _external_ realplayer:

// user_pref("browser.helperApps.neverAsk.openFile", "audio/x-pn-realaudio, audio/x-realaudio, application/vnd.rn-realmedia");

Then change the line that auto closes you download dialog (you'll see why below):

Change from:

user_pref("kmeleon.general.CloseDownloadDialog", true);

To:

user_pref("kmeleon.general.CloseDownloadDialog", false);

Now save and close the file. Start up K-Meleon, navigate to somewhere with .ram or .rm files (e.g., http://prbc.org/Sermons/ ), click either type of file (the .ram is a link to the .rm, try that one for streaming, and the .rm for playback from disk). Now you have a save file dialog appear. Save the file with the extension .RPM -- MAKE SURE IT SAYS .RPM AT THE END OR THIS WILL NOT WORK.

Now when your download completes, hit the Open button on the download dialog. Windows will complain that it can't find a handler for this type of file (if it doesn't complain and it automatically opens the _external_ realplayer, then set your windows mime-type by editing Control Panel -> Folder Properties -> File Types tab -> .rpm to open with your k-meleon.exe). If it does complain, tell it you want to manually search for a program to open the file with and find your k-meleon.exe. Tell windows to always use this program to open files of this type. Now click Ok.

If everything went as planned then you are now listening to, or watching, real content from the comfort of the frame of the best broswer on the planet! You might say that it is Realplayer posing as a Chameleon. winking smiley

(Ps. This has only been tested with RealPlayerOne Gold (Helix), but there has been an internal .rpm plugin ever since I can remember, and that was Realplay 4 (community supported)--so in theory it will work with any version that his installed nppl3260.dll and the .zip that goes with it--This will NOT work without the .zip file as well as the .dll, because the .zip contains the java classes that make up the internal player's GUI as well as the backend to connect the internal player to the Realplayer components on your machine).


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Re: Internal Realplayer via plugin...
Posted by: MonkeeSage
Date: January 19, 2003 11:38PM

Pss. I was wrong. The internal _plugin_ doesn't support video... it appears they were only nice enough to allow their embeded video player to be called from microsloth software, se la vi.

But...that's not the final word. winking smiley

There is a way to forcibly embed the video client whether the plugin wants to or not, using html:

<html>
<head>
<title>Internal RealOne Player</title>
</head>
<body>
<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="500" height="400" id="RVOCX">
<param name="src" value="file:///c:/real.ram">
<param name="autostart" value="true">
<param name="controls" value="imagewindow">
<param name="console" value="video">
<embed src="file:///c:/real.ram" width="500" height="360" type="audio/x-pn-realaudio-plugin" autostart="true" controls="imagewindow" console="video">
</embed>
</object>

<br />

<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="500" height="100"
id="RVOCX">
<param name="src" value="file:///c:/real.ram">
<param name="autostart" value="true">
<param name="controls" value="all">
<param name="console" value="video">
<embed type="audio/x-pn-realaudio-plugin" src="file:///c:/real.ram" width="500" height="100" autostart="true" controls="all" console="video">
</embed>
</object>
</body>
</html>


What I did was make a real playlist (real.ram) and a macro to open it text editor then another macro with a hotkey to open the html file (above). The .ram file just takes one url per line, pointing to a file of any format that realplayer can handle (e.g., mp3, m3u, avi, et al.), and you can have as many as you like. You can also use links to files on your local disk by file:///<drive letter>:/directory/file.extension.

Unless there is a way to write to an external file with macros (e.g., write to real.ram, our playlist), which I don't believe there is yet, then we're stuck having to edit the .ram file by hand to add links, and it can't open the url strait from clinking links; but hey, you can't complain about one more good thing about K-Meleon, even if its not perfect yet. smiling smiley


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Re: Internal Realplayer via plugin...
Posted by: MonkeeSage
Date: January 20, 2003 12:05AM

Pss. You don't have to reload the html page that is hosting the embeded realplayer when you update your playlist, you simply push the stop button on the player, and then press play and the player will detect the changes in the .ram file and load the new content.

Alos, if some really wanted to use only this player as their main media player, they could edit the mime-type for .ram and .rpm and cause them all to be opened with a text editor instead of a media player, then add the line back to your Prefs.js:

user_pref("browser.helperApps.neverAsk.openFile", "audio/x-pn-realaudio, audio/x-realaudio, application/vnd.rn-realmedia");

And change:

user_pref("kmeleon.general.CloseDownloadDialog", false);

To:

user_pref("kmeleon.general.CloseDownloadDialog", true);

--that way you will have the links you click on for realmedia, pop open in an editor window, so you can paste them into your own .ram file that is acting as the playlist. then just stop and start the realplayer and you're go.


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Re: Internal Realplayer via plugin...
Posted by: MonkeeSage
Date: January 20, 2003 01:28AM

Here is a cleaned up version of the html host file for the embeded realplayer:

========

<html>
<head>
<title>Internal RealOne Player</title>
</head>
<body>
<blockquote>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Realmedia Player for K-Meleon! - Behold the power of the camouflaged lizard!<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="520" height="360" id="RVOCX">
<param name="src" value="file:///c:/Program Files/Kmeleon/real.ram">
<param name="autostart" value="true">
<param name="controls" value="imagewindow">
<param name="console" value="video">
<embed src="file:///c:/Program Files/Kmeleon/real.ram" width="520" height="360" type="audio/x-pn-realaudio-plugin" autostart="true" controls="imagewindow" console="video">
</embed>
</object>

<br />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="520" height="100"
id="RVOCX">
<param name="src" value="file:///c:/Program Files/Kmeleon/real.ram">
<param name="autostart" value="true">
<param name="controls" value="all">
<param name="console" value="video">
<embed type="audio/x-pn-realaudio-plugin" src="file:///c:/Program Files/Kmeleon/real.ram" width="520" height="100" autostart="true" controls="all" console="video">
</embed>
</object>
</blockquote>
</body>
</html>

========

I have now tested DIVX and XVID .avi files, .mpeg files, .mp4 files, .mp3 files, and .ra and .rm files...they all work, just point to where they are on your drive in the .ram file. smiling smiley


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Re: Internal Realplayer via plugin...
Posted by: MonkeeSage
Date: January 20, 2003 01:37AM

Opps....

those were non-breaking-spaces... -- & nbsp; -- (without the space between & and n), but it interpreted them...it should be about 21 of those where the big spaces are up there....

Options: ReplyQuote
Re: Internal Realplayer via plugin...
Posted by: MonkeeSage
Date: January 20, 2003 03:43AM

Screen cap. and better laid out instructions are now at:

http://groups.yahoo.com/group/kmeleon/files/


Be on the look out if you want to give this a try, as I will probably post a 'helper app' for this setup--basically a simple .exe that checks the first line of the file you give it (e.g., you set this .exe as the default handler for the windows File Type of .ram, .rm, .rmm, .ra, .rpm, .m3u &c); then it well determine if it is a playlist file with URL(s) in it, or if it is actually a binary file; if it is a playlist it will write all the urls to the real.ram file, overwritting any that are currently in it; if a binary file, it will write a playlist entry (again, overwritting any present entries) for the location on disk (e.g., file:///c:/temp/FRHJ599381.rm), that way one can click a media file link, the program will run in the background, update the playlist, and exit, then all you have to do is change layers / windows and push play after you click the link.

* This is all provisional on my convincing my brother to write this app, as I can't code, except a little in VB, I can only script. winking smiley


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote


K-Meleon forum is powered by Phorum.