[New Plugin] WebServices + Transcoded streaming + Web Interface for TvServer and MP (5 Viewers)

Status
Not open for further replies.

linkan

Portal Member
October 20, 2009
5
0
Home Country
Sweden Sweden
Problems with Live TV

I'm getting this error when I try to start the TV Section.

It's the Line Rad: 151 that fails!

Serverfel i tillämpningsprogrammet /.
--------------------------------------------------------------------------------

Indatasträngen hade ett felaktigt format.
Beskrivning: Ett undantag som inte kunde hanteras uppstod när den aktuella webbegäran kördes. Mer information om felet och var i koden det uppstod finns i stackspårningen.

Undantagsinformation: System.FormatException: Indatasträngen hade ett felaktigt format.

Källfel:


Rad 149: }
Rad 150:
Rad 151: List<WebMiniEPG> epgs = server.GetTvMiniEPGForGroup(Int32.Parse(cbTvGroups.SelectedValue));
Rad 152: DataTable dt = new DataTable();
Rad 153: dt.Columns.Add("channel", typeof(string));


Källfil: c:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Default.aspx.cs Rad: 151

Stackspårning:


[FormatException: Indatasträngen hade ett felaktigt format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7469351
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
System.Int32.Parse(String s) +23
Default.RefreshTv() in c:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Default.aspx.cs:151
Default.btnTv_Click(Object sender, EventArgs e) in c:\Program Files\Team MediaPortal\MediaPortal TV Server\Plugins\MPWebServices\htdocs\Default.aspx.cs:81
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +78
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +100
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2863


--------------------------------------------------------------------------------
Versionsinformation: Microsoft .NET Framework-version:2.0.50727.3603; ASP.NET-version:2.0.50727.3074

What am I doing wrong?
 

vuego

Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,645
    776
    Göteborg
    Home Country
    Sweden Sweden
    Hi, I wanted to try this so I just installed the latest svn, but it doesn't work at all, I just get:

    "2009-10-16 16:46:17.774800 [10]: MPWebServices: Exception raised while trying to start webserver. Could not load file or assembly 'MiniWebServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."

    ...in the TV server log. Any ideas what's wrong? Or should I not be using the latest svn?

    Same problem here using SVN 23978.
     

    linkan

    Portal Member
    October 20, 2009
    5
    0
    Home Country
    Sweden Sweden
    No it's not the same I can log in and everything but when it comes to the tv section and radio section. It seems like it can't read the channel groups. Is there some settings I've missed or?
     

    dakky

    Portal Pro
    June 17, 2008
    159
    4
    Home Country
    Germany Germany
    Hello

    seems i am too stupid to config the database settings. I have the MSSQL Express setup an change the default provider in the gentle.config to mssql. But in the frontent i get a lot of Mysql exceptions.

    any idea?

    Dakky
     

    PussyWagon

    Portal Pro
    August 2, 2008
    235
    7
    Is it possible to use this without the TV-Server installed? I only want to use this plugin to control what music is played through my web browser...
     

    mitschke

    Portal Member
    June 15, 2008
    22
    2
    Aachen
    Home Country
    Germany Germany
    ther seams to be a little mistake in the search algoritham,
    when I search for example an artist I have to search for:
    | artistname

    and not just for the artistname

    I realy like this plugin :)
     

    mitschke

    Portal Member
    June 15, 2008
    22
    2
    Aachen
    Home Country
    Germany Germany
    do you have to produce a *.bat file for playing the media?
    if you just compile a link or a playlist file, it would be easier to assign the stream to vlc or a different media player true the browser. The reason is that if I call the files outside my home network i get a local ip link, and on different PC I have i slightly different installation path of my vlc. so I do have to adjust the bat file every time, so I can be able to play the media. (ist etwas lästig das ganze :D ) :)
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    You can configure the streaming url in the plugin settings. See attached screenshot ;)

    The playlists are created and trasmitted as .m3u so every Program you have assigned to this extension will play it.

    When it comes to streaming, well since you have to call a url i could only think of 2 options

    1) Create a batch file
    2) Use the VLC ActiveX plugin in a webpage

    You can configure which option to use also in the plugin settings which is also shown in the screenshot.
    Just select another player type
     

    Attachments

    • PluginConfig_1.jpg
      PluginConfig_1.jpg
      37.6 KB

    Iwen

    Portal Pro
    August 14, 2007
    464
    32
    Home Country
    Germany Germany
    same problem here with windows xp on the server but win 7 x64 on the client. Would be nice if I don't need to change the .bat everytime.
     

    mitschke

    Portal Member
    June 15, 2008
    22
    2
    Aachen
    Home Country
    Germany Germany
    yeah I know that i can change the streaming URL but wen I use something like intra.mydomain.de then it works outside my home network but not inside and wen I do an 192.168. address then I can not use the URL outside my home network e.g. a my friends home. or in the office so it needs adjustment, it isn't so bad to have adjusting it, but it would be nice if it would be possible to make a slitely different approach.

    and regarding VLC, the plugin isn't really working on any of my PCs,(not FX nor IE). i am trying to figure it out why!
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom