Use this command to view a movie trailer when browsing movies in XBMC Frodo
<?xml version="1.0" encoding="utf-16"?>
<command id="481" name="play trailer" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>XBMC.GetInfoBooleans&&"booleans": ["Container.Content(movies)"]</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)Contains(B)</ifType>
<ifParams>{LastResult}&&true</ifParams>
<then>
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>XBMC.GetInfoLabels&&"labels": ["ListItem.Title","Listitem.Trailer"]</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>":\s"(.*)"</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<cmdString>Loading trailer for: {match.1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>XJson.Raw</cmdType>
<cmdString>Player.Open&&"item": { "file": "{Match.2}"} , "options":{ "resume":true }</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else>
<action>
<cmdType>TTS.Speak</cmdType>
<cmdString>No Movie is selected.</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
</else>
</if>
<phrase>Show, Play</phrase>
<phrase optional="true">this, the</phrase>
<phrase optional="true">movie, video, film</phrase>
<phrase>Trailer</phrase>
</command>