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
WORKING: MediaPortal 1.1.x, MPWebServices RC3, Windows 7
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="AcesHigh" data-source="post: 647610" data-attributes="member: 106378"><p>Hi all. First post. Just wanted to drop in, give some thanks and perhaps some tips that I managed to get from reading these forums over the last two years. I’m no programmer, but I love to “tinker” which is probably the same for a lot of us who use MediaPortal.</p><p></p><p>The main thing I use MediaPortal for is for watching TV with gemx’s TVClient - a BIG thank you to gemx for all your hard work. When we upgraded to MP v1.1.0 I was horrified that TVClient was no longer supported – instead we moved on to MPWebServices.</p><p></p><p>I just wanted to post a little “how to” which gives a bit more detail for those (like me) who aren’t totally familiar with all this stuff.</p><p></p><p><strong>System</strong></p><p>Windows 7 (32-bit) UAC enabled</p><p>Internet Explorer 8</p><p>MediaPortal v1.1.0 - 1.1.1 </p><p>MPWebServices RC3</p><p></p><p>After installing the msi you need to edit <strong>gentle.config</strong> (a text file) located in</p><p>C:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs</p><p></p><p>You need to edit the <strong><DefaultProvider/></strong> line specifying:</p><p><strong>Server=</strong> the IP address or computer name where your TVSever is running</p><p><strong>Database=</strong>MpTvDb</p><p><strong>User ID=</strong>root</p><p><strong>Password=</strong>MediaPortal</p><p>Above values are given by default MP installation. If you are unsure then cut and paste from gentle.config located at: C:\ProgramData\Team MediaPortal\MediaPortal</p><p></p><p>The line should look similar to this:</p><p></p><p>[CODE]<DefaultProvider name="MySQL" connectionString="Server=192.168.0.100;Database=MpTvDb;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=300;" />[/CODE]</p><p></p><p>Next, backup the folder: C:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin</p><p></p><p><strong>Replace the following DLL’s</strong> in the bin folder with the newer versions located in MediaPortal TVServer folder: C:\Program Files\Team MediaPortal\MediaPortal TV Server</p><p></p><p>Gentle.Common.dll</p><p>Gentle.Framework.dll</p><p>Gentle.Provider.MySQL.dll</p><p>Gentle.Provider.SQLServer.dll</p><p>MySql.Data.dll</p><p>TvControl.dll</p><p>TVDatabase.dll</p><p>TvLibrary.Interfaces.dll</p><p></p><p>I didn’t need to do the extra steps shown in <a href="https://forum.team-mediaportal.com/mpwebservices-463/working-mpwebservices-win2008r2-84746/" target="_blank">this post</a>.</p><p></p><p>Next, run MediaPortal <strong>TVServer Configuration</strong>. Go to Plugins and tick WebServices. Select the Webservices plugin that has now appeared on the left side. You can now configure the settings.</p><p></p><p>For testing just leave default settings including default user name and blank password. It is possible to login if you set a blank username and password, but for me it won’t stream to VLC (using .m3u playlist method), so don't use a blank user name for now. On further testing it appears that <strong>USERNAME must be at least two characters long.</strong></p><p></p><p><strong>To get TV logos to appear</strong>, the Streaming URL must be in the same format as the one you will use to login. If you login using this format: <a href="http://192.168.0.100:8080" target="_blank">http://192.168.0.100:8080</a>, then Streaming URL must be syntactically the same. Alternatively if you login using this format: <a href="http://PC-NAME:8080" target="_blank">http://PC-NAME:8080</a>, then use this syntax for Streaming URL. It can find png files but not jpg’s.</p><p></p><p>Important to <strong>restart the TV Service </strong>after you’ve made changes to the configuration.</p><p></p><p>Use <strong>Resource Monitor </strong>(from Task Manager) to look at Listening Ports located at the bottom of the Network tab. You should see TvService.exe listening to port 8080 and firewall status should say “allowed…”. Make sure you are looking at PORT, not PID numbers – they look similar.</p><p></p><p><strong>Try to connect</strong> using the browser (eg. my server IP is 192.168.0.100, computer name is “PC-NAME”)</p><p><a href="http://192.168.0.100:8080" target="_blank">http://192.168.0.100:8080</a> <- this works best (fast)</p><p><a href="http://PC-NAME:8080" target="_blank">http://PC-NAME:8080</a> <- also works (but few seconds lag)</p><p>192.168.0.100:8080 <- this does not work (lazy ppl like me who don't want to type http etc.) <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>PC-NAME:8080 <- and this does not work</p><p></p><p><strong>To get Streaming working,</strong> most of the settings are explained in the Helpfile (button at top right). To give you a bit more detail…</p><p></p><p><strong>Player installed on client </strong>has two disadvantages:</p><p>1. the bat file fires up an ugly DOS box and the box stays open unless you close it or vlc.</p><p>2. the path to “client streaming player” must be exactly the same for each client, so if it is set to C:\vlc.exe in the server config then it won’t work if your local copy on the client is at D:\vlc.exe for example.</p><p></p><p><strong>VLC Browser Plugin </strong>- I haven’t used it but reading the helpfile it looks like VLC plays in a browser window similar to Youtube. If this is for you, then you need to have the VLC plugin installed on the client.</p><p></p><p><strong>.m3u playlist</strong> – I don’t personally use playlists for anything so I’m happy to associate .m3u with VLC. On most systems m3u would normally be associated with Windows Media Player by default (I suppose for Windows "N" m3u is not associated with anything by default). As WMP is not good for streaming, if you want to use this method, you need to associate m3u with VLC. There are two ways that I’ve done this:</p><p></p><p><strong>Method 1</strong>. Search for *.m3u on your system. I found that some got installed with MediaPortal at: C:\ProgramData\Team MediaPortal\MediaPortal TV Server\TuningParameters\dvbip</p><p>Select one of those and “Open With” then “Choose default program” find VLC and tick “Always use the selected program”</p><p></p><p><strong>Method 2.</strong> If you can’t find any m3u files then you can generate one using the streamer itself. Start a stream in the web client, when the box comes up select “Save”, remember where you saved it, then follow the above steps to associate m3u with VLC.</p><p></p><p>Once you have it working, then maybe try a <a href="https://forum.team-mediaportal.com/mpwebservices-463/new-mediaportal-webservices-gui-released-79399/" target="_blank">prettier skin</a>.</p><p></p><p>Hope this helps some people. I really don’t know much more than what I’ve written here so I probably won’t be much help if you have any problems. Once again <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> to gemx!</p><p></p><p><strong>EDIT</strong> Just tested on MP v1.1.1. I had some problems with the MP upgrade - got <a href="https://forum.team-mediaportal.com/installation-configuration-support-53/1-1-1-tvplugin-87444/" target="_blank">outdated TVPlugin error</a>. After I got that sorted I had to reinstall MPWebservices using the above procedure and it worked. Note, I had to <strong>reboot</strong> so Windows firewall would open port 8080 again.</p></blockquote><p></p>
[QUOTE="AcesHigh, post: 647610, member: 106378"] Hi all. First post. Just wanted to drop in, give some thanks and perhaps some tips that I managed to get from reading these forums over the last two years. I’m no programmer, but I love to “tinker” which is probably the same for a lot of us who use MediaPortal. The main thing I use MediaPortal for is for watching TV with gemx’s TVClient - a BIG thank you to gemx for all your hard work. When we upgraded to MP v1.1.0 I was horrified that TVClient was no longer supported – instead we moved on to MPWebServices. I just wanted to post a little “how to” which gives a bit more detail for those (like me) who aren’t totally familiar with all this stuff. [B]System[/B] Windows 7 (32-bit) UAC enabled Internet Explorer 8 MediaPortal v1.1.0 - 1.1.1 MPWebServices RC3 After installing the msi you need to edit [B]gentle.config[/B] (a text file) located in C:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs You need to edit the [B]<DefaultProvider/>[/B] line specifying: [B]Server=[/B] the IP address or computer name where your TVSever is running [B]Database=[/B]MpTvDb [B]User ID=[/B]root [B]Password=[/B]MediaPortal Above values are given by default MP installation. If you are unsure then cut and paste from gentle.config located at: C:\ProgramData\Team MediaPortal\MediaPortal The line should look similar to this: [CODE]<DefaultProvider name="MySQL" connectionString="Server=192.168.0.100;Database=MpTvDb;User ID=root;Password=MediaPortal;charset=utf8;Connection Timeout=300;" />[/CODE] Next, backup the folder: C:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\bin [B]Replace the following DLL’s[/B] in the bin folder with the newer versions located in MediaPortal TVServer folder: C:\Program Files\Team MediaPortal\MediaPortal TV Server Gentle.Common.dll Gentle.Framework.dll Gentle.Provider.MySQL.dll Gentle.Provider.SQLServer.dll MySql.Data.dll TvControl.dll TVDatabase.dll TvLibrary.Interfaces.dll I didn’t need to do the extra steps shown in [URL="https://forum.team-mediaportal.com/mpwebservices-463/working-mpwebservices-win2008r2-84746/"]this post[/URL]. Next, run MediaPortal [B]TVServer Configuration[/B]. Go to Plugins and tick WebServices. Select the Webservices plugin that has now appeared on the left side. You can now configure the settings. For testing just leave default settings including default user name and blank password. It is possible to login if you set a blank username and password, but for me it won’t stream to VLC (using .m3u playlist method), so don't use a blank user name for now. On further testing it appears that [B]USERNAME must be at least two characters long.[/B] [B]To get TV logos to appear[/B], the Streaming URL must be in the same format as the one you will use to login. If you login using this format: [url]http://192.168.0.100:8080[/url], then Streaming URL must be syntactically the same. Alternatively if you login using this format: [url]http://PC-NAME:8080[/url], then use this syntax for Streaming URL. It can find png files but not jpg’s. Important to [B]restart the TV Service [/B]after you’ve made changes to the configuration. Use [B]Resource Monitor [/B](from Task Manager) to look at Listening Ports located at the bottom of the Network tab. You should see TvService.exe listening to port 8080 and firewall status should say “allowed…”. Make sure you are looking at PORT, not PID numbers – they look similar. [B]Try to connect[/B] using the browser (eg. my server IP is 192.168.0.100, computer name is “PC-NAME”) [url]http://192.168.0.100:8080[/url] <- this works best (fast) [url]http://PC-NAME:8080[/url] <- also works (but few seconds lag) 192.168.0.100:8080 <- this does not work (lazy ppl like me who don't want to type http etc.) :) PC-NAME:8080 <- and this does not work [B]To get Streaming working,[/B] most of the settings are explained in the Helpfile (button at top right). To give you a bit more detail… [B]Player installed on client [/B]has two disadvantages: 1. the bat file fires up an ugly DOS box and the box stays open unless you close it or vlc. 2. the path to “client streaming player” must be exactly the same for each client, so if it is set to C:\vlc.exe in the server config then it won’t work if your local copy on the client is at D:\vlc.exe for example. [B]VLC Browser Plugin [/B]- I haven’t used it but reading the helpfile it looks like VLC plays in a browser window similar to Youtube. If this is for you, then you need to have the VLC plugin installed on the client. [B].m3u playlist[/B] – I don’t personally use playlists for anything so I’m happy to associate .m3u with VLC. On most systems m3u would normally be associated with Windows Media Player by default (I suppose for Windows "N" m3u is not associated with anything by default). As WMP is not good for streaming, if you want to use this method, you need to associate m3u with VLC. There are two ways that I’ve done this: [B]Method 1[/B]. Search for *.m3u on your system. I found that some got installed with MediaPortal at: C:\ProgramData\Team MediaPortal\MediaPortal TV Server\TuningParameters\dvbip Select one of those and “Open With” then “Choose default program” find VLC and tick “Always use the selected program” [B]Method 2.[/B] If you can’t find any m3u files then you can generate one using the streamer itself. Start a stream in the web client, when the box comes up select “Save”, remember where you saved it, then follow the above steps to associate m3u with VLC. Once you have it working, then maybe try a [URL="https://forum.team-mediaportal.com/mpwebservices-463/new-mediaportal-webservices-gui-released-79399/"]prettier skin[/URL]. Hope this helps some people. I really don’t know much more than what I’ve written here so I probably won’t be much help if you have any problems. Once again :thx: to gemx! [B]EDIT[/B] Just tested on MP v1.1.1. I had some problems with the MP upgrade - got [URL="https://forum.team-mediaportal.com/installation-configuration-support-53/1-1-1-tvplugin-87444/"]outdated TVPlugin error[/URL]. After I got that sorted I had to reinstall MPWebservices using the above procedure and it worked. Note, I had to [B]reboot[/B] so Windows firewall would open port 8080 again. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
Graveyard
MPWebServices
WORKING: MediaPortal 1.1.x, MPWebServices RC3, Windows 7
Contact us
RSS
Top
Bottom