34 function xoopsCodeRtsp(
id,enterRtspPhrase, enterRtspHeightPhrase, enterRtspWidthPhrase){
35 var selection = xoopsGetSelect(
id);
36 if (selection.length > 0) {
37 var selection =
"rtsp://"+selection;
40 var text = prompt(enterRtspPhrase+
" Rtsp or http",
"Rtsp://");
42 var domobj = xoopsGetElementById(
id);
43 if ( text.length > 0 && text!=
"rtsp://") {
44 var text2 = prompt(enterRtspWidthPhrase,
"480");
45 var text3 = prompt(enterRtspHeightPhrase,
"330");
46 var result =
"[rtsp="+text2+
","+text3+
"]" + text +
"[/rtsp]";
47 xoopsInsertText(domobj, result);
61 $ts->patterns[] =
"/\[rtsp=(['\"]?)([^\"']*),([^\"']*)\\1]([^\"]*)\[\/rtsp\]/sU";
62 $rp =
"<object classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" HEIGHT='\\3' ID=Player WIDTH='\\2' VIEWASTEXT>";
63 $rp .=
"<param NAME=\"_ExtentX\" VALUE=\"12726\">";
64 $rp .=
"<param NAME=\"_ExtentY\" VALUE=\"8520\">";
65 $rp .=
"<param NAME=\"AUTOSTART\" VALUE=\"0\">";
66 $rp .=
"<param NAME=\"SHUFFLE\" VALUE=\"0\">";
67 $rp .=
"<param NAME=\"PREFETCH\" VALUE=\"0\">";
68 $rp .=
"<param NAME=\"NOLABELS\" VALUE=\"0\">";
69 $rp .=
"<param NAME=\"CONTROLS\" VALUE=\"ImageWindow\">";
70 $rp .=
"<param NAME=\"CONSOLE\" VALUE=\"_master\">";
71 $rp .=
"<param NAME=\"LOOP\" VALUE=\"0\">";
72 $rp .=
"<param NAME=\"NUMLOOP\" VALUE=\"0\">";
73 $rp .=
"<param NAME=\"CENTER\" VALUE=\"0\">";
74 $rp .=
"<param NAME=\"MAINTAINASPECT\" VALUE=\"1\">";
75 $rp .=
"<param NAME=\"BACKGROUNDCOLOR\" VALUE=\"#000000\">";
76 $rp .=
"<param NAME=\"SRC\" VALUE=\"\\4\">";
77 $rp .=
"<embed autostart=\"0\" src=\"\\4\" type=\"audio/x-pn-realaudio-plugin\" HEIGHT='\\3' WIDTH='\\2' controls=\"ImageWindow\" console=\"cons\"> </embed>";
79 $rp .=
"<br /><object CLASSID=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA HEIGHT=32 ID=Player WIDTH='\\2' VIEWASTEXT>";
80 $rp .=
"<param NAME=\"_ExtentX\" VALUE=\"18256\">";
81 $rp .=
"<param NAME=\"_ExtentY\" VALUE=\"794\">";
82 $rp .=
"<param NAME=\"AUTOSTART\" VALUE=\"0\">";
83 $rp .=
"<param NAME=\"SHUFFLE\" VALUE=\"0\">";
84 $rp .=
"<param NAME=\"PREFETCH\" VALUE=\"0\">";
85 $rp .=
"<param NAME=\"NOLABELS\" VALUE=\"0\">";
86 $rp .=
"<param NAME=\"CONTROLS\" VALUE=\"controlpanel\">";
87 $rp .=
"<param NAME=\"CONSOLE\" VALUE=\"_master\">";
88 $rp .=
"<param NAME=\"LOOP\" VALUE=\"0\">";
89 $rp .=
"<param NAME=\"NUMLOOP\" VALUE=\"0\">";
90 $rp .=
"<param NAME=\"CENTER\" VALUE=\"0\">";
91 $rp .=
"<param NAME=\"MAINTAINASPECT\" VALUE=\"0\">";
92 $rp .=
"<param NAME=\"BACKGROUNDCOLOR\" VALUE=\"#000000\">";
93 $rp .=
"<param NAME=\"SRC\" VALUE=\"\\4\">";
94 $rp .=
"<embed autostart=\"0\" src=\"\\4\" type=\"audio/x-pn-realaudio-plugin\" HEIGHT='30' WIDTH='\\2' controls=\"ControlPanel\" console=\"cons\"> </embed>";
97 $ts->replacements[] = $rp;
load(MyTextSanitizer &$ts)