Skip to content

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

@e0d

Description

@e0d

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions