News:

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

Main Menu

Streaming 3

Started by 1948Pal, April 11, 2005, 03:40:00 PM

Previous topic - Next topic

1948Pal

Quote from: scrawl on August 21, 2005, 10:51:37 PM
is there any way to make it only for audio? and is this compatible with 1.0.5?

thanks top sounding mod
This mod, as it is, would work for audio only, just use urls that contain audio instead of video. And yes it should work with 1.0.5.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

scrawl

#101
Quote from: 1948Pal on August 22, 2005, 12:22:00 AM
Quote from: scrawl on August 21, 2005, 10:51:37 PM
is there any way to make it only for audio? and is this compatible with 1.0.5?

thanks top sounding mod
This mod, as it is, would work for audio only, just use urls that contain audio instead of video. And yes it should work with 1.0.5.

okay i was looking for a way to disable the video streaming but it's all good i've found a use for it. thanks heaps. top mod.


EDIT: i'm wondering how would i remove all but the stream button?
EDIT2: also if it's possible to play mp3's etc is there a way to make it work with soundclick?

thanks in advance for answering my questions.

EDIT3: thought i'd throw up the tweaked icons i did in case someone else wants to use them they just look a bit cleaner.

http://www.geocities.com/iris_infusion/icons.zip

tentronik

#102
When i try installing the mod v4.2 i get a
Quote421 I can't accept more than 4 connections as the same user
?
No error log and i installed other mods without this problem, also i had to type in my ftp data and miss typed 2 or 3 times my passowrd ;P!

1948Pal

Quote from: scrawl on August 22, 2005, 02:14:12 AM

EDIT: i'm wondering how would i remove all but the stream button?
In your admin panel-forum-posts and topics-bulletin board code settings, uncheck the desired bbc. Also you can disable the streams in admin panel-features and options-layout and options, untick the ones you want to disable.
Quote
EDIT2: also if it's possible to play mp3's etc is there a way to make it work with soundclick?
Soundclick have their own player, I couldn't locate any code to embed. Also, it seems you must be a member with a user id and have links to songs on their website. But it looks like it should work with windows media player or flash, after all it is but mp3 files with animations.

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

Anihc

I can't un-install 4.1 for some reason probable safe mode even though I have 1.1b3 and it is supposed to be safe mode ready now. :( I can un-install it manually but it would be easier to maybe just make the changes that would take 4.1 to 4.2 if you could supply that info. If it is too much trouble I will just un-install it manually I am just hopeing the changes are small enough I could just do that because I am assuming that might take less time than a manual un-install. But that is just an assumption.

Let me know,
Anihc :)

1948Pal

#105
Sorry to hear you can't un-install it, what files does it fail on? Did you perhaps install other mods after this one? Because that could do it
Anyways, here are the changes.

In Sources/Subs.php, find the section for stream, and find this line

'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<OBJECT id="mediaPlayer" width="320" height="285" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" /><param name="fileName" value="$1" /><param name="animationatStart" value="true" /><param name="transparentatStart" value="true" /><param name="autoStart" value="false" /><param name="showControls" value="true" /><param name="loop" value="false">' : '<EMBED type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" id="mediaPlayer" name="mediaPlayer" displaysize="4" autosize="-1" bgcolor="darkblue" showcontrols="true" showtracker="-1" showdisplay="0" showstatusbar="-1" videoborder3d="-1" width="320" height="285" src="$1" autostart="false" designtimesp="5311" loop="false"></EMBED></OBJECT>'
and replace with
[code]
'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<OBJECT id="mediaPlayer" width="320" height="285" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" /><param name="fileName" value="$1" /><param name="animationatStart" value="true" /><param name="transparentatStart" value="true" /><param name="autoStart" value="false" /><param name="showControls" value="true" /><param name="loop" value="false"></OBJECT>' : '<EMBED type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" id="mediaPlayer" name="mediaPlayer" displaysize="4" autosize="-1" bgcolor="darkblue" showcontrols="true" showtracker="-1" showdisplay="0" showstatusbar="-1" videoborder3d="-1" width="320" height="285" src="$1" autostart="false" designtimesp="5311" loop="false"></EMBED></OBJECT>'

And under the quicktime section find this code


'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="255" codebase="http://www.apple.com/qtactivex/qtplugin.cab" /><param name="src" value="$1" /><param name="autoplay" value="false" /><param name="controller" value="true" /><param name="loop" value="false" /><EMBED src="$1" width="320" height="255" autoplay="false" controller="true" loop="false" pluginspage="http://www.apple.com/quicktime/download/" /></EMBED>' : '<embed src="$1" type="video/quicktime" width="320" height="255" autoplay="false" controller="true" pluginspage="http://www.apple.com/quicktime/download/" />'


and replace it with this

'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="255" codebase="http://www.apple.com/qtactivex/qtplugin.cab" /><param name="src" value="$1" /><param name="autoplay" value="false" /><param name="controller" value="true" /><param name="loop" value="false" /><EMBED src="$1" width="320" height="255" autoplay="false" controller="true" loop="false" pluginspage="http://www.apple.com/quicktime/download/" /></EMBED></OBJECT>' : '<embed src="$1" type="video/quicktime" width="320" height="255" autoplay="false" controller="true" pluginspage="http://www.apple.com/quicktime/download/" />'



And in Sources/Subs.post.php, find

array('tag' => 'stream', 'protocol' => 'http', 'embeddedUrl' => false, 'hasEqualSign' => false, 'hasExtra' => true),

And raplce with

array('tag' => 'stream', 'protocol' => array('http', 'mms', 'embeddedUrl' => false, 'hasEqualSign' => false, 'hasExtra' => true)),

this should cover the modifications that are included in 4.2.[/code]
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

Celtland

Thanks for making this update.  :)  I'm still having problems with any post after one with a stream tag getting cut off (the rest of the page).
Is maith an scáthán súil carad.

A friends eye is a good mirror.

Anihc

Thanks for the changes I will try them out tonight.

As far as failing, it does not "appear" to fail at all. The un-install goes through without any errors but it does not actually change anything. I think even the images remain. It is hard to tell did or did not get removed.  It has to be a safe mode issue somehow. Package installer works but not 100%, for me anyway. 14 out of 16 mods installed just fine and several have had to be manually un-installed when I was trying to upgrade them. Arcade and the chat mod are the two that required manual installation.

Hopefully all will go well changing this with the code you gave me :)I think it will be ok anyway. If not I will let you know.

Thanks again,
Anihc

1948Pal

Please note that I just edited my post on top of this page, it seems that I messed up when posting it, but now it is fixed and should take care of the disappearing messages after the stream. So please go over those modifications.
SORRY about the mess.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

Celtland

Thanks again.  I will try these as soon as I can.  Do I install version 4.2 - then make sure the coding changes in your above post took effect?
Is maith an scáthán súil carad.

A friends eye is a good mirror.

Anihc

Thanks for the help,

I ended up needing to re-install my beta update again because it seemed that this mod was installed more than once and the code was in the files more than once lol. It became easier for me to just do that instead of trying to find all the triplicates to erase them.

I am working on getting safe mode removed/fixed somehow. Hopefully I won't have this problem in the future.

Iluvar

I have downloaded the 4.2 version and when I tried to install I got a permission error. The problem wasn't in wrong permissions but in package_info.xml. Readme tags weren't closed, and when I closed them installation was succesfull.
Also I noted that the modification file set is stream-3_1.mod, and in the package there are also stream-4.1.mod and stream-4.2.mod. Since I'm new to SMF could someone tell me what's up with that.  ???
Some people have a signature here !!

1948Pal

Quote from: Anihc on August 24, 2005, 02:20:25 PM
Thanks for the help,

I ended up needing to re-install my beta update again because it seemed that this mod was installed more than once and the code was in the files more than once lol. It became easier for me to just do that instead of trying to find all the triplicates to erase them.

I am working on getting safe mode removed/fixed somehow. Hopefully I won't have this problem in the future.
Well, it is always better to find out what files a certain mod will change or add code to, and back them up or make copies before you apply the mod. This way you just rstore the few files instead of the whole forum. Sorry you had trouble.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

1948Pal

#113
Quote from: Iluvar on August 25, 2005, 06:26:12 AM
I have downloaded the 4.2 version and when I tried to install I got a permission error. The problem wasn't in wrong permissions but in package_info.xml. Readme tags weren't closed, and when I closed them installation was succesfull.
Oh man! What a mess this is turning out to be, sorry about that, I really should do this early in the night, not late :-[. Funny no one else noticed that or had mentioned it!!

QuoteAlso I noted that the modification file set is stream-3_1.mod, and in the package there are also stream-4.1.mod and stream-4.2.mod. Since I'm new to SMF could someone tell me what's up with that.  ???
The mod file should contain stream 3.1 (for SMF 1.0.4/1.0.5) and stream 4.1 for SMF 1.1B3P. The additional stream 4.mod was included in the zipped file by mistake(again)
Will try to change the archive ASAP.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

Elmacik

when i try to install, here what it says to me;

"the package is corrupt or not compatible with this version of SMF"

smf: 1.1 b3
streaming: 4.2
Home of Elmacik

Nitro

#115
i figured this out why it wasn't showing the SMF copyrights, however, the REAL player is not showing the 'play' button in any posts, the other formats (wmv, etc.) are fine. i have downloaded stream 4.2 i have smf 1.1.b3

would someone be so kind as to tell me how to fix this thing? thank you so much!!!!!

THIS MOD ROCKS!!!!!!!

This is what is happening:

As you can see there is no buttons to play, so i have to place a message to right click and 'play'



whatcha think?
MPF Rocks!!!

Nitro

Quote from: elmacik on September 02, 2005, 07:47:29 PM
when i try to install, here what it says to me;

"the package is corrupt or not compatible with this version of SMF"

smf: 1.1 b3
streaming: 4.2

i had to install this manually, maybe you'd have to do the same. mine was working fine until i used this new 4.2
MPF Rocks!!!

mrandall131

I installed this and thought everything was fine.  When I checked the error log, I was getting the following errors:

Quote8: Undefined index: embeddedUrl
File: /www/n/northeastatv/htdocs/forum/Sources/Subs-Post.php
Line: 305

and

Quote8: Undefined index: hasEqualSign
File: /www/n/northeastatv/htdocs/forum/Sources/Subs-Post.php
Line: 305

Here is the code around 305:

Quote// Fix each type of tag.
   foreach ($fixArray as $param)
      fixTag($message, $param['tag'], $param['protocol'], $param['embeddedUrl'], $param['hasEqualSign'], !empty($param['hasExtra']));

   // Now fix possible security problems with images loading links automatically...
   $message = preg_replace('~(\[img.*?\]http://)(.+?)\[/img\]~eis', '\'$1\' . preg_replace(\'~action(=|%3d)(?!dlattach)~i\', \'action-\', \'$2\') . \'[/img]\'', $message);

Make any sense to you?


1948Pal

#118
elmacik, I'll upload a new file with small bug fixes later today. Please try that when you get a chance.


NitroRich, can you post the part in Subs.php that contains the code for "real media"? I'll see if I can spot something different, sisnce you did the install by hand, maybe, and I say maybe there is something missing or such.


mrandall131, can you post lines 290 to 301 in Subs.post.php?
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

Nitro

Quote from: 1948Pal on September 07, 2005, 03:21:01 PM
....NitroRich, can you post the part in Subs.php that contains the code for "real media"? I'll see if I can spot something different, sisnce you did the install by hand, maybe, and I say maybe there is something missing or such.
sure...



here's the first part in sources/subs.php
if (empty($modSettings['enableEmbeddedStream']))
$disabled['stream'] = true;

if (empty($modSettings['enableEmbeddedReal']))
$disabled['real'] = true;

if (empty($modSettings['enableEmbeddedQuick']))
$disabled['quick'] = true;


second part:
'tag' => 'stream',
'type' => 'unparsed_commas_content',
'test' => '.+?,.+?]',
'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<OBJECT id="mediaPlayer" width="320" height="285" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" /><param name="fileName" value="$1" /><param name="animationatStart" value="true" /><param name="transparentatStart" value="true" /><param name="autoStart" value="false" /><param name="showControls" value="true" /><param name="loop" value="false" /></Object>' : '<OBJECT><EMBED type="application/x-mplayer2" pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" id="mediaPlayer" name="mediaPlayer" displaysize="4" autosize="-1" showcontrols="true" showtracker="-1" showdisplay="0" showstatusbar="-1" videoborder3d="-1" width="320" height="285" src="$1" autostart="false" /></EMBED></OBJECT>'
), 
'validate' => '
if (isset($disabled[\'url\']))
{
$data[0] = \'$1\';
}',
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),
array(
'tag' => 'real',
'type' => 'unparsed_commas_content',
'test' => '.+?,.+?]',
'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<OBJECT ID=RVOCX width="320" CLASSID="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" WIDTH="256" HEIGHT="256" /><PARAM NAME="SRC" VALUE="$1" /><PARAM NAME="CONTROLS" VALUE="ImageWindow" /><PARAM NAME="AUTOSTART" VALUE="FALSE" /><PARAM NAME="CONTROLS" VALUE="ControlPanel" /></OBJECT><br />' : '<OBJECT ID=RVOCX width="320" CLASSID="clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" WIDTH="375" HEIGHT="100" /><EMBED height="240" width="320" controls="ImageWindow,controlPanel" src="$1" type="audio/x-pn-realaudio-plugin" autostart="false" /></OBJECT>'
),
'validate' => '
if (isset($disabled[\'url\']))
{
$data[0] = \'$1\';
}',
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),
array(
'tag' => 'quick',
'type' => 'unparsed_commas_content',
'test' => '\d+?,\d+?]',
'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="255" codebase="http://www.apple.com/qtactivex/qtplugin.cab" /><param name="src" value="$1" /><param name="autoplay" value="false" /><param name="controller" value="true" /><param name="loop" value="false" /><EMBED src="$1" width="320" height="255" autoplay="false" controller="true" loop="false" pluginspage="http://www.apple.com/quicktime/download/" /></EMBED></OBJECT>' : '<embed src="$1" type="video/quicktime" width="320" height="255" autoplay="false" controller="true" pluginspage="http://www.apple.com/quicktime/download/" />'
),
'validate' => '
if (isset($disabled[\'url\']))
{
$data[0] = \'$1\';
}',
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),
array(


'tag' => 'green',


this is the third part:
$disabled['stream'] = true;
$disabled['real'] = true;
$disabled['quick'] = true;


All these codes are in the sources/subs.php



i have doubled checked again and it looks exactly as it appears in the stream-4.2 mod file that came in the package, in fact, i have checked all the code in the package against what i have manually added.

Thank you so much man!!!
MPF Rocks!!!

Advertisement: