View source: R/search_playresults_inquicktime.R
search_playresults_inquicktime | R Documentation |
The function remote controls 'Quicktime' by using an Apple Script. It opens consecutively all search results in 'Quicktime' and plays them.
search_playresults_inquicktime(x, s, bringQuicktimeToFront = FALSE)
x |
Corpus object. |
s |
Search object. |
bringQuicktimeToFront |
Logical; if |
Note: You need to be on a Mac to use this function.
No return value.
library(act) mysearch <- act::search_new(x=examplecorpus, pattern = "pero") # You can only use this function if you are on a Mac. # In addition, you need to have downloaded the example media files. ## Not run: # Assign media files examplecorpus@paths.media.files <- c("FOLDERWHEREMEDIAFILESARELOCATED") examplecorpus <- act::media_assign(examplecorpus) # Create print transcripts. This is not necessary. # But its nice to see them when playing all results. mysearch <- act::search_cuts_printtranscript (x=examplecorpus, s=mysearch) # Play all search results act::search_playresults_inquicktime(x=examplecorpus, s=mysearch) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.