News:

Wondering if this will always be free?  See why free is better.

Main Menu

Streaming 3

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

Previous topic - Next topic

Anihc

Sweet thanks for the fast response on that fix. :)
It was not a big deal that it was misplaced, I am just glad I could get it working as I am testing this on my new build website prior to updating my current site to work out what functions with 1.1b3 and what does not.

I am in it for the package manager safe mod bypass! :) saves tons of mod time using that when safe mod is on hehe.

chadness

Quote from: 1948Pal on August 10, 2005, 01:08:38 PM
Try changing the "autostart=false" to "autostart=true"  in Subs.php for both of those.
No luck.  I'll keep playing with it and let you know what I figure out as well.

chadness

Fixed it!  Needed to close the object tag.  Put a </OBJECT> at the end of the IE section for those two lines, and it worked.  There was already one in there for the Real line.

1948Pal

 That good, but there was a </object> at the end, did you move that to end of the first section of the line, where the   >' : '<  are? Or just added a new close tag?
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

chadness

I added a new one in the section you indicated.

To clarify, I changed these two lines:
'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>'


'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/" />'


To this:
'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>'


'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/" />'


(Please note to anyone else reading this - these two lines aren't next to each other in the code).

1948Pal

Ok I see. I'll update the mode, bu first I need to figure out a new issue I discovored in Windows media streaming; if you try to change the volume level, the image disappears. I'll see if I can find a fix.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

chadness

#86
I didn't run in to that issue.  I just tested - I can adjust volume on a playing .asf file just fine.  That's all I have uploaded so far.

Also, I noticed that you were using <embed> elements, which don't validate as good xhtml.  I tried experimenting with it (just the non-IE half so far, since that is what is tested on the w3c page) and found this change to the quicktime line makes it validate OK and still seems to work.
'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>' : '<object type="video/quicktime" data="$1" width="320" height="255"> <param name="autoplay" value="false" /> <param name="controller" value="true" /> <param name="pluginspage" value="http://www.apple.com/quicktime/download/" /></object>'

komakoma

Quote from: 1948Pal on August 10, 2005, 11:23:51 AM
komakoma, mms and http are different protocols, this mod is set to use the http protocol. If you want to change this behavior, in Sources/Subs.post.php, find

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

and change the 'protocol' => 'http' to 'protocol' => 'mms'.
This should do what you want, giving that the source does support that protocol.

thank you very much , btw is it possible to let http and mms works ?
i mean when the media link is hxxp:www.abc.com/123.wmv [nonactive] or mms://www.abc.com/123.wmv
both works ? or either one can works only ?

1948Pal

in your Sources/Subs.post.php find that same line

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


replace with

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


see if that works for you.
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

Jazhawk

This works great!  Thanx for coding this one.

-Jazhawk

komakoma

Quote from: 1948Pal on August 11, 2005, 05:49:30 PM
in your Sources/Subs.post.php find that same line

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


replace with

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


see if that works for you.

thanks it works

Celtland

I just installed 4.1 onto my 1.1B3 forums.  Any/all posts (and the rest of the page, also) that appear after a post with a sound file in it are cut off.  All help is greatly appreciated.
Is maith an scáthán súil carad.

A friends eye is a good mirror.

Anihc

Ok harumph! Well I knew that it cut off the bottom of the page but I never tested the replies and mine is doing the same thing.

That's not good :( I can understand the rest of the page bottom because of the way some mods are written they are supposed to do that but perhaps a topic type mod shouldn't since now nobody can respond regaurding the video image.

Image shack mod does not do this and using direct url images does not do this either.

Hopefully this can be fixed.

Anihc

Ray™

Mine did the same thing -- had to modify the theme I was using
here is a link that is working- I think

http://www.rranderson.com/dvd/index.php?topic=95.0
arcade-Only (over 800 Games)
http://www.arcade-only.com
Hand Made Ceramics
http://cbr.rranderson.com

Anihc

What did you modify to get it to work then?

Anihc

Ray™

#95
If i remember right I moved the display.template.php out of the theme I was using and only use the display.template.php in the default folder. I also moved Boardindex.template.php out also.

:I'm using
Powered by SMF 1.1 Beta 3 Public.
© 2001-2005, Lewis Media. All Rights Reserved.
TechHead / TinyPortal v.0.7.2b by Bloc

Note: I'm trying to remember what if any I modify an can not remember what I did for sure but I'll keep looking and  post back If I remember -- sorry :(
arcade-Only (over 800 Games)
http://www.arcade-only.com
Hand Made Ceramics
http://cbr.rranderson.com

1948Pal

#96
Hello all.
Please uninstall version 4.1, remove mod from server, then download new version 4.2 and install. This should fix the cutting off of posts, thanks to chadness for reporting this. Also added mms protocol support for windows media player. Thanks komakoma for bringing that to my attention.
You can download the mod at SMF mod site here
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

Ray™

#97
Installed ok -- seems to work ok -- thanks
arcade-Only (over 800 Games)
http://www.arcade-only.com
Hand Made Ceramics
http://cbr.rranderson.com

scrawl

#98
is there any way to make it only for audio? and is this compatible with 1.0.5?

thanks top sounding mod

1948Pal

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

Advertisement: