Author Topic: Abspielen eines Filmes durch Namen  (Read 3702 times)

0 Members and 1 Guest are viewing this topic.

vampb

  • Jr. Member
  • **
  • Posts: 3
  • Karma: 0
    • View Profile
Abspielen eines Filmes durch Namen
« on: April 24, 2014, 09:54:22 AM »
Moin liebe Community !

Ich bin erst seit kurzem beim Rumtesten vom VoxCommando und bin auch relativ begeistert von der Software. Eine Sache bekomme ich allerdings nicht hin und vielleicht kann mir da jemand weiter helfen.

Ich möchte gerne durch Ansagen eines Titels diesen direkt über XBMC abspielen wollen.
Ich habe also die neuste Version vom VoxCommando 1 installiert und alle Befehle, die vorgegeben sind, haben auch funktioniert (also die, die ich bis jetzt gesprochen habe)
Mir ist allerdings aufgefallen, daß in der deutschen "XBMC 12 Frodo.zip" config solch ein Befehl mit Ansage des Titels nicht enthalten ist.
Also habe ich in die englische Config File reingeschaut und siehe da, da ist doch tatsächlilch etwas:

Code: [Select]
       <command id="373" name="Play Movie {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>XJson.Raw</cmdType>
                <cmdString>Player.Open&amp;&amp;"item": {"movieid": {1}}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>Play</phrase>
            <phrase>film, films, movie, movies, moving picture</phrase>
            <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">XbmcPayloads\xbmcMovieIDs.xml</payloadFromXML>
        </command>

Das habe ich dann mit ins Deutsche übertragen und nur die "Phrases" angepasst.
Wenn ich nun das Kommando abgebe, wird es zwar richtig erkannt, allerdings wird der Titel nicht abgespielt und ich bekomme einen "Parse Error".
Kennt das vielleicht jemand ?


Danke und Gruß,
Boris
« Last Edit: April 24, 2014, 09:59:05 AM by vampb »

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2318
  • Karma: 47
    • View Profile
Re: Abspielen eines Filmes durch Namen
« Reply #1 on: April 24, 2014, 11:09:59 AM »
Hallo Boris und willkommen im VC Forum.
Könnte verschiedene Ursachen haben, bitte schau Dir zuerst dieses Video an, hier wird genau beschrieben wie und was Du in XBMC und VC einstellen musst und schreibe ob es danach funkioniert.
Das xjson-plugin in VC muss aktiviert sein.

https://www.youtube.com/watch?v=O-9QNjEdNhI

Du kannst uns auch noch deine voxLog.txt posten, welche Du im VC verzeichnis findest.

Gruß
Kalle
« Last Edit: April 24, 2014, 11:18:12 AM by Kalle »
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Abspielen eines Filmes durch Namen
« Reply #2 on: April 24, 2014, 11:51:33 AM »
Also, please post the xml for the new command you have created, not for the original command.

vampb

  • Jr. Member
  • **
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Abspielen eines Filmes durch Namen
« Reply #3 on: April 24, 2014, 06:29:09 PM »
Hi !

Ja, ich habe alles soweit gemacht, wie es in dem Video erklärt wird.

Hier mein neues Kommando:
Code: [Select]
        <command id="489" name="Spiele Video{1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>XJson.Raw</cmdType>
                <cmdString>Player.Open&amp;&amp;"item": {"movieid": {1}}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>spiele, starte</phrase>
            <phrase>video</phrase>
            <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">XbmcPayloads\xbmcMovies.xml</payloadFromXML>
        </command>

Hier der Fehler aus der Log:
Code: [Select]
24.04.2014 22:59:00 1 guessed text:starte video Beispiel ?? (XBMC TV+Filme)
24.04.2014 22:59:00 1 Rulename: root # Semantics: 2
24.04.2014 22:59:00 1 Group: XBMC TV+Filme Speech: starte video Beispiel
24.04.2014 22:59:00 1 semanticID: 489
24.04.2014 22:59:00 1 kvp: command | 489
24.04.2014 22:59:00 1 kvp: payload1 | <489:Beispiel>nfs://10.1.1.1/volumeUSB1/usbshare/-- Videos --/Beispiel/Beispiel.mp4
24.04.2014 22:59:00 1 id from payload: 489
24.04.2014 22:59:00 1 semanticID: 489
24.04.2014 22:59:00 1 kvp: command | 489
24.04.2014 22:59:00 1 kvp: payload1 | <489:Beispiel>nfs://10.1.1.1/volumeUSB1/usbshare/-- Videos --/Beispiel/Beispiel.mp4
24.04.2014 22:59:00 1 id from payload: 489
24.04.2014 22:59:00 1 alternate:starte video Beispiel
24.04.2014 22:59:00 1 doCommand:Spiele Video {1}
24.04.2014 22:59:00 1 action repeat set to: 1
24.04.2014 22:59:00 1 Action:  XJson.Raw - Player.Open&&"item": {"movieid": nfs://10.1.1.1/volumeUSB1/usbshare/-- Videos--/Beispiel/Beispiel.mp4}
24.04.2014 22:59:00 1 [action] XJson.Raw:Player.Open&&"item": {"movieid": nfs://10.1.1.1/volumeUSB1/usbshare/-- Videos --/Beispiel/Beispiel.mp4}

24.04.2014 22:59:00 1 [plugin] Sending json request:
24.04.2014 22:59:00 1 [plugin] {"jsonrpc": "2.0", "method": "Player.Open", "params":{"item": {"movieid": nfs://10.1.1.1/volumeUSB1/usbshare/-- Videos--/Beispiel/Beispiel.mp4}},"id": "0"}
24.04.2014 22:59:01 508 [plugin] {
  "error": {
    "code": -32700,
    "message": "Parse error."
  },
  "id": null,
  "jsonrpc": "2.0"
}

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Abspielen eines Filmes durch Namen
« Reply #4 on: April 24, 2014, 06:51:46 PM »
Hallo Boris,

You are using the wrong payloadxml file.

Compare the English command in your first post to the German command. You will see that you should be using the payloadxml file "xbmcMovieIDs.xml", not "xbmcMovies.xml".

Hoffentlich, das wird es das Problem lösen.

The correct file should have been automatically generated when you generated all of your XML.

You can double-click on the "wrong" payloadXML file in your "Spiele Video{1}" command, within your command tree (http://voxcommando.com/mediawiki/index.php?title=File:Tree_editor.png). Browse to the correct file and select it, save, and save again.

@nime: only a small correction in the german grammar (I hope it is ok for you)  ::)
« Last Edit: April 24, 2014, 07:06:31 PM by Kalle »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

vampb

  • Jr. Member
  • **
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Abspielen eines Filmes durch Namen
« Reply #5 on: April 24, 2014, 07:00:22 PM »
Arrgh, you are right !
Now its working ! :)
Thanks a lot for your support !

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Abspielen eines Filmes durch Namen
« Reply #6 on: April 24, 2014, 07:13:45 PM »
@nime: only a small correction in the german grammar (I hope it is ok for you)  ::)

Yes, please do! Thanks Kalle.  :hugs

Stupid Google translator ... SUCKS.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Abspielen eines Filmes durch Namen
« Reply #7 on: April 24, 2014, 07:27:45 PM »
Arrgh, you are right !
Now its working ! :)
Thanks a lot for your support !

Well, that was easy. :)

We're happy to help. Thanks for providing all the information we asked for. This is why we always ask people to post their commands, instead of just describing them.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)