News:

VC = Vox = VoxCommando
EG = EventGhost
WMC = Windows Media Center
WSR = Windows Speech Recognition

Main Menu

play trailers of local media

Started by IKROWNI, August 01, 2013, 12:45:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

IKROWNI

After enabling CE in XBMC I have the option to watch trailers for my media. How could I activate the trailers by voice? Right now i'm just using move commands to go to the button. Is there a way I could just say "play trailer", and whatever movie it is over at the time it will play the trailer for it? I couldn't find an action for this anywhere in the XBMC build of VOX, im guessing it's because it depends on the addon.

jitterjames

I assume that by CE you mean Cinema Experience?

I don't know enough about CE to know what you mean by "I have the option to watch trailers for my media"

Can you be more specific?

maxwel

 Hallo everybody! How can I play the trailers by using voice? Right now i'm just using move commands to go to the button trailer. Is there some way I could just say "play trailer"? i am using frodo 12.2 and 1channel addon.

Thanks you for any help.

Kalle

#3
I think when you have the command for "go to movies" (coverflow) and emulate the "press down" key will play the trailer, but I'm not really sure if this will work.
***********  get excited and make things  **********

Kalle

#4
I hope this code can help you a bit, drag and drop it in your VC command tree. It will show you the info panel from a movie, in which you can see the "trailer" button and play the trailer. If you use this command for first time, start a trailer from the info panel one time by hand, then you can use this command for each other movie without pressing the trailer button by hand. Not real elegant but you can play with the code, maybe you will find a better solution.

<?xml version="1.0" encoding="utf-16"?>
<commandGroup open="True" name="xbmc play trailer" enabled="True" prefix="" priority="0" requiredProcess="" description="">
 <command id="843" name="Find Movie {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
   <action>
     <cmdType>XJson.SmartPL</cmdType>
     <cmdString>smarts\MovieByName.xsp&amp;&amp;{2}</cmdString>
     <cmdRepeat>1</cmdRepeat>
   </action>
   <action>
     <cmdType>VC.Pause</cmdType>
     <cmdString>300</cmdString>
     <cmdRepeat>1</cmdRepeat>
   </action>
   <if ifBlockDisabled="False" ifNot="False">
     <ifType>(A)==(B)</ifType>
     <ifParams>{1}&amp;&amp;Play</ifParams>
     <then>
       <action>
         <cmdType>XJson.Raw</cmdType>
         <cmdString>Playlist.Clear&amp;&amp;"playlistid": 1</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
       <action>
         <cmdType>XJson.Raw</cmdType>
         <cmdString>Playlist.Add&amp;&amp;"playlistid": 1, "item": {"file": "special://profile/playlists/mixed/voxsmart.xsp"}</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
       <action>
         <cmdType>XJson.Raw</cmdType>
         <cmdString>Player.Open&amp;&amp;"item": {"playlistid": 1}</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
     </then>
     <else>
       <action>
         <cmdType>XJson.Raw</cmdType>
         <cmdString>GUI.ActivateWindow&amp;&amp;"window": "video", "parameters": [ "special://profile/playlists/mixed/voxsmart.xsp" ]</cmdString>
         <cmdRepeat>1</cmdRepeat>
       </action>
     </else>
   </if>
   <action>
     <cmdType>VC.Pause</cmdType>
     <cmdString>500</cmdString>
     <cmdRepeat>1</cmdRepeat>
   </action>
   <action>
     <cmdType>XJson.Btn.KB</cmdType>
     <cmdString>i</cmdString>
     <cmdRepeat>1</cmdRepeat>
   </action>
   <action>
     <cmdType>XJson.Btn.KB</cmdType>
     <cmdString>Return</cmdString>
     <cmdRepeat>1</cmdRepeat>
   </action>
   <payloadList>Find, Search, Show</payloadList>
   <phrase>trailer</phrase>
   <payloadFromXML phraseOnly="True" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">XbmcPayloads\xbmcMovies.xml</payloadFromXML>
 </command>
</commandGroup>
***********  get excited and make things  **********

maxwel

Thank for your response kalle. I really appreciate your time.

I'll try it out tomorrow and i'll let you know .

nime5ter

Hi maxwel,

Since then, James has posted xml to the xml exchange board for playing trailers in XBMC Frodo: http://voxcommando.com/forum/index.php?topic=1309.0
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)

maxwel

Hi nime5ter

Thanks you so much man

Grtz