ReproNim / reproschema-ui

UI to render ReproSchema based protocols and assessments.
https://www.repronim.org/reproschema-ui/
Other
3 stars 18 forks source link

Insert video within session #281

Open danielmlow opened 3 years ago

danielmlow commented 3 years ago

@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/

@sanuann , @djarecka

satra commented 3 years ago

@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 commented 3 years ago

@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 commented 2 years ago

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
            }
        ]
    }