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

Insert video within session #281

Open
danielmlow opened this issue Nov 1, 2021 · 3 comments
Open

Insert video within session #281

danielmlow opened this issue Nov 1, 2021 · 3 comments

Comments

@danielmlow
Copy link

@satra has the video been implemented?

We had said we'd upload meditation recordings as videos to youtube. I uploaded one:
https://youtu.be/xrGsuj9-jSM

I don't know how to implement it, this was my best guess (it was wrong):
https://github.com/danielmlow/WellBeingStudy_daily/blob/a5cea4c58c0f7121fcb9b8a19e2ba2266ef60818/activities/daily_activity/items/meditation_1#L11

Here it says "video" is a possible parameter of Activity: https://www.repronim.org/reproschema/30_schema/

  • Alternative solutions if youtube is not implemented: play video/audio from a Google Drive or repo
  • Alternative solutions if video is not implemented: play audio saved in a repo

@sanuann , @djarecka

@satra
Copy link
Contributor

satra commented Nov 1, 2021

@danielmlow - i thought when we discussed it many months back there was no video, it was a static image with audio, which should be fine. for video playback can't you just embed a youtube player in the description since html is allowed?

@danielmlow
Copy link
Author

@satra ahh, I see. thanks!!

Are there any options for just having a Next button after people are finished with the video?

I just have a text box, cause I don't know how to put a Next button:
https://github.com/danielmlow/WellBeingStudy_daily/blob/281cab960cecd0cf7012d874f799d10997cb227d/activities/daily_activity/items/meditation_2#L10

You can see/play with it under the "Short Daily Activity" button in the menu:
https://www.repronim.org/reproschema-ui/#/?url=https://raw.githubusercontent.com/danielmlow/WellBeingStudy_daily/master/protocol/WellBeing_schema

Here are the UI options:
https://github.com/ReproNim/reproschema-ui/#text-inputs

static removes all buttons, but then the item does not advance.
StaticReadOnly is not available apparently.

I'd like a "Next" button available at any time. (people may choose to end the meditation earlier, which is better than abandoning the session).

@danielmlow
Copy link
Author

The short term solution was to include a single radio item that says "click here:

    "ui": {
        "inputType": "radio"
    },
    "responseOptions": {
        "valueType": "xsd:integer",
        "multipleChoice": false,
        "choices": [
            {
                "name": "Click here to continue",
                "value": 1
            }
        ]
    }

@danielmlow danielmlow changed the title [Time sensitive] Insert video within session Insert video within session Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants