problem with <EMBED SRC="rtsp://..

Koos Vriezen koos.vriezen at xs4all.nl
Fri Jun 13 17:49:14 BST 2003



On Fri, 13 Jun 2003, Koos Vriezen wrote:

> On Fri, 13 Jun 2003, Koos Vriezen wrote:
>
> > On Fri, 13 Jun 2003, George Staikos wrote:
> >
> > > On Friday 13 June 2003 09:43, Koos Vriezen wrote:
> > > > > > <html><body>
> > > > > > <EMBED TYPE="audio/x-pn-realaudio-plugin" SRC="rtsp://aaa.bbb.ccc/xxxx"
> > > > > > NAME="playerWindow" WIDTH="320" HEIGHT="240"
> > > > > > PLUGINSPAGE="http://europe.real.com/freeplayer_r1p.html">
> > > > > > </EMBED><BR>
> > > > > > </body></html>
> >
> > That sounds strange, it's an EMBED object here. No way it should spawn a
> > realplay process, but honor the embedded viewer settings for
> > audio/x-pn-realaudio imo.
>
> This if succeeds in DocumentImpl::isURLAllowed (khtml/xml/dom_docimpl.cpp:1891:
> if ( !kapp || !kapp->authorizeURLAction("redirect", w->part()->url(), newURL) )
>
> Now why can't have a http protocol based html page have a real plugin
> playing a rtsp stream? ... hmm same with mms://, not uncommon imo.

Ok attached diff fixes it, I can play it now with kmplayer (next
challange is linking these three players). Commit? (maybe more of those
streaming protocols are out there..)

Koos
>
> >
> > Koos
> >
>
-------------- next part --------------
Index: kdecore/kapplication.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdecore/kapplication.cpp,v
retrieving revision 1.593
diff -u -3 -p -r1.593 kapplication.cpp
--- kdecore/kapplication.cpp	7 Jun 2003 23:58:35 -0000	1.593
+++ kdecore/kapplication.cpp	13 Jun 2003 16:42:29 -0000
@@ -2482,6 +2482,10 @@ void KApplication::initUrlActionRestrict
   ("redirect", QString::null, QString::null, QString::null, "ftp", QString::null, QString::null, true));
   d->urlActionRestrictions.append( new KApplicationPrivate::URLActionRule
   ("redirect", QString::null, QString::null, QString::null, "mailto", QString::null, QString::null, true));
+  d->urlActionRestrictions.append( new KApplicationPrivate::URLActionRule
+  ("redirect", QString::null, QString::null, QString::null, "rtsp", QString::null, QString::null, true));
+  d->urlActionRestrictions.append( new KApplicationPrivate::URLActionRule
+  ("redirect", QString::null, QString::null, QString::null, "mms", QString::null, QString::null, true));
 
   // We allow redirections to file: but not from http:, redirecting to file:
   // is very popular among io-slaves and we don't want to break them


More information about the kfm-devel mailing list