News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Streaming

Started by Bullcat Webhosting, November 17, 2004, 10:08:21 AM

Previous topic - Next topic

Bullcat Webhosting

Quote from: babylonking on November 22, 2004, 10:18:22 AM
Quote from: 1948Pal on November 22, 2004, 12:15:29 AM
Is it possible to make a real player stream?

Yes i converted to real stream but the real stream is not embedding on mozilla firefox, For now the real stream is working on IE 8)

Can i see how you do it ?? becourse i have take a look at ther home page and nothing found ! :(


Wij ondersteunen SMF forums & safe mode staat uit.

babylonking

just follow the stream mod steps and change every single stream text to real text

example
<edit file>
themes/default/languages/Modifications.english.php
</edit file>

<search for>
?>
</search for>

<add before>
/* Stream */
$txt['real'] = 'Add sound or movies to your posting!';
$txt['enableEmbeddedreal'] = 'Embeded real into posts?';
</add before>



The important step is adding the code below in subs.php

// Handle real.
$codefromcache[] = '/\[real=(.+?),(.+?)\](?:<br \/>)?(.+?)(?:<br \/>)?\[\/real\]/is';
if (empty($modSettings['enableEmbeddedreal']))
$codetocache[] = '<a href="$3" target="_new">$3</a>';
else

                        $codetocache[] = '<OBJECT ID=RVOCX width=\\1 height=\\2 CLASSID="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" WIDTH=320 HEIGHT=240>
<PARAM NAME="SRC" VALUE="$3">
<PARAM NAME="CONSOLE" VALUE="MOVIE1">
<PARAM NAME="CONTROLS" VALUE="ImageWindow">
<PARAM NAME="AUTOSTART" VALUE="TRUE">
</OBJECT><OBJECT ID=RVOCX width=\\1 CLASSID="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" WIDTH=320 HEIGHT=32>
<PARAM NAME="CONSOLE" VALUE="MOVIE1">
<PARAM NAME="CONTROLS" VALUE="ControlPanel"></OBJECT>';


and upload the real icon to bbc folder

see it in action (IE only) http://www.babylonking.net/forum/index.php?topic=8531.0

Bullcat Webhosting

#22
i take alook to see it, but nothing happens :(

A litle question, what heppen when a user dont have real player on his pc ??


Wij ondersteunen SMF forums & safe mode staat uit.

Hally

Good codes! But i don't need them, i have phpBB forum.

Hello from SLO
In english lagunage:
My english lagunage is bad, i'm from Slovenia.
In slovenian lagunage:
Moja angleščina je slaba, sem iz Slovenije.

By Halli

babylonking

Quote from: Hans_de_Echte on November 22, 2004, 01:37:33 PM
i take alook to see it, but nothing happens :(

A litle question, what heppen when a user dont have real player on his pc ??

To be able to see the embeded video clip or audio you must have real player installed.


MrPHD

Sorry people, but i can´t see where i make this modifications and put , please tell for i use the stream.Regards
Com o apoio de SMF.

Bullcat Webhosting

Open the mod file and folow the instruction sin that file secur!


Wij ondersteunen SMF forums & safe mode staat uit.

Bullcat Webhosting

Quote from: babylonking on November 22, 2004, 01:49:46 PM
Quote from: Hans_de_Echte on November 22, 2004, 01:37:33 PM
i take alook to see it, but nothing happens :(

A litle question, what heppen when a user dont have real player on his pc ??

To be able to see the embeded video clip or audio you must have real player installed.



And without that you see nothing :(  and with the settings in the mod everybody see it :)


Wij ondersteunen SMF forums & safe mode staat uit.

1948Pal

#28
Is it possible to have both streams at the same time? What would happen if you add both codes one right after another? Would that be bad?



Actually, it does. I tried it and they both work, but only on IE, fire fox is not.

"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

jjgarza70

mod still does not work..

here the error i get

The package you tried to upload either is not a valid package or has become corrupted.


nvbk


jjgarza70

I added the code and uptaded the admon panel to allow stram in posts but nothing happpens

[stream=256,256]http://lylasmusic.com/AmoresFingidos.wma [nofollow][/stream]

what am I doing wrong?

Bullcat Webhosting

I'am getting a 404 error on that site :(


Wij ondersteunen SMF forums & safe mode staat uit.

1948Pal

Quote from: babylonking on November 22, 2004, 10:18:22 AM
Quote from: 1948Pal on November 22, 2004, 12:15:29 AM
Is it possible to make a real player stream?

Yes i converted to real stream but the real stream is not embedding on mozilla firefox, For now the real stream is working on IE 8)
I think I sort of managed to get it to stream on firefox using the <EMBED> tag within the  <OBJECT> tag.
So the last <object> tag in the "Handle real" now looks like this:

<OBJECT ID=RVOCX width=\\1 CLASSID="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" WIDTH="320" HEIGHT="32">
                  <PARAM NAME="CONSOLE" VALUE="MOVIE1">
                  <EMBED height="240" width="320" controls="ImageWindow,controlPanel" src="$3"?embed" type="audio/x-pn-realaudio-plugin" autostart="false">
                  </OBJECT>';

See it working here. The only thing is in IE, the control panel does not line up correctly under the player, but it works
If this is good enough for all, and Hans_de_Echte and babylonking do not mind, I put the stream and real codes into one package with small changes to some code, installable/uninstallable via the package manager. IF no one minds, I'll post the zip file here or provide a link. Let me know if its a go or not.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

Maxunit

Hi there,

im searching for a working version, because the one i have is the one from the download section but it is damaged. Please someone upload the newest avaible working version and post link here.

Thanks.

Greetings,

Maxunit

JayBachatero

i got the mod workin gon my site.  i got 2 test pages so you can see but i only have the real media files playing.  i tried the windows one also and it works i got both of them in.  i dont have a windows media file to stream yet just a song

Real media video 1
http://www.kevmundial.com/board/index.php?topic=16.msg25#msg25

real video 2

Windows file
http://www.kevmundial.com/board/index.php?topic=168.0

Im still trying to ge the info bar on the media player on top of the player.  any one knows how to do it?
http://www.kevmundial.com/board/index.php?topic=31.msg47#msg47
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

JayBachatero

the code above by 1948Pal only works for firefox.  i got this one working in ie but not on firefox
// Handle real.
$codefromcache[] = '/\[real=(.+?),(.+?)\](?:<br \/>)?(.+?)(?:<br \/>)?\[\/real\]/is';
if (empty($modSettings['enableEmbeddedreal']))
$codetocache[] = '<a href="$3" target="_new">$3</a>';
else

                        $codetocache[] = ' <object id=RVOCX width=\\1 classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="200" width="320">
<param name="CONSOLE" value="MOVIE1">
<param name="controls" value="ImageWindow">
<param name="autostart" value="false">
<param name="src" value="$3"?embed">
<embed height="200" src="$3"?embed" type="audio/x-pn-realaudio-plugin" width="320" controls="ImageWindow" autostart="false" id="RVOCX">
</object>
<object id=RVOCX classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="32" width="320">
<param name="CONSOLE" value="MOVIE1">
<param name="controls" value="controlpanel">
<param name="autostart" value="false">
<param name="src" value="$3"?embed">
<embed height="32" src="$3"?embed" type="audio/x-pn-realaudio-plugin" width="320" controls="controlPanel" autostart="false">
</object>';
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

babylonking

Quote from: LiL_J on January 25, 2005, 10:25:47 PM
the code above by 1948Pal only works for firefox.  i got this one working in ie but not on firefox
// Handle real.
$codefromcache[] = '/\[real=(.+?),(.+?)\](?:<br \/>)?(.+?)(?:<br \/>)?\[\/real\]/is';
if (empty($modSettings['enableEmbeddedreal']))
$codetocache[] = '<a href="$3" target="_new">$3</a>';
else

                        $codetocache[] = ' <object id=RVOCX width=\\1 classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="200" width="320">
<param name="CONSOLE" value="MOVIE1">
<param name="controls" value="ImageWindow">
<param name="autostart" value="false">
<param name="src" value="$3"?embed">
<embed height="200" src="$3"?embed" type="audio/x-pn-realaudio-plugin" width="320" controls="ImageWindow" autostart="false" id="RVOCX">
</object>
<object id=RVOCX classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="32" width="320">
<param name="CONSOLE" value="MOVIE1">
<param name="controls" value="controlpanel">
<param name="autostart" value="false">
<param name="src" value="$3"?embed">
<embed height="32" src="$3"?embed" type="audio/x-pn-realaudio-plugin" width="320" controls="controlPanel" autostart="false">
</object>';


Try the code below  8)

// Handle real.
$codefromcache[] = '/\[real=(.+?),(.+?)\](?:<br \/>)?(.+?)(?:<br \/>)?\[\/real\]/is';
if (empty($modSettings['enableEmbeddedreal']))
$codetocache[] = '<a href="$3" target="_new">$3</a>';
else

                        $codetocache[] = '<OBJECT ID=RVOCX width=\\1 CLASSID="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" WIDTH=256 HEIGHT=256>
<PARAM NAME="SRC" VALUE="$3">
<PARAM NAME="CONSOLE" VALUE="MOVIE1">
<PARAM NAME="CONTROLS" VALUE="ImageWindow">
<PARAM NAME="AUTOSTART" VALUE="TRUE"><PARAM NAME="CONSOLE" VALUE="MOVIE1">
<PARAM NAME="CONTROLS" VALUE="ControlPanel"></OBJECT><br /><OBJECT ID=RVOCX width=\\1 CLASSID="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" WIDTH="375" HEIGHT="100">
                  <PARAM NAME="CONSOLE" VALUE="MOVIE1">
                  <EMBED height="240" width="320" controls="ImageWindow,controlPanel" src="$3"?embed" type="audio/x-pn-realaudio-plugin" autostart="true">
                  </OBJECT>';

Pause

I haven't actually taken a look at the mod yet, but does it allow streaming to Winamp?
"You and me, inside that box, now." - The Doctor

Bite Fusion
Fusion Web Network
VG Fusion
Wrestling Fusion

JayBachatero

what do you mean streaming to winamp.  listten to live radio stations online?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Advertisement: