home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
WebService and Mobile Access
Graveyard
MPWebServices
Bugreports
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="feizex" data-source="post: 675534" data-attributes="member: 96644"><p>I'm using Win7 x64 and have 4GB RAM. This is the issue. 4GB is too large for a signed INT. Change to unsigned as follows...</p><p></p><p>EDIT:</p><p>C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs</p><p></p><p>Change Int to UInt...</p><p>[CODE] private void RefreshServerInfo(List<string> recPaths)</p><p> {</p><p> string manufacturer = "";</p><p> string model = "";</p><p> string computername = "";</p><p>[B] uint totalPhysicalMem = 0;[/B]</p><p></p><p> ManagementObjectSearcher query = new ManagementObjectSearcher("SELECT model,manufacturer,name,totalPhysicalMemory FROM Win32_ComputerSystem");</p><p> ManagementObjectCollection queryCollection = query.Get();</p><p> foreach (ManagementObject mo in queryCollection)</p><p> {</p><p> model = mo["model"].ToString();</p><p> manufacturer = mo["manufacturer"].ToString();</p><p> computername = mo["name"].ToString();</p><p>[B] totalPhysicalMem = Convert.ToUInt32(mo["totalphysicalmemory"]);[/B]</p><p> totalPhysicalMem = (totalPhysicalMem / 1024) / 1024;</p><p> }[/CODE]</p><p></p><p>==========================================================================================</p><p></p><p>HOW TO INSTALL?</p><p></p><p>I fumbled my way through installing this Plugin. It wouldn't hurt to have a readme.txt</p><p></p><p>Here's some instructions for other novices like me...</p><p></p><p>RUN MPWebServices_RC3.msi to install.</p><p></p><p>dump the following into a bat file and run (updates webservice DLLs from your MP DLLs). This assumes you're running Win7 x64</p><p>[CODE]</p><p>copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Gentle.Common.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"</p><p>copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Gentle.Framework.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"</p><p>copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Gentle.Provider.MySQL.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"</p><p>copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Gentle.Provider.SQLServer.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"</p><p>copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\MySql.Data.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"</p><p>copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\TvControl.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"</p><p>copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\TVDatabase.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"</p><p>copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\TvLibrary.Interfaces.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"</p><p>copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\DirectShowLib.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin"</p><p>pause</p><p>[/CODE]</p><p></p><p>EDIT: C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\config.xml</p><p>FIND LINE:</p><p><config httpport="8080" thumbwidth="70" thumbheight="70" clientplayerpath="c:\program files\Videolan\VLC\vlc.exe" playertype="2" streamurl="http://mycomputername:8080" username="admin" password="admin" scraper_url="http://www.imdb.com/find?s=all&amp;q={0}" /></p><p>CHANGE:</p><p>set http port (eg. 8080) and stream URL (eg. <a href="http://mycomputername:8080" target="_blank">http://mycomputername:8080</a>) and scraper_url to imdb.com (assuming you don't read German)</p><p></p><p>EDIT: C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\gentle.config</p><p>FIND LINE:</p><p><DefaultProvider name="MySQL" connectionString="Server=localhost;Database=MPtvDB;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=300;" /></p><p>CHANGE:</p><p>These are the defaults for MP but you have to enter them.</p><p></p><p>EDIT:</p><p>C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs</p><p></p><p>FIND:</p><p>int totalPhysicalMem = 0;</p><p>CHANGE TO:</p><p>uint totalPhysicalMem = 0;</p><p></p><p>FIND:</p><p>totalPhysicalMem = Convert.ToInt32(mo["totalphysicalmemory"]);</p><p>CHANGE TO:</p><p>totalPhysicalMem = Convert.ToUInt32(mo["totalphysicalmemory"]);</p><p></p><p></p><p>Open TVserver configuration</p><p>under PLUGINS tick MediaPortal WebSevices</p><p>OK</p><p></p><p>Open Browser and go to <a href="http://mycomputername:8080" target="_blank">http://mycomputername:8080</a></p><p>login: admin admin (this can be edited in config.xml line above)</p></blockquote><p></p>
[QUOTE="feizex, post: 675534, member: 96644"] I'm using Win7 x64 and have 4GB RAM. This is the issue. 4GB is too large for a signed INT. Change to unsigned as follows... EDIT: C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs Change Int to UInt... [CODE] private void RefreshServerInfo(List<string> recPaths) { string manufacturer = ""; string model = ""; string computername = ""; [B] uint totalPhysicalMem = 0;[/B] ManagementObjectSearcher query = new ManagementObjectSearcher("SELECT model,manufacturer,name,totalPhysicalMemory FROM Win32_ComputerSystem"); ManagementObjectCollection queryCollection = query.Get(); foreach (ManagementObject mo in queryCollection) { model = mo["model"].ToString(); manufacturer = mo["manufacturer"].ToString(); computername = mo["name"].ToString(); [B] totalPhysicalMem = Convert.ToUInt32(mo["totalphysicalmemory"]);[/B] totalPhysicalMem = (totalPhysicalMem / 1024) / 1024; }[/CODE] ========================================================================================== HOW TO INSTALL? I fumbled my way through installing this Plugin. It wouldn't hurt to have a readme.txt Here's some instructions for other novices like me... RUN MPWebServices_RC3.msi to install. dump the following into a bat file and run (updates webservice DLLs from your MP DLLs). This assumes you're running Win7 x64 [CODE] copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Gentle.Common.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin" copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Gentle.Framework.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin" copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Gentle.Provider.MySQL.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin" copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\Gentle.Provider.SQLServer.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin" copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\MySql.Data.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin" copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\TvControl.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin" copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\TVDatabase.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin" copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\TvLibrary.Interfaces.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin" copy /y "C:\Program Files (x86)\Team MediaPortal\MediaPortal\DirectShowLib.dll" "C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin" pause [/CODE] EDIT: C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\config.xml FIND LINE: <config httpport="8080" thumbwidth="70" thumbheight="70" clientplayerpath="c:\program files\Videolan\VLC\vlc.exe" playertype="2" streamurl="http://mycomputername:8080" username="admin" password="admin" scraper_url="http://www.imdb.com/find?s=all&q={0}" /> CHANGE: set http port (eg. 8080) and stream URL (eg. [url]http://mycomputername:8080[/url]) and scraper_url to imdb.com (assuming you don't read German) EDIT: C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\gentle.config FIND LINE: <DefaultProvider name="MySQL" connectionString="Server=localhost;Database=MPtvDB;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=300;" /> CHANGE: These are the defaults for MP but you have to enter them. EDIT: C:\Program Files (x86)\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\TvServerStatus.aspx.cs FIND: int totalPhysicalMem = 0; CHANGE TO: uint totalPhysicalMem = 0; FIND: totalPhysicalMem = Convert.ToInt32(mo["totalphysicalmemory"]); CHANGE TO: totalPhysicalMem = Convert.ToUInt32(mo["totalphysicalmemory"]); Open TVserver configuration under PLUGINS tick MediaPortal WebSevices OK Open Browser and go to [url]http://mycomputername:8080[/url] login: admin admin (this can be edited in config.xml line above) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
Graveyard
MPWebServices
Bugreports
Contact us
RSS
Top
Bottom