Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store and project any set of movies, ultimately in CL #22

Open
davidt0x opened this issue Feb 8, 2022 · 2 comments
Open

Store and project any set of movies, ultimately in CL #22

davidt0x opened this issue Feb 8, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@davidt0x
Copy link
Contributor

davidt0x commented Feb 8, 2022

Store and project any set of movies, ultimately in CL. This was in Megan's original email specifying open issues but I am unsure about the details. Any comments on this @r-shruthi11

@davidt0x davidt0x added the enhancement New feature or request label Feb 8, 2022
@davidt0x davidt0x self-assigned this Feb 8, 2022
@nzjrs
Copy link
Collaborator

nzjrs commented Feb 8, 2022

If 'any set of movies' is synonymous with any video stimulus without having to put it in the playlist then this is already there BUT, as much as I am luke warm about the playlist concept, it does provide the necessary opportunity for the backend psychopy code to setup and construct the visual stimuli (and psychopy setup is slow). If you lazily construct a video plalist item (a movie?) then you will pay the delay cost.

That said,

def play_backend_item(self, backend, **conf):
Experiment.play_backend_item should let you send any video playlist item stanza without having it in the playlist ahead of time - however the video server will take however long it takes to init this
stim = stimulus_factory(defn['name'], **defn.get('configuration', {}))
before showing it which adds latency. I always favoured the tradeoff of preconfiguring the playlist items to save the latency switch.

Wrt. CL - Experiment.item_mutate

def item_mutate(self, backend, identifier, attribute, value):
lets you change the attribute of a backend playlist item attribute, to do CL manipulation of any attribute in a video playlist item
q.put(elem['video_mutate'])
and
setattr(_stim.p, _attr, _value)
(from memory)

@nzjrs
Copy link
Collaborator

nzjrs commented Feb 8, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants