• Welcome to TodayPlus Boards v2.
 

News:

No news is good news.

Main Menu

Recent posts

#41
SPGM-Vid / Re: how to play divX converted...
Last post by jhollin1138 - October 11, 2007, 12:41:24 PM
I haven't tried everything myself yet, but this should work.  If you want AVI files to default to play to DivX and not Windows Media Player, do the following.

Open "spgm-vid.php" and find this: // Windows Media Player
} elseif ( ($arrVideoDim[2] == 'asf' or $arrVideoDim[2] == 'riff') ) {
print '          <object id="MediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 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" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+64).'">'."\n";
print '            <param name="url" value="'.$strVideoURL.'" />'."\n";
print '            <param name="AutoStart" value="true" />'."\n";
print '            <param name="EnableTracker" value="false" />'."\n";
print '            <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="'.$strVideoURL.'" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+44).'" autostart="1" showcontrols="1">'."\n";
print '            </embed> '."\n";
print '          </object>'."\n";

Replace it with this: // Windows Media Player
} elseif ( $arrVideoDim[2] == 'asf' ) {
print '          <object id="MediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 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" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+64).'">'."\n";
print '            <param name="url" value="'.$strVideoURL.'" />'."\n";
print '            <param name="AutoStart" value="true" />'."\n";
print '            <param name="EnableTracker" value="false" />'."\n";
print '            <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="'.$strVideoURL.'" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+44).'" autostart="1" showcontrols="1">'."\n";
print '            </embed> '."\n";
print '          </object>'."\n";

// DiVX
} elseif ( $arrVideoDim[2] == 'riff' ) {
print '          <object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+20).'" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">'."\n";
print '            <param name="src" value="'.$strVideoURL.'" />'."\n";
print '            <param name="custommode" value="Stage6" />'."\n";
print '            <param name="autoPlay" value="false" />'."\n";
print '            <embed type="video/divx " src="'.$strVideoURL.'" custommode="Stage6" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+20).'" autoplay="false" pluginspage="http://go.divx.com/plugin/download/">'."\n";
print '            </embed>'."\n";
print '          </object>'."\n";


There is additional code to change to fully support DivX.  For example the default thumbnail and a link to the DivX player (replace the WMP icon with a DivX icon) but this should at least get you going on the video side.
#42
SPGM-Vid / how to play divX converted *.A...
Last post by tikko - October 10, 2007, 07:38:23 AM
Hello Community :)
at first kudos to the maker(s) of SPGM-Vid! A great AddOn!

I try to integrate the divx player for my divx avis but i am still at a loss.
So far i modified the spgm-vid.php as follows:




//The Object & Embed Tag for the Video Clip

if ( $arrVideoDim[2] == 'real' ) {
print '          <table class="'.CLASS_TABLE_SHADOWS.'">'."\n";

(.....)


// DIVX Player
} elseif ( ($arrVideoDim[2] == 'avi' or $arrVideoDim[2] == 'dvx') ) {
print '          <object id="DIVXPlayer" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+64).'">'."\n";
        print '            <param name="src" value="'.$strVideoURL.'" />'."\n";
        print '            <param name="autoPlay" value="false" />'."\n";
print '            <embed type="video/divx" pluginspage="http://go.divx.com/plugin/download/" src="'.$strVideoURL.'" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+44).'" autoPlay="false">'."\n";
        print '            </embed> '."\n";
        print '          </object>'."\n";


// Shockwave Player
} elseif ( $arrVideoDim[2] == 'swf' ) {

(.....)




But it still does not work. Where is the bug, what i have to fix?
I think i have to go in for $arrVideoDim ...

Thanks a lot for help in advance!
#43
Developer's Corner Discussion / Re: Problems with tpfans.com -...
Last post by pgmnv - October 09, 2007, 08:01:36 AM
Hello all,

Does anyone have the problem resolved???
I still can't download the weather!

Cheers

Pedro Vicente

PS: I'm a bit limited in programation, but if there is anything I can do to help, just ask!!
#44
Developer's Corner Discussion / Re: Problems with tpfans.com -...
Last post by GJCV - September 19, 2007, 02:10:17 PM
UK_skinner,
I don't know if it's helpful but I have noted the following:
The HTML pages look very similar (and so is the structure of the HTML code) if you compare the following US versus NL pages

US
http://www.weather.com/weather/local/USMD0347.htm
is redirected to:
http://www.weather.com/outlook/travel/businesstraveler/local/USMD0347

NL
http://www.weather.com/weather/local/NLXX0028.htm
is redirected to:
http://www.weather.com/outlook/travel/businesstraveler/local/NLXX0028

How does the script actually extract the data from the weather.com? Does it first download the HTML, which then is processed? Or do you access the weather.com server in a different way?
Please let me know if there is a chance I could help somehow.

Regards, GJCV
#45
General / Re: Wrong citycode in uk_skinn...
Last post by GJCV - September 19, 2007, 01:25:56 PM

It's being investigated by UK_skinner.
See the following topic:
http://forums.jhollin1138.com/index.php?topic=2092.msg16043;topicseen#msg16043
#46
General / Wrong citycode in uk_skinner's...
Last post by mfigrs - September 18, 2007, 12:30:29 PM
Hello all,

I don't know if anybody experiences that, but I get a message "Wrong Citycode" all the time when I try to look-up weather for any city outside USA. When the city is in the USA - no problem. Just for you information - I tried it within USA, but also from France location, with the same result. Although all my system settings are for the USA.

I even tried the original uk_skinner's example link from http://forums.jhollin1138.com/index.php?topic=1786.0: http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=GMXX0039&SFDay=1&Language=GM

And it shows me the message: "Wrong Citycode"!  :wall:

Any ideas, guys?
#47
Developer's Corner Discussion / Re: Problems with tpfans.com -...
Last post by Morpheus - September 04, 2007, 06:15:10 PM
Quote from: uk_skinner on August 31, 2007, 03:15:58 PM
Broesel/Morpheus/nas/GJCV:


   Sorry, to response so late.  I will take a look over weekend.

Edit:  Weather.com uses different html code in USA and non-usa countries.  It will take some time to modify the codes. :wall:

Ok thanks for investigating.

Morpheus

P.S.

I don't know if it helps but Weather.com has a dedicated UK site: http://uk.weather.com/. I believe they also have a French and German site in terms of europe
#48
SPGM-Vid / Re: Pictures AND videos in ONE...
Last post by Tibo - September 01, 2007, 04:42:47 AM
The modified source code is available at : www.tanches-volantes.fr/download/spgm.rar
You may have to change things a bit to include it.
#49
Developer's Corner Discussion / Re: Problems with tpfans.com -...
Last post by uk_skinner - August 31, 2007, 03:15:58 PM
Broesel/Morpheus/nas/GJCV:


   Sorry, to response so late.  I will take a look over weekend.

Edit:  Weather.com uses different html code in USA and non-usa countries.  It will take some time to modify the codes. :wall:
#50
Developer's Corner Discussion / Re: Problems with tpfans.com -...
Last post by Morpheus - August 29, 2007, 12:01:16 PM
Same problem with UK cities, UKXX0104 and UKXX0018 which are Nottingham and Birmingham respectively.

Any ideas?

Morpheus