2
2
Media Actions
3
3
*/
4
4
5
- /* Stores */
6
-
5
+ // [Doc]: Search App Store
7
6
#define action searchAppStore(text query: 'WFSearchTerm')
8
7
8
+ // [Doc]: Show In iTunes
9
9
#define action 'showinstore' showIniTunes(variable product: 'WFProduct')
10
10
11
- /* Audio */
12
-
13
11
enum audioQuality {
14
12
'Normal',
15
13
'Very High',
@@ -31,8 +29,10 @@ enum audioSpeeds {
31
29
'2X',
32
30
}
33
31
32
+ // [Doc]: [Audio] Record Audio: Prompt the user to record audio.
34
33
#define action recordAudio(audioQuality ?quality: 'WFRecordingCompression' = "Normal", audioStart ?start: 'WFRecordingStart' = "On Tap")
35
34
35
+ // [Doc]: [Audio] Encode Audio: Encode audio to a different format and/or speed.
36
36
#define action 'encodemedia' encodeAudio(
37
37
variable audio: 'WFMedia',
38
38
audioFormats ?format: 'WFMediaAudioFormat' = "M4A",
@@ -41,10 +41,10 @@ enum audioSpeeds {
41
41
"WFMediaAudioOnly": true
42
42
}
43
43
44
+ // [Doc]: [Audio] Play Audio: Play a sound.
44
45
#define action playSound(variable input: 'WFInput')
45
46
46
- /* Shazam */
47
-
47
+ // [Doc]: [Shazam] Start Shazam: Prompt the user to play music for Shazam to recognize. Returns Shazam result.
48
48
#define action 'shazamMedia' startShazam(bool ?show: 'WFShazamMediaActionShowWhenRun' = true, bool ?showError: 'WFShazamMediaActionErrorIfNotRecognized' = true)
49
49
50
50
enum shazamDetail {
@@ -61,10 +61,10 @@ enum shazamDetail {
61
61
'Name',
62
62
}
63
63
64
+ // [Doc]: [Shazam] Get Shazam Detail: Get detail about a Shazam result.
64
65
#define action 'properties.shazam' getShazamDetail(variable input: 'WFInput', shazamDetail detail: 'WFContentItemPropertyName')
65
66
66
- /* Camera */
67
-
67
+ // [Doc]: [Camera] Take Photo: Prompt the user to take one or more photos.
68
68
#define action takePhoto(number count: 'WFPhotoCount' = 1, bool showPreview: 'WFCameraCaptureShowPreview' = true)
69
69
70
70
enum cameraOrientation {
@@ -83,19 +83,19 @@ enum recordingStart {
83
83
'Immediately',
84
84
}
85
85
86
+ // [Doc]: [Camera] Take Photo: Prompt the user to start recording a video.
86
87
#define action takeVideo(
87
88
cameraOrientation ?camera: 'WFCameraCaptureDevice' = "Front",
88
89
videoQuality ?quality: 'WFCameraCaptureQuality' = "High",
89
90
recordingStart ?recordingStart: 'WFRecordingStart' = "Immediately"
90
91
)
91
92
92
- /* Screenshots */
93
-
93
+ // [Doc]: Take Screenshot
94
94
#define action takeScreenshot(bool ?mainMonitorOnly: 'WFTakeScreenshotMainMonitorOnly' = false) {
95
95
"WFTakeScreenshotScreenshotType": "Full Screen"
96
96
}
97
-
98
- /* Podcasts */
97
+ // [Doc]: [Podcasts] Search Podcasts
98
+ #define action searchPodcasts(text query: 'WFSearchTerm')
99
99
100
100
enum podcastDetail {
101
101
'Feed URL',
@@ -109,20 +109,22 @@ enum podcastDetail {
109
109
'Name',
110
110
}
111
111
112
- #define action searchPodcasts(text query: 'WFSearchTerm')
113
-
112
+ // [Doc]: [Podcasts] Get Podcast Detail
114
113
#define action 'properties.podcastshow' getPodcastDetail(variable podcast: 'WFInput', podcastDetail detail: 'WFContentItemPropertyName')
115
114
115
+ // [Doc]: [Podcasts] Get Podcasts: Get users podcasts.
116
116
#define action 'getpodcastsfromlibrary' getPodcasts()
117
117
118
+ // [Doc]: [Podcasts] Play Podcast
118
119
#define action playPodcast(variable podcast: 'WFPodcastShow')
119
120
120
- /* Video Editing */
121
121
122
+ // [Doc]: Strip Media Metadata
122
123
#define action 'encodemedia' stripMediaMetadata(variable media: 'WFMedia') {
123
124
"Metadata": true
124
125
}
125
126
127
+ // [Doc]: Set Media Metadata
126
128
#define action 'encodemedia' setMetadata(
127
129
variable media: 'WFMedia',
128
130
variable ?artwork: 'WFMetadataArtwork',
@@ -152,6 +154,8 @@ enum encodeVideoSpeeds {
152
154
'2X',
153
155
}
154
156
157
+ // [Doc]: [Video Editing] Encode Video: Encode a video to a different format, size and/or speed.
155
158
#define action 'encodemedia' encodeVideo(variable video: 'WFMedia', encodeVideoSizes ?size: 'WFMediaSize' = "Passthrough", encodeVideoSpeeds ?speed: 'WFMediaCustomSpeed' = "Normal", bool ?preserveTransparency: 'WFMediaPreserveTransparency' = false)
156
159
160
+ // [Doc]: [Video Editing] Trim Video: Prompts the user to trim the video.
157
161
#define action trimVideo(variable video: 'WFInputMedia')
0 commit comments