VLC Videoplayer mit IPS ansteuern!

Hallo zusammen

Hab mich mal wieder daran gemacht mein IPS-MediaCenter zu vervollständigen.

Habe es geschafft nun auch den VLC Player (meines erachtens der Beste Video Player) per PHP/IPS Script anzusteuern.
Dazu müsst Ihr nur in den Einstellungen des Players das „HTTP“ Interface aktivieren. Dann kann man sogar andere VLC-PCs fernsteuern - zum Beispiel den MediaPC im Wohnzimmer ^^

Wer daran interesse hat:
Das ganze ist eine Klasse geworden, die man einfach mittels „require_once(‚vlcPlayer.php‘)“ einbindet. Habs noch nicht geschafft das gründlich durchzutesten, aber bei mir funzt es soweit :slight_smile:


// Include Class
require_once('vlcPlayer.php');

// Erstelle Instanz:
$VLC=new vlcPlayer();

// Datei hinzufügen und abspielen
$VLC->add("C:/Musik/a.avi",true);

// das war's schon für einen einfachen Befehl. wer zusätzlich noch den Status braucht geht weiter vor:

// Playlist aktuallisieren, das ist nötig nach jedem Befehl 
// der die Playlist  ändert ("add", "next", "previous", "clear_playlist" ... )
// - natürlich nur wenn man die Infos braucht
$VLC->refresh_playlist();

// Alle Informationen des VLC Object anzeigen
echo "<pre>";
print_r($vlc);
echo "</pre>";


EIGENSCHAFTEN und BEFEHLE der KLASSE:



/****************************************
 * Eigenschaften des VLC Player Objekts:                *
 ****************************************/
  $VLC->requestUrl		 // URL to the VLC Server; You can Use an Remote Adress to steer for example your MediaPC
  $VLC->serverTimeout	 // Timeout in Seconds, can be small if on same machine
  $VLC->found_interface       // Shows "false" if VLC was unreachable, and "true" if command/refresh was successfull
  $VLC->volume		 // Volume 256 => 100% ; 512 => 200% ; 768 => 300% ; 1024 => 400%
  $VLC->length		 // Length in Seconds
  $VLC->time		 // Current Position in Seconds
  $VLC->position		 // Current Position in Percent
  $VLC->state		 // "paused" ; "playing" ; "stop"
  $VLC->random		 // Random Mode?
  $VLC->loop		 // Loop Mode?
  $VLC->repeat		 // Repeat Mode?
 
  $VLC->playlist		 // Playlist (use "print_r(...);" to see how it is constructed
  $VLC->current		 // Current Item in Playlist
  $VLC->playlist_length         // Length of Playlist
	
  $VLC->rawData=array();	 // Contains all Status Data from the VLC Server


/****************************************
 *    Methoden des VLC Player Objekts:                  *
 ****************************************/
  // Refresh Data ($withPlaylist)
  $VLC->refresh($withPlaylist=true)
	
	// Refresh only the Playlist Data
  $VLC->refresh_playlist()

  // add <mrl> to playlist [ and start playback ($play=true) ]
 // What's a MRL? can be just a file from your harddisk or such much more -> http://wiki.videolan.org/Media_resource_locator
  $VLC->add($mrl,$play=false)

  // play playlist item <id>:
  // if id = false, it tries to play the last file played.
  $VLC->play($id=false)

  // toggle pause. If current state was 'stop', play item <id>:
  // if id = false, it tries to play the last file played.	
  $VLC->toggle_pause($id=false)

  // stop playback:
  $VLC->stop()

  // jump to next item:
  $VLC->next()

  // jump to previous item:
  $VLC->previous()

  // delete item <id> from playlist:
  $VLC->delete($id)

  // empty playlist:
  $VLC->clear_playlist()
	
  /* sort playlist using sort mode <val> and order <id>:
    If id=0 then items will be sorted in normal order, if id=1 they will be
    sorted in reverse order
    A non exhaustive list of sort modes:
      0 Id
      1 Name
      3 Author
      5 Random
      7 Track number
  */
  $VLC->sort($id,$val)

  // toggle random playback:
  $VLC->toggle_random()

  // toggle enable service discovery module <val>:
  /*
    Typical values are:
      sap
      shoutcast
      podcast
      hal
  */
  $VLC->toggle_enable_service($val)

  // toggle fullscreen:
  $VLC->toggle_fullscreen()

  // set volume level to <val> (can be absolute integer, percent or +/- relative value):
  /*
	   Allowed values are of the form:
      +<int>, -<int>, <int> or <int>%
  */
  $VLC->volume($val)
	 
  // seek to <val>:
  /*
    Allowed values are of the form:
      [+ or -][<int><H or h>:][<int><M or m or '>:][<int><nothing or S or s or ">]
      or [+ or -]<int>%
      (value between [ ] are optional, value between < > are mandatory)
    examples:
      1000 -> seek to the 1000th second
      +1H:2M -> seek 1 hour and 2 minutes forward
      -10% -> seek 10% back
  */
  $VLC->seek($val)


Viel Spass damit :wink:
Huelke

vlcPlayerClass.rar (4.4 KB)

Aloha!
11 Downloads schon :wink:

Hat’s denn schon jemand ausprobiert?
Würd mich über ein bissel Feedback freuen.

Hab das bei mir mitlerweile gut ausgebaut, meine zwei Media-PCs in Wohn- und Schlafzimmer lassen sich durch meine „Universal-Fernbedienung“ (Samsung Q1 UMPC mit Touchdisplay) perfekt fernsteuern.
Ich bin sogar am überlegen mein „Multiroom-Audio-System“ (derzeit über Creative XMOD wireless [Funk-Soundkarten] gelöst) durch StandAlone MiniPCs zu ersetzen, wo dann VLC (ferngesteuert) als Muiskplayer fungiert.
SONOS ist mir grad echt noch zu teuer :wink:

Na dann freu ich mich schon mal auf euer Feedback

Gruß Huelke

Hallo huelke,

habe die Klasse und dein Skript getestet, hat auch auf Anhieb geklappt.

Wenn ich jetzt noch das Videofenster rauslösen kann und im Webfront an einen definierten Platz bringe ist alles gut.

Danke für das Skript.

Hi,
Danke für dein Feedback!
Freut mich das alles geklappt hat.

Auch ne gute Idee mit dem Videofenster in der WebOberfläche!
Hab das auch schon überlegt gehabt -> Bin aber dabei geblieben das man einen „Screenshot“ anfordern kann :wink:
Und der wird dann angezeigt.

Immerhin :wink:

Nene,

ich will da das gestreamte Bild drin haben, ansonsten wäre es nur halb so schön.

Deine andere Idee mit dem DVB-Viewer werde ich auch weiter verfolgen, dann könnte man Live schauen. :slight_smile:

Hi,
also hab ich dich richtig verstanden das Du auf dem Webfront quasi „monitoren“ willst was grad auf einem MediaPc z.B. in deinem Wohnzimmer läuft :slight_smile:

Hab grad mal rumprobiert und es gleich hinbekommen.
Man kann VLC sagen das er eine Datei nicht nur lokal wiedergeben soll, sondern zeitgleich auch noch streamen soll.

Mit einem Videoplayer Plugin für den Browser (wie z.B. Windowsmediaplayer, oder auch hier VLC) kann dann jedes Webgerät (Webfront) diesen Stream öffnen und wiedergeben - das ganze ist leider leicht zeitversetzt, streaming halt…

Das beste: Wenn man den SourcePlayer (MediaPc) jetzt per Webinterface z.B. in den Pause-Modus versetzt, so pausiert natürlich auch der Stream und damit die Ausgabe im WebFront ^^
Natürlich kann man auch auf die lokale Wiedergabe verzichten, und so das Video NUR im WebFront anzeigen.

UPDATE:
Wenn Du das mal ausprobieren möchtest:

Starte VLC mit
vlc.exe --sout „#transcode{vcodec=DIV3,vb=3500,scale=1,acodec=mp3,ab=128,channels=2}:duplicate{dst=display,dst=std{access=mmsh,mux=asf,dst=DIE-IP-DES-MEDIA-PCS/SERVERS:1234}}“

also z.B.


IPS_ExecuteEx('C:\Programme\VideoLAN\VLC0.9.8a\vlc.exe', '--sout 
"#transcode{vcodec=DIV3,vb=3500,scale=1,acodec=mp3,ab=128,channels=2}
:duplicate{dst=display,dst=std{access=mmsh,mux=asf,dst=192.168.0.10:1234}}" ',false,false,0);

Ins Webfront kommt für den Windows Media Player:

<OBJECT ID="Player" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" WIDTH=320 HEIGHT=300>
 <PARAM NAME="AutoStart" VALUE="False" >
 <PARAM NAME="stretchToFit" VALUE="True">
 <PARAM NAME="uiMode" VALUE="full">
 <PARAM NAME="URL" VALUE="mms://192.168.0.10:1234">
  <EMBED TYPE="application/x-mplayer2" 
  SRC="mms://192.168.0.10:1234" 
  NAME="Player"
  WIDTH="320"
  HEIGHT="300"
  AUTOSTART="0">
  </EMBED>
</OBJECT>

Das einzige Problem bei der Sache ist, wenn man den WMP benutzt so muss das Video von VLC auf das richtige Format transcodiert werden - leider gilt die Einstellung dann auch für das „orginal“ Playback auf dem MediaPc.
Ich hab da jetzt eine Bitrate von 3500 kbps ausgewählt was so ziemlich kaum Verluste bringt, natürlich ist dann auch der Stream „dicker“ also muss das Netz gut sein :wink: - Ach ja und bei HD Filmen hängt sich VLC (bei mir) auf weils zuviel für Ihn wird ^^

Wenn man nur streamen möchte kanns einem ja egal sein :wink:
Alternativ gibt es auch den VLC Player als Webbrowser Plugin, mit dem hab ich’s noch nicht ausprobiert, vielleicht kann er den Stream ja auch ohne transcode anzeigen

Gruß Huelke

Hallo!

Erstmal vielen Dank für die Lösung!
Jetzt kann ich schon fast in diversen Räumen die VLC-Mediaplayer ansteuern und somit für Musik auf Kopfdruck sorgen - Sehr fein!

Habe die php-Klassen eingebungen und mit einem VLC-Player auf einem anderen Computer erfolgreich getestet. Leider wirft das xml2array.php-Skript bei mir diverse Notice-Fehler (Notice: Undefined index: und Notice: Undefined offset) und gibt die dann im WebFront aus.

Da ich noch nicht wirklich mit .php vertraut bin - habt ihr eine Ahnung wo der Fehler liegt?


Notice:  Undefined index: root in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: root in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: root in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: volume in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: length in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: length in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: time in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: time in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: state in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: state in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: position in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: position in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: fullscreen in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: random in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: random in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: loop in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: loop in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: repeat in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: repeat in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: stats in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: stats in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: stats in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: readbytes in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: inputbitrate in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: inputbitrate in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: demuxreadbytes in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: demuxreadbytes in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: demuxbitrate in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: demuxbitrate in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: decodedvideo in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: decodedvideo in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: displayedpictures in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: displayedpictures in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: lostpictures in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: lostpictures in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: decodedaudio in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: decodedaudio in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: playedabuffers in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: playedabuffers in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: lostabuffers in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: lostabuffers in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: sentpackets in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: sentpackets in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: sentbytes in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: sentbytes in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: sendbitrate in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: sendbitrate in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: root in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: root in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: root in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: volume in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: length in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: length in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: time in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: time in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: state in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: state in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: position in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: position in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: fullscreen in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: random in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: random in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: loop in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: loop in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: repeat in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: repeat in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: information in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: meta-information in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: title in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: artist in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: genre in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: copyright in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: album in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: track in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: description in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: rating in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: date in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: url in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: language in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: now_playing in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: publisher in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: encoded_by in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: art_url in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: track_id in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: stats in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: stats in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: stats in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: readbytes in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: inputbitrate in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: inputbitrate in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: demuxreadbytes in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: demuxreadbytes in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: demuxbitrate in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: demuxbitrate in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: decodedvideo in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: decodedvideo in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: displayedpictures in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: displayedpictures in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: lostpictures in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: lostpictures in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: decodedaudio in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: decodedaudio in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: playedabuffers in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: playedabuffers in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: lostabuffers in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: lostabuffers in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: sentpackets in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: sentpackets in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: sentbytes in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: sentbytes in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: sendbitrate in C:\IP-Symcon\scripts\xml2array.php(71) : eval()'d code on line 1

Notice:  Undefined index: sendbitrate in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: VALUE in C:\IP-Symcon\scripts\xml2array.php(117) : eval()'d code on line 1

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined index: CHILDS in C:\IP-Symcon\scripts\xml2array.php on line 37

Notice:  Undefined offset: 0 in C:\IP-Symcon\scripts\xml2array.php on line 37
vlcPlayer Object

lg
hanspe

Moin Zusammen!

-> genau sowas suche ich! Vorab mal besten Dank.

Nur: habs noch nicht zum laufen gebracht. Kann mir jemand helfen mit dem class einbinden?

Die Klasse zum runterladen heisst ja ‚vlcPlayerClass.rar‘
eingebunden wird aber ‚vlcPlayer.php‘ :confused:

wo muss man was abspeichern?

sheriff

Ich denke mal Du musst die ‚vlcPlayerClass.rar‘ entpacken :rolleyes:

Darin befinden sich dann eine oder mehrere Datei, mitunter wahrscheinlich die ‚vlcPlayer.php‘

Dann stellt sich die Frage was Du nun genau machen willst. Stream von einem externen Mediareviever. Sag uns doch ein wenig mehr zu deinem Vorhaben.

Danke Werner

.rar kannte ich nicht.
Entpackt! VLC spielt!

Nun: IPS soll bestimmen, welche Musik im Wohnzimmer läuft.

IPS -> VLC -> Wohnzimmer

Ich bin mir nicht sicher ob mein Vorhaben realisierbar ist. Ich hab da 'n Streamer Zyxel DMA 1000W welcher den Stream empfangen soll. Einen PC im Wohnzimmer welcher noch Duerläuft ist wohl nicht so sexy.
wenn der DMA nicht mitmacht, gibt’s da was anderes auf dem Markt der den stream spielen würde?

lg

sheriff

Da kann ich Dir leider nicht weiterhelfen.

Meine persönliche Empfehlung sind die Squeezeboxen, betreibe hier bei mir 1x Squeezebox Classic V3, 1x Squeezebox Radio und 2x Squeezeplay auf Touch-PC´s. Alles über Skripte im Webfront, sollte auch im Forum auffindbar sein.

Auch SONOS ist ein sehr gutes System aber für mich nicht im richtigen Preissegment.

Den VLC nutze ich nur mit einer userdefinierten Seite als Streamclient um auf dem Touch in der Küche nebenbei Fernsehen zu können.

@Werner:
Wie hast Du denn Squeezeplay in das Webfront eingebunden?
Bei mir ist der Versuch sowohl über einen direkten Verweis auf den Server:9000, als auch das Einbetten in einen iFrame fehlgeschlagen.
In beiden Fällen erscheint im Webfront dauerhaft der grüne Logitechhintergrund mit dem Schriftzug „Squeezebox Server wird geladen“.

Rufe ich den Server direkt über die Adresszeile des Browser aus, funktioniert der Zugriff einwandfrei.

Über das CLI des Squeezeservers. IPS-Technisch gesagt, einen Clientsocket an die IP:Port deines Squeezeserver gebunden, somit kannst Du den Squeezeserver schon einmal ansprechen.

Um die Anworten des Squeezeserver bzw. dessen angeschlossenen Boxen zu visualisieren benötigst Du einen Register-Variable die die Antwort vom Clientsocket empfängt und an ein Skript weitergíbt das wiederrum die Visualisierung macht.

Such mal nach Squeeze im Forum, da gibt es bereits den einen oder anderen Ansatz.

Hallo Werner

Danke für den Input. Ich hab unterdessen ziemlich viel threads gelesen. Squeeze scheint wirklich meine Lösung zu werden. Schade, dass nicht Video gleich mitgelöst ist, aber einen PC ins Wohnzimmer möchte ich lieber nicht.

Ich habe trotzdem noch 'ne Detailfrage bevor ich anfange.

zuerst mein Vorhaben:
Neben dem üblichen abspielen von Playlisten werde ich mir ein Skript schreiben um Lieder zu sortieren. Das skript soll einen Ordner einlesen „C:/meine neue songs“ und einen Song nach dem anderen anspielen. Das Intro ist dabei eher störend, also möchte ich den Song ab Position 1:00 abspielen. Auf einem FS20 sender wähle ich mein Rating. Bei „0“ wird der song gelöscht, ansonsten in Ordner xy verschoben.

Nun die Fragen an Dich:

  1. kann IPS mit Squeezebox ab einer bestimmten Songposition abspielen? (Sonos scheint dies zu können)
  2. was denkst Du, habe ich unterschiedliche Entwicklungszeiten mit Sonos oder Sqeeze? (Ordner laden, herausfinden wie die Songposition bestimmt werden kann)

Gruss

Sheriff

  1. kann IPS mit Squeezebox ab einer bestimmten Songposition abspielen? (Sonos scheint dies zu können)

Hm. Gute Frage, habe ich noch nie getestet, wüßte aber auch nicht für was. Alles was über das CLI möglich ist kannst Du auch mit IPS realisieren.

  1. was denkst Du, habe ich unterschiedliche Entwicklungszeiten mit Sonos oder Sqeeze? (Ordner laden, herausfinden wie die Songposition bestimmt werden kann)

Da ich das SONOS noch nie getestet habe kann ich dazu auch nichts sagen. Ich denke aber Du hast da noch einen Denkfehler beim Handling der Musik. Das Handling macht ja prinzipiell der Squeezeserver und nicht IPS. In IPS sage ich ja nur, lade mir ein bestimmtes Lied, Playliste oder Radiosender und spiele diesen ab, alles andere macht der Squeezeserver. IPS ist hier, wie eigentlich bei allen anderen externen Systemen, nur die Visu bzw. eine weitere Steuerung

Was mich aber persönlich noch interessiert ist wie ich einen Slider über die Duration, also Spieldauer sowie der aktuellen Position in IPS visualisieren kann. Soweit bin ich aber noch nicht.

ist es denn über CLI möglich? (warscheinlich schon, aber nur zur Sicherheit)

Wenn ja: heisst das, dass ich über Telnet die Befehle ablauschen muss um rauszukriegen wie man Liedpositionen abfrägt und sendet?
-> das würde vermutlich auch die Slider visualisierung ermöglichen

unüblich oder unmöglich?
-> mit php den Ordner durchsuchen, Lied wunschgemäss in Spielliste und triggern

Gruss

sheriff

ist es denn über CLI möglich? (warscheinlich schon, aber nur zur Sicherheit)

Wenn ja: heisst das, dass ich über Telnet die Befehle ablauschen muss um rauszukriegen wie man Liedpositionen abfrägt und sendet?
-> das würde vermutlich auch die Slider visualisierung ermöglichen

Kann ich Dir aus dem Stehgreid nicht sagen.

unüblich oder unmöglich?
-> mit php den Ordner durchsuchen, Lied wunschgemäss in Spielliste und triggern

Ich denke möglich ist alles alles aber warum. Der Squeezeserver hält doch alle deine Musikstücke vor. Wenn dann würde ich aus IPS nur eine Wiedergabeliste für den Squeezeserver basteln. Aber auch das mache ich derzeit über den Squeezeserver, ich sage aus IPS nur „spiele mir Playliste xyz ab“

So jetzt aber schluß damit in diesem Thread, der handelt schließlich vom VLC :wink:

Ach ja, einen Screenshot hätte ich noch.

Die Playlisten die auf dem Squeezeserver sind werden in IPS in eine Integer-Var gelistet um diese auf all meinen SQ abzuspielen zu können.

ja Du hast Recht, ich stell mal die Frage in einem Squeez - Thread

danke für den shot, sieht gut aus!

sheriff

Mach doch einen neuen Thread bzgl. deiner Squeezefragen auf.

muss man noch irgenwo variablen einfügen? ICh habe nur das Script aufgerufen, keine Instanzen angelegt? Habe schon den ganzen Tag gesucht, aber da ich PHP auch nur zu 0,0034% verstehe war dies leider nicht sehr erfolgreich…
Vielen Dank