[Plugin] Streamradio V2 (1 Viewer)

cornhoulio

Portal Member
January 26, 2009
35
2
Home Country
Germany Germany
Small fix

Hi,

I had a problem that the station icons ware not loaded if i have the option "Show last active module when starting" enabled in MP configuration.
There was also the following error message in error.log:
Code:
2009-06-21 20:54:08.718750 [Info.][MPMain]: OnMessage exception:System.NullReferenceException: 
    Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei MediaPortal.GUI.MyStreamRadio.GUIRadio.EncodeActive()
   bei MediaPortal.GUI.MyStreamRadio.GUIRadio.OnPageLoad()
   bei MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)

The problem seams to be that BASS is not initialized during startup of the plugin.
I do not have enough knowledge to completely fix the problem but I made a wokaround.
This exception is handled now.

cornhoulio.
 

Attachments

  • MyStreamRadio.zip
    30.6 KB

rabelejo

Portal Member
February 9, 2008
37
5
Home Country
Germany Germany
Hello Kroko,

first of all I will thank you for your great work.

But I have same little problems to get work with your plugin. I read the complete thread about streamradio and I put the files in the right dircectory .

On the screen i don ´t see the logos from the radiostation. ( see thumbnails). The stations on the left site works perfeclty.

Maybe the error.log help you to find my mistake.

I hope you can help me to get streamradio works.

( for all english people, excuse my schoolenglish itś about 20 years ago :) )

rabelejo
 

Attachments

  • mediaportal4.jpg
    mediaportal4.jpg
    92.6 KB
  • mediaportal .jpeg
    mediaportal .jpeg
    52.9 KB
  • mediaportal3.jpg
    mediaportal3.jpg
    62.5 KB

rabelejo

Portal Member
February 9, 2008
37
5
Home Country
Germany Germany
Hi cornhoulio,

thank you for your answer.

I forgot to chance my profil, i have the newest Mediaportal and Tv-Server 1.0.2 on my Computer.

rabelejo
 

rabelejo

Portal Member
February 9, 2008
37
5
Home Country
Germany Germany
Hi,

i have still the same problem. Has anyone a solution for me?:confused:
I tried to put the logos in different folders, but no one have success.

rabelejo
 

htcp-starter

Portal Member
March 25, 2009
29
1
Home Country
Germany Germany
Hi,

in which folder are your radio-station.xml
By my first installation, I copoied them into a false folder.
This is the right one: C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\Team MediaPortal\MediaPortal\Radio

Open one of the xml-dateien.
The right name of station icon stands between <logo>1046 RTL Hit-Radio.png</logo>
Control the icon-name in folder C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\Team MediaPortal\MediaPortal\thumbs\Radio
There must be a datei wiht the name 1046 RTL Hit-Radio.png
 

rabelejo

Portal Member
February 9, 2008
37
5
Home Country
Germany Germany
Hi htcp-starter,

thank you for your help. I think you have the solution for me, because i can´t find the radio-station.xml on the complety computer.

Maybe i delete the radio-station.xml when i copy the logos in the folder, then I have tried 10 times :mad:.

But I can´t find radio-station.xml in the package from mystreamradio v2.

Can you post me your radio-station.xml, then i Iwill retry again?

rabelejo
 

htcp-starter

Portal Member
March 25, 2009
29
1
Home Country
Germany Germany
Sorry rabelejo,

you have no radio-station.xml.
Sorry, but I try it for you in German.

Also du hast keine radio-station.xml auf deinem PC. Das war nur ein Beispiel
Im Verzeichnis C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\Team MediaPortal\MediaPortal\Radio liegen die sender-Dateien mit dem Namensaufbau "radio-station".xml, also z.B. AntenneBayern.xml oder 1046 RTL Hit-Radio.xml
Die Senderlogos selbst sind dann im Verzeichnis C:\Dokumente und Einstellungen\All Users\Anwendungsdaten\Team MediaPortal\MediaPortal\thumbs\Radio gespeichert.

In der xml-Datei ist beschrieben wo das Logo zu finden ist und auf welchen Namen und welche Endung es hört.
Das steht eben in der Zeile "<logo>1046 RTL Hit-Radio.png</logo>"
Bei mir passten anfangs die Sendernamen nicht mit dem Logonamen überein.

Nochmal sorry. Das wär mir auf Englisch jetzt zu kompliziert geworden. Das näcshte Mal wieder.
Hoffentlich hilfts
 

cornhoulio

Portal Member
January 26, 2009
35
2
Home Country
Germany Germany
New Version

Hi,
I missed some things in the plugin so I added it.
I hope Kroko is not annoyed about it.

  • The plugin will remeber the last selected station if you leave the plugin or close MP
  • If in the Plugin configuration the checkbox "Auto play Radio when entering" is checked, the last selected station will be played if you enter the plugin again. Only if no other audio is playing.

To avoid confusion I have set the version to 0.5.2.0.
I have not yet a Souce Forge account so I add the code here.

Enjoy if you like.

cornhoulio
 

Attachments

  • MyStreamRadio.zip
    30.6 KB
  • MyStreamRadio_Source.zip
    30.7 KB

rabelejo

Portal Member
February 9, 2008
37
5
Home Country
Germany Germany
hi htcp-starter,

mein english ist leider auch ein wenig eingerostet.;) Also weiter in deutsch.

Ich habe, wie schon beschrieben, alle möglichen Ordner probiert für die logos.

Im Anhang habe ich jetzt nochmal Sreenshots erstellt, wo die einzelnen Dateien sind.

Immer noch ohne Erfolg, die logos werden nicht im Mediaportal angezeigt.

Ich weiß nicht mehr weiter, sowas ähnliches hatte ich schon einmal und am Schluss musste ich Mediaportal noch mal neu aufsetzen. :mad:

Vielleicht erkennst Du aus den Sreenshots wo mein Fehler liegt.

Aus der radioblabla.xml Datei kann ich leider nicht erkennen wo der Speicherort der Logos ist.

Manchmal sieht man den Wald vor lauter Bäumen nicht mehr.:D
 

Attachments

  • Mediaportal_Dateiinfo.jpg
    Mediaportal_Dateiinfo.jpg
    95.5 KB
  • Mediaportal_Radio.jpg
    Mediaportal_Radio.jpg
    54.4 KB
  • Mediaportal_thumps.jpg
    Mediaportal_thumps.jpg
    71.6 KB

Users who are viewing this thread

Top Bottom