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

xAPI video statements do not emit required played-segments extension #234

Open
e0d opened this issue Sep 21, 2022 · 1 comment
Open

xAPI video statements do not emit required played-segments extension #234

e0d opened this issue Sep 21, 2022 · 1 comment

Comments

@e0d
Copy link
Contributor

e0d commented Sep 21, 2022

Definition:

Played segments data shows parts of the video the actor watched during current registration in chronological order.

Requirements

The LRP MUST assign played-segments value to statements with "paused", "terminated" and "completed" verbs.The LRP MAY assign played-segments value to other statements.Value is a string. Each part of the video watched is separated with [,]. The 'Time From' and 'Time To' values are separated with [.].The time values must match the values recorded as time, time-to and time-from in played, paused, seeked statements.

Played segments data shows parts of the video the actor watched during current registration in chronological order.
LRP Obligations
The LRP MUST assign played-segments value to statements with "paused", "terminated" and "completed" verbs.
The LRP MAY assign played-segments value to other statements.
Value is a string. Each part of the video watched is separated with [,]. The 'Time From' and 'Time To' values are separated with [.].
The time values must match the values recorded as time, time-to and time-from in played, paused, seeked statements.

The emitted statement should include

  "result": {
        "extensions": {
            "https://w3id.org/xapi/video/extensions/played-segments": "0[.]2.997",
            "https://w3id.org/xapi/video/extensions/progress": 0.06,
            "https://w3id.org/xapi/video/extensions/time": 2.997
        }
    }

Relevant code.

@e0d e0d added this to the xapi-video-profile milestone Sep 21, 2022
@ziafazal
Copy link
Contributor

ziafazal commented Dec 7, 2022

@e0d It appears played-segments are not emitted by video player. I think we first need to figure out how we can emit played-segments in original event and then add it in xAPI/caliper events.

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