MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal Tools » MP TV Client


Reply
 
LinkBack (4) Thread Tools Display Modes
Old 2007-05-04, 12:56   #11 (permalink)
Portal Member
 
Join Date: Nov 2006
Location: Espoo
Age: 41
Posts: 39
Thanks: 1
Thanked 0 Times in 0 Posts

Country:

My System

Default

Hi Strawberry,

Great, I'll try copying that DLL. Let's see if it solves my problem.

Are you sure about "Database=test"?
I checked MySQL database, and I think all MP data is in "TVServer" (if I remember the name correct, could be "TVService" or similar)
Nightflyer is offline   Reply With Quote
Old 2007-05-04, 13:19   #12 (permalink)
MP Donator
 
piranha's Avatar
 
Join Date: Sep 2005
Posts: 303
Thanks: 15
Thanked 8 Times in 8 Posts

My System

Default

The db is tvlibrary

Had the same problem - couldn't connect.
After I copied the DLL and used below entry everything works fine.

<DefaultProvider name="MySQL" connectionString="Server=192.168.1.104;Database=tv library;User ID=root;Password=pass" />
__________________
After all, computers crash, people die, relationships fall apart. The best we can do is breath and reboot.
piranha is online now   Reply With Quote
Old 2007-05-04, 21:28   #13 (permalink)
Portal Member
 
Join Date: Nov 2006
Location: Espoo
Age: 41
Posts: 39
Thanks: 1
Thanked 0 Times in 0 Posts

Country:

My System

Default

Great,
I got the MPTVClient connected with TVlibrary database.

But now I can't get VLC to show stream.
I tested on server, and it doesn't work there either. If I connect to stream with IP 127.0.0.1, it works. If I connect with 10.0.0.4 (server IP), I can't get connected. And so it won't work from clients either...
What is wrong in my configuration???
It seems to set stream to address 127.0.0.1 (found in "streaming server.Log"), but where does it get that setting??? Couldn't find in any config file or database.


Got it! WLAN connection isn't up yet when TVService starts. So that's why streaming server gets IP 127.0.0.1. I restarted TVService, and now I can connect to stream from clients!

Now I only have to figure out how to get TVService to wait for network connection get up (my USB-WLAN-dongle is pretty slow to initialize, it can take 10-15 sec to get connected)

MPTVClient rocks!
Now I can use my old and slow laptop to watch TV.

Thanks for your help piranha & starawberry!

Last edited by Nightflyer; 2007-05-04 at 22:22.
Nightflyer is offline   Reply With Quote
Old 2007-05-04, 22:36   #14 (permalink)
Portal Member
 
Join Date: Oct 2006
Posts: 393
Thanks: 2
Thanked 4 Times in 4 Posts


Default

I'm wondering why this client works across subnets when the main mp client doesn't? Any ideas?
allanp81 is online now   Reply With Quote
Old 2007-05-06, 11:24   #15 (permalink)
Portal Member
 
Join Date: Jan 2006
Posts: 39
Thanks: 3
Thanked 0 Times in 0 Posts


Default

Quote:
Originally Posted by Nightflyer View Post
Great,
I got the MPTVClient connected with TVlibrary database.

But now I can't get VLC to show stream.
I tested on server, and it doesn't work there either. If I connect to stream with IP 127.0.0.1, it works. If I connect with 10.0.0.4 (server IP), I can't get connected. And so it won't work from clients either...
What is wrong in my configuration???
It seems to set stream to address 127.0.0.1 (found in "streaming server.Log"), but where does it get that setting??? Couldn't find in any config file or database.


Got it! WLAN connection isn't up yet when TVService starts. So that's why streaming server gets IP 127.0.0.1. I restarted TVService, and now I can connect to stream from clients!

Now I only have to figure out how to get TVService to wait for network connection get up (my USB-WLAN-dongle is pretty slow to initialize, it can take 10-15 sec to get connected)

MPTVClient rocks!
Now I can use my old and slow laptop to watch TV.

Thanks for your help piranha & starawberry!
Just a little thought for your WLAN problem, when it is available it wil have an ip-adress you can ping to, perhaps this little batch-file will do the trick.
No warranties or support, just a little hint, tested it on my own tvserver-setup and for me it would work (I don't have the problem though, so I don't need the solution )

Replace 192.168.230.233 with the ip-address you want to find, increase maxcount if the batch-file ends before the WLAN-stack is up



RestartTVServer.bat

@echo off
Rem Set checkip to whatever ip-address you need to have
set checkip=192.168.230.233
Rem Set the number of times you want to try 5 pings to the ip-address
set maxcount=2

Rem Stop de TVservice since it is bound to 127.0.0.1 only
net stop tvservice


FOR /L %%a IN (1,1,%maxcount%) DO (

echo Run number %%a

ping %checkip% > %temp%\checkip.txt

FOR /F %%a IN (%temp%\checkip.txt) DO (
if %%a==Reply (
echo yesss, we have an ip-stack on %checkip%
net start tvservice
goto einde
)
)
)


:einde


Hmmmzzzz, tabs and/or spaces are ommited when you view the post, sorry for that, it makes the file a bit unreadable

Last edited by strawberry; 2007-05-06 at 21:47.
strawberry is offline   Reply With Quote
Old 2007-05-14, 10:33   #16 (permalink)
Portal Member
 
Join Date: Nov 2006
Location: Espoo
Age: 41
Posts: 39
Thanks: 1
Thanked 0 Times in 0 Posts

Country:

My System

Default

Thanks Strawberry,

That batch would be perfect, but I've found out that it takes over 2 minutes before my WLAN-dongle gets connected. And that is by far too long. So I have to move to wired connection...
Nightflyer is offline   Reply With Quote
Old 2007-06-02, 16:29   #17 (permalink)
Portal Member
 
Join Date: Nov 2004
Posts: 281
Thanks: 0
Thanked 1 Time in 1 Post


Default

Cannot get it working.

Alwas recieve: "The settings are invalid."

When hitting connect.

My Mediaportal machine is HTPC1, this is what I typed in as host.

I checked under ODBC datasources under control panel that I am able to build a connection to that MP server, so from a network and server connection kind this looks ok.

Must be the local side.

I looked at gentle.config.

SQLServer is uncommented as provider..

Defaultprovider: Here I uncommented the following line:
"<DefaultProvider name="SQLServer" connectionString="Password=htpc;Persist Security Info=True;User ID=sa;Initial Catalog=TvLibrary;Data Source=;" />

My password is htpc and the user id sa. So everything seems right here too?!

Can anyone help me?
__________________
1. HTPC: FloppyDTV DVB-C + CAM/Alphacrypte, Athlon 3000+, 1GB, 160GB HDD Spinpoint, Geforce 7600GS (passive cooled), XP SP2, Pioneer PDP RXE 436, Girder RC, Thermal Balancer
2. Mac Mini + Elgato EyeTV
jcee is offline   Reply With Quote
Old 2007-06-02, 17:26   #18 (permalink)
Portal Member
 
cheezey's Avatar
 
Join Date: Aug 2004
Location: West Yorks
Age: 40
Posts: 401
Thanks: 7
Thanked 5 Times in 5 Posts

Country:

My System

Default

Quote:
Originally Posted by jcee View Post
Defaultprovider: Here I uncommented the following line:
"<DefaultProvider name="SQLServer" connectionString="Password=htpc;Persist Security Info=True;User ID=sa;Initial Catalog=TvLibrary;Data Source=;" />
You need to set the datasource attribute, mine's is :

Code:
<DefaultProvider name="SQLServer" connectionString="Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=TvLibrary;Data Source=lounge\SQLEXPRESS;" /> 

My password & userid is sa (yeah I know) and the SQL instance is called SQLEXPRESS (the default SQL name) on htpc LOUNGE (yep - it's in the lounge).

So yours should probably be
Code:
Data Source=HTPC1\SQLEXPRESS; 
.

Last edited by cheezey; 2007-06-02 at 17:28.
cheezey is online now   Reply With Quote
Old 2007-06-02, 18:18   #19 (permalink)
Portal Member
 
Join Date: Nov 2004
Posts: 281
Thanks: 0
Thanked 1 Time in 1 Post


Default

I did it as you have described, but it did not help.. .

In addition I wonder why there is a menu option inside the TVclient.exe application, which does allow he to specify the host? Or is this for communication to the server.. and the communication to the database is something completly different?
__________________
1. HTPC: FloppyDTV DVB-C + CAM/Alphacrypte, Athlon 3000+, 1GB, 160GB HDD Spinpoint, Geforce 7600GS (passive cooled), XP SP2, Pioneer PDP RXE 436, Girder RC, Thermal Balancer
2. Mac Mini + Elgato EyeTV
jcee is offline   Reply With Quote
Old 2007-06-02, 22:21   #20 (permalink)
Portal Member
 
cheezey's Avatar
 
Join Date: Aug 2004
Location: West Yorks
Age: 40
Posts: 401
Thanks: 7
Thanked 5 Times in 5 Posts

Country:

My System

Default

Yes - the Server Connection setting is to connect to the TVE3 service and the connection details in gentle.config is to connect to the DB.

I have attached a screenshot of the files in my MPTVClient folder and a copy of my gentle config for your info, I seem to remember having to copy in a DLL or two.

HTML Code:
<?xml version="1.0" encoding="utf-8"?>
<Gentle.Framework>
  <!-- See the API documentation for the Gentle.Framework.GentleSettings class for
                 detailed information on the keys available in the Options section -->
  <Options>
    <!-- the default timeout value in seconds for IDbCommand instances created by Gentle -->
    <CommandTimeout>30</CommandTimeout>
    <!-- whether to enable support for Gentle-managed concurrency control columns -->
    <ConcurrencyControl>false</ConcurrencyControl>
    <!-- options: Attributes or XML (XML currently unused) -->
    <MasterDefinition>Attributes</MasterDefinition>
    <Analyzer>
      <!-- options: None, OnDemand (the default), Full -->
      <Level>OnDemand</Level>
      <!-- whether to warn about unmapped columns and other non-fatal errors -->
      <Silent>false</Silent>
    </Analyzer>
    <Cache>
      <!-- default cache strategy (use only Never or Temporary) -->
      <DefaultStrategy>Temporary</DefaultStrategy>
      <CacheStatements>true</CacheStatements>
      <CacheObjects>true</CacheObjects>
      <!-- when true Gentle will try to bypass query execution and compose
                         the result from cached data alone -->
      <SkipQueryExecution>true</SkipQueryExecution>
      <!-- the scope within which to ensure uniqing 
                         options: Thread (default), Application or WebSession -->
      <UniqingScope>Application</UniqingScope>
    </Cache>
    <Logging>
      <!-- This setting controls the lowest log level emitted. See the
		                 Verbosity enum for details on the available values. -->
      <Verbosity>Warning</Verbosity>
      <!-- Do not edit this unless you know what you're doing. This setting
                 		 controls at what level error conditions are considered fatal.  -->
      <Frailty>Warning</Frailty>
      <!-- Use values defined in the LogCategories enum to turn logging on/off
        		         for selected categories. The available values include:
		                 	All (all categories)
                   			StatementExecutionRead (select statements)
                   			StatementExecutionWrite (insert/update/delete statements)
                   			StatementExecutionOther (any other kind of statement)
                   			StatementExecution (any kind of statement; same as all three groups above)
                   			Cache (cache accesses)
                   			Metadata (metadata updates)
                   			General (everything else) -->
      <!-- The following sample first disables all categories, then selectively
                         turns on various subcategories -->
      <Category name="All" enabled="false" />
      <Category name="StatementExecution" enabled="false" />
      <Category name="Cache" enabled="false" />
      <Category name="Metadata" enabled="false" />
    </Logging>
  </Options>
  <!--            
            <NamespaceProviders>
                <Namespace namespace="Gentle.First"  provider="SQLServer" connectionstring="..." />
                <Namespace namespace="Gentle.Second" provider="SQLServer" connectionString="..." />
            </NamespaceProviders>
            -->
  <DefaultProvider name="SQLServer" connectionString="Password=sa;Persist Security Info=True;User ID=sa;Initial Catalog=TvLibrary;Data Source=lounge\SQLEXPRESS;" />
  <!--
            <DefaultProvider name="Firebird" connectionString="User=SYSDBA;Password=masterkey;Database=localhost/3050:C:\Code\Gentle.NET\Source\Gentle.Framework.Tests\Database Files\Gentle_Firebird.fdb;Dialect=3;Charset=UNICODE_FSS;Role=;Connection lifetime=30;Pooling=true;Packet Size=8192;" />
            <DefaultProvider name="Jet" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Code\Gentle.NET\Source\Gentle.Framework.Tests\Database Files\Gentle_MSAccess.mdb;OLE DB Services=-1;" />
            <DefaultProvider name="MySQL" connectionString="Server=10.0.0.2;Database=test;User ID=xxx;Password=xxx" />
            <DefaultProvider name="PostgreSQL" connectionString="Server=10.0.0.2;Database=Test;User ID=xxx;Password=xxx" />
            <DefaultProvider name="Oracle" connectionString="Data Source=kermit.symbiote.sporadicism.com,1521;User ID=gentle;password=xxx" />
            <DefaultProvider name="OracleODP" connectionString="Data Source=kermit.symbiote.sporadicism.com,1521;User ID=gentle;password=xxx" />
            <DefaultProvider name="SQLite" connectionString="URI=file:c:/Code/Gentle.NET/Source/Gentle.Framework.Tests/Database Files/Gentle_SQLite.db" />
            <DefaultProvider name="SQLServer" connectionString="data source=127.0.0.1;initial catalog=Test;user id=xxx;password=xxx;packet size=4096" />
            -->
  <!-- IMPORTANT: You must uncomment ONLY the providers that you will be using. If a provider 
                 is defined below, but Gentle cannot find or load the associated library, an exception
                 will most likely be raised! -->
  <Providers>
    <!-- list known provider assemblies; the assembly .dll suffix is optional -->
    <!-- Provider name="CE"         assembly="Gentle.Provider.CE" /-->
    <!-- Provider name="Firebird"   assembly="Gentle.Provider.Firebird" /-->
    <!-- Provider name="Jet"        assembly="Gentle.Provider.Jet" /-->
    <Provider name="MySQL" assembly="Gentle.Provider.MySQL.dll" />
    <!-- Provider name="Oracle"     assembly="Gentle.Provider.Oracle" /-->
    <!-- Provider name="OracleODP"  assembly="Gentle.Provider.OracleODP" /-->
    <!-- Provider name="PostgreSQL" assembly="Gentle.Provider.PostgreSQL" /-->
    <!-- Provider name="SQLite"     assembly="Gentle.Provider.SQLite" / -->
    <Provider name="SQLServer" assembly="Gentle.Provider.SQLServer" />
    <!-- Provider name="Sybase"     assembly="Gentle.Provider.Sybase" / -->
    <!-- Provider name="SybaseASA"  assembly="Gentle.Provider.SybaseASA" / -->
  </Providers>
</Gentle.Framework> 
Attached Thumbnails
announce-mptvclient-v1-2-5-20-12-2007-ii-capture.jpg  
cheezey is online now   Reply With Quote
Reply

Bookmarks

Tags
announce, mptvclient

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://forum.team-mediaportal.com/mp-tv-client-262/announce-mptvclient-v1-2-5-20-12-2007-ii-22027/
Posted By For Type Date
TV-Engine => welche Clients sind möglich - www.HTPC-News.de This thread Refback 2008-08-23 20:53
TV 4 Geeks This thread Refback 2008-08-20 01:15
MediaPortalTools/MPTVClient - MediaPortal Documentation This thread Refback 2008-07-21 09:43
Tnt Pas Très Belle, Flou Sur Les Mouvements - MP-FR .:: Le forum ::. This thread Refback 2008-07-06 12:50

Similar Threads
Thread Thread Starter Forum Replies Last Post
Announce your plugin work in progress here!!!!!!!! MrMario64 General Development (no feature request here!) 97 2008-04-16 19:41
[Announce] MPTVClient gemx General Development (no feature request here!) 36 2007-11-11 12:09
RTSP Announce on time overrun elupus General Talk 0 2007-08-31 23:54
Will plugins from v1.3+ work under v1.2? jsprenkle General Development (no feature request here!) 2 2005-11-26 22:23
Announce new plugins here frodo Plugins 0 2005-03-20 13:30


All times are GMT +1. The time now is 00:28.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress