Author Topic: Theater Experience - "Cinema Experience" the VoxCommando way  (Read 1724 times)

0 Members and 1 Guest are viewing this topic.

PegLegTV

  • $upporter
  • Hero Member
  • *****
  • Posts: 500
  • Karma: 43
    • View Profile
Theater Experience - "Cinema Experience" the VoxCommando way
« on: August 09, 2015, 01:55:55 AM »
these commands are based off of XBMC/kodi "Cinema Experience (CE)" addon

I've made these commands because I haven't had the best of luck with CE working all the time, I like to play a couple short videos before I play trailers but we don't use trivia so most the time it would skip the first couple videos and go straight to the trailers or it would skip the opening videos and the trailers and skip to my last couple videos before the movie would start,

so I made my own commands that will achieve what I wanted, all the commands Can play the following

#*Random Local Video
*Random Local video
Youtube movie trailer
Youtube movie trailer
Youtube movie trailer
Youtube movie trailer
*Random Local Video
*Random Local Video
play the selected Movie

*= your own videos,

#=you will need to set an intro video for this to work, as that is what starts the playlist (if I start the playlist after adding all the videos, for some reason some of the local media will repeat its self)

in order to use these actions you will need to add your file path for each video that you want to add, and enable the actions,

the easiest way to have it play random videos is to name them like so:
Quote
Intro (1).mp4, Intro (2).mp4 | Refreshments (1).mp4 | Short (1).mp4....

and then make sure the action equals the same amount of videos that you have, so if you have 8 Intro videos then your file path should look like

Code: [Select]
Your\File\Path\To\Intro ({Rnd.1.8}).mp4 If your videos are in a different format then mp4 then change the extension in the action accordingly
 NOTE: if you are using videos that are shared across the network then the file paths need to start with   smb:


There are 3 different commands in this group

"Theater Experience" - Used while browsing your movies

"Theater Experience anywhere" - used anywhere with media from your library

"Theater Experience Streaming" - used with streaming addons (if it is a link based addon then you will have to use it on the link that you want to use) (Caution, this could be used on any video media TV Shows, Music Videos)

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.7-->
<commandGroup open="True" name="Theater Experience" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="249" name="Theater Experience" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Playlist.Clear</param>
        <param>"playlistid": 1</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>XBMC.GetInfoBooleans</param>
        <param>"booleans": ["Container.Content(movies)"]</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <if ifBlockDisabled="False" ifNot="False">
      <ifType>(A)Contains(B)</ifType>
      <ifParams>{LastResult}&amp;&amp;true</ifParams>
      <then>
        <action>
          <cmdType>XJson.Raw</cmdType>
          <params>
            <param>XBMC.GetInfoLabels</param>
            <param>"labels": ["ListItem.Title", "ListItem.FileNameAndPath"]</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>Results.RegEx</cmdType>
          <params>
            <param>:\s"(.*?)"</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>Results.SetVar</cmdType>
          <params>
            <param>TE MoviePath</param>
            <param>{Match.1.1}</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>Results.SetVar</cmdType>
          <params>
            <param>TE MovieName</param>
            <param>{Match.2.1}</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>TTS.SpeakSync</cmdType>
          <params>
            <param>preparing {Var.TE MovieName} for your movie theater experiance, Enjoy the show</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>XJson.Raw</cmdType>
          <params>
            <param>Playlist.Clear</param>
            <param>"playlistid": 1</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>XJson.Raw/</cmdType>
          <params>
            <param>Player.Open</param>
            <param>"item": {"file":"YOUR\FILE\PATH\TO\Intro ({Rnd.1.5}).mp4"}</param>
          </params>
          <cmdRepeat>0</cmdRepeat>
        </action>
        <action>
          <cmdType>XJson.Raw</cmdType>
          <params>
            <param>Playlist.Clear</param>
            <param>"playlistid": 1</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>XJson.Raw/</cmdType>
          <params>
            <param>Playlist.Add</param>
            <param>"playlistid": 1, "item": {"file":"YOUR\FILE\PATH\TO\Refreshments ({Rnd.1.2}).mp4" }</param>
          </params>
          <cmdRepeat>0</cmdRepeat>
        </action>
        <action>
          <cmdType>Scrape</cmdType>
          <params>
            <param>https://www.youtube.com/user/movieclipsTRAILERS/videos</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>Results.RegEx</cmdType>
          <params>
            <param>data-context-item-id="(.*?)"</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>XJson.Raw/</cmdType>
          <params>
            <param>Playlist.Add</param>
            <param>"playlistid": 1, "item": {"file":"plugin://plugin.video.youtube/play/?video_id={Match.{Rnd.1.5}.1}" }</param>
            <param>YouTube Trailer</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>XJson.Raw/</cmdType>
          <params>
            <param>Playlist.Add</param>
            <param>"playlistid": 1, "item": {"file":"plugin://plugin.video.youtube/play/?video_id={Match.{Rnd.6.10}.1}" }</param>
            <param>YouTube Trailer</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>XJson.Raw/</cmdType>
          <params>
            <param>Playlist.Add</param>
            <param>"playlistid": 1, "item": {"file":"plugin://plugin.video.youtube/play/?video_id={Match.{Rnd.11.15}.1}" }</param>
            <param>YouTube Trailer</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>XJson.Raw/</cmdType>
          <params>
            <param>Playlist.Add</param>
            <param>"playlistid": 1, "item": {"file":"plugin://plugin.video.youtube/play/?video_id={Match.{Rnd.16.20}.1}" }</param>
            <param>YouTube Trailer</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>XJson.Raw/</cmdType>
          <params>
            <param>Playlist.Add</param>
            <param>"playlistid": 1, "item": {"file":"YOUR\FILE\PATH\TO\Shorts ({Rnd.1.4}).mp4" }</param>
          </params>
          <cmdRepeat>0</cmdRepeat>
        </action>
        <action>
          <cmdType>XJson.Raw/</cmdType>
          <params>
            <param>Playlist.Add</param>
            <param>"playlistid": 1, "item": {"file":"YOUR\FILE\PATH\TO\Feature Presentation ({Rnd.1.4}).mp4" }</param>
          </params>
          <cmdRepeat>0</cmdRepeat>
        </action>
        <action>
          <cmdType>XJson.Raw/</cmdType>
          <params>
            <param>Playlist.Add</param>
            <param>"playlistid": 1, "item": {"file":"{Var.TE MoviePath}"}</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
      </then>
      <else />
    </if>
    <phrase>Take me to the movies, take us to the movies</phrase>
  </command>
  <command id="256" name="Theater Experience anywhere" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="if you are using videos that are shared across the network then the file paths need to start with   smb://&#xD;&#xA;I have all my videos named as such  Intro (1).mp4, Intro (2).mp4">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Playlist.Clear</param>
        <param>"playlistid": 1</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.SpeakSync</cmdType>
      <params>
        <param>preparing Movie {PF.1} for your movie theater experiance, Enjoy the show</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Playlist.Clear</param>
        <param>"playlistid": 1</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Player.Open</param>
        <param>"item": {"file":"YOUR\FILE\PATH\TO\Intro ({Rnd.1.5}).mp4"}</param>
      </params>
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Playlist.Clear</param>
        <param>"playlistid": 1</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"YOUR\FILE\PATH\TO\Refreshments ({Rnd.1.2}).mp4" }</param>
      </params>
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>Scrape</cmdType>
      <params>
        <param>https://www.youtube.com/user/movieclipsTRAILERS/videos</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>data-context-item-id="(.*?)"</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"plugin://plugin.video.youtube/play/?video_id={Match.{Rnd.1.5}.1}" }</param>
        <param>YouTube Trailer</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"plugin://plugin.video.youtube/play/?video_id={Match.{Rnd.6.10}.1}" }</param>
        <param>YouTube Trailer</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"plugin://plugin.video.youtube/play/?video_id={Match.{Rnd.11.15}.1}" }</param>
        <param>YouTube Trailer</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"plugin://plugin.video.youtube/play/?video_id={Match.{Rnd.16.20}.1}" }</param>
        <param>YouTube Trailer</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"YOUR\FILE\PATH\TO\Shorts ({Rnd.1.4}).mp4" }</param>
      </params>
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"YOUR\FILE\PATH\TO\Featured Presentation ({Rnd.1.4}).mp4" }</param>
      </params>
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"movieid":{1}}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Show me the full experience with, I want to go to the movies and watch, I want to go to the movies to watch</phrase>
    <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">XbmcPayloads\xbmcMovieIDs.xml</payloadFromXML>
  </command>
  <command id="252" name="Theater Experience Streaming" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Playlist.Clear</param>
        <param>"playlistid": 1</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>XBMC.GetInfoLabels</param>
        <param>"labels": ["ListItem.Title", "ListItem.FileNameAndPath"]</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>:\s"(.*?)"</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.SetVar</cmdType>
      <params>
        <param>TE MoviePath</param>
        <param>{Match.1.1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.SetVar</cmdType>
      <params>
        <param>TE MovieName</param>
        <param>{Match.2.1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.SpeakSync</cmdType>
      <params>
        <param>preparing {Var.TE MovieName} for your movie theater experiance, Enjoy the show</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Playlist.Clear</param>
        <param>"playlistid": 1</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Player.Open</param>
        <param>"item": {"file":"YOUR\FILE\PATH\TO\Intro ({Rnd.1.5}).mp4"}</param>
      </params>
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw</cmdType>
      <params>
        <param>Playlist.Clear</param>
        <param>"playlistid": 1</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"YOUR\FILE\PATH\TO\Refreshments ({Rnd.1.2}).mp4" }</param>
      </params>
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>Scrape</cmdType>
      <params>
        <param>https://www.youtube.com/user/movieclipsTRAILERS/videos</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>data-context-item-id="(.*?)"</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"plugin://plugin.video.youtube/play/?video_id={Match.{Rnd.1.5}.1}" }</param>
        <param>YouTube Trailer</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"plugin://plugin.video.youtube/play/?video_id={Match.{Rnd.6.10}.1}" }</param>
        <param>YouTube Trailer</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"plugin://plugin.video.youtube/play/?video_id={Match.{Rnd.11.15}.1}" }</param>
        <param>YouTube Trailer</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"plugin://plugin.video.youtube/play/?video_id={Match.{Rnd.16.20}.1}" }</param>
        <param>YouTube Trailer</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"YOUR\FILE\PATH\TO\Shorts ({Rnd.1.4}).mp4" }</param>
      </params>
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"YOUR\FILE\PATH\TO\FP ({Rnd.1.4}).mp4" }</param>
      </params>
      <cmdRepeat>0</cmdRepeat>
    </action>
    <action>
      <cmdType>XJson.Raw/</cmdType>
      <params>
        <param>Playlist.Add</param>
        <param>"playlistid": 1, "item": {"file":"{Var.TE MoviePath}"}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Streaming Experience</phrase>
  </command>
</commandGroup>





« Last Edit: November 10, 2015, 02:06:20 AM by PegLegTV »