Author Topic: play trailers of local media  (Read 2589 times)

0 Members and 1 Guest are viewing this topic.

IKROWNI

  • $upporter
  • Sr. Member
  • *****
  • Posts: 146
  • Karma: 2
    • View Profile
play trailers of local media
« on: August 01, 2013, 12:45:03 AM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: play trailers of local media
« Reply #1 on: August 01, 2013, 01:10:56 PM »
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

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 1
    • View Profile
Re: play trailers of local media
« Reply #2 on: December 08, 2013, 09:36:24 AM »
 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

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: play trailers of local media
« Reply #3 on: December 08, 2013, 10:25:49 AM »
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.
« Last Edit: December 08, 2013, 11:24:49 AM by Kalle »
***********  get excited and make things  **********

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: play trailers of local media
« Reply #4 on: December 09, 2013, 09:07:14 AM »
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.

Code: [Select]
<?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>
« Last Edit: December 10, 2013, 02:13:36 AM by Kalle »
***********  get excited and make things  **********

maxwel

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 1
    • View Profile
Re: play trailers of local media
« Reply #5 on: February 05, 2014, 03:50:34 PM »
Thank for your response kalle. I really appreciate your time.

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

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: play trailers of local media
« Reply #6 on: February 06, 2014, 08:57:25 AM »
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

  • Jr. Member
  • **
  • Posts: 39
  • Karma: 1
    • View Profile
Re: play trailers of local media
« Reply #7 on: February 06, 2014, 01:06:12 PM »
Hi nime5ter

Thanks you so much man

Grtz