User Tools

Site Tools


macros:example:setpbpriority

Example

Set Playback Priority

by: Sebastian Beutel, February 2022
published: here
description: set a playback's priority
remarks: idea: https://www.facebook.com/groups/Avolites/posts/2423569344441952?comment_id=2423573241108229&reply_comment_id=2423589471106606

functions

affected properties

Code

PbPriority.xml
<?xml version="1.0" encoding="utf-8"?>
<avolites.macros">
 <macro name="PB 100 VeryHighPriority" id="Wiki.Macros.PB100.VeryHighPriority">
    <sequence>
      <step>Playbacks.Select.EditHandle("playbackHandleUN=100")</step>
      <step>ActionScript.SetProperty.Enum("HandleOptions.Playbacks.Priority","MaximumPriority")</step>
    </sequence>
  </macro>
  <macro name="PB 100 HighPriority" id="Wiki.Macros.PB100.HighPriority">
    <sequence>
      <step>Playbacks.Select.EditHandle("playbackHandleUN=100")</step>
      <step>ActionScript.SetProperty.Enum("HandleOptions.Playbacks.Priority","HighPriority")</step>
    </sequence>
  </macro>
  <macro name="PB 100 NormalPriority" id="Wiki.Macros.PB100.NormalPriority">
    <sequence>
      <step>Playbacks.Select.EditHandle("playbackHandleUN=100")</step>
      <step>ActionScript.SetProperty.Enum("HandleOptions.Playbacks.Priority","MediumPriority")</step>
    </sequence>
  </macro>
</avolites.macros>

Explanation

This explains the functional steps within the sequence. For all the other XML details please refer to Formats and syntax

  • Playbacks.Select.EditHandle selects a specific handle (here: by its userNumber)
  • ActionScript.SetProperty.Enum(“HandleOptions.Playbacks.Priority”,…) sets the selected playback's priority

How to use it

  1. give the playback which you want to treat userNumber 100
  2. fire the macro when needed
You could leave a comment if you were logged in.
macros/example/setpbpriority.txt · Last modified: 2022/02/08 12:53 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki