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

Completion threshold #68

Open
lebaudantoine opened this issue Aug 17, 2023 · 4 comments
Open

Completion threshold #68

lebaudantoine opened this issue Aug 17, 2023 · 4 comments

Comments

@lebaudantoine
Copy link
Contributor

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe.
Make accessible the completion threshold of a video to the frontend. This metric was supported in Postie, and designed in the Figma Wireframe.

The completion threshold stands as a value assigned to each video and configured within Marsha. Presently, we employ this value to ascertain the completion status of views and downloads.

Describe the solution you'd like

Our ideal solution involves the implementation of a straightforward API endpoint. This endpoint will require the video's unique identifier (UID) as a request parameter. The primary purpose of this API is to procure contextual information to the video, including its completion threshold.

Describe alternatives you've considered

  • Experience index and resource's context retrieval: This involves waiting for the experience index and subsequently retrieving the video's context, which encompasses the completion threshold.

  • Integration with existing endpoints: Another consideration is to incorporate this functionality into the existing views or download endpoints.

@lebaudantoine
Copy link
Contributor Author

lebaudantoine commented Aug 17, 2023

@quitterie-lcs is this a constant value? Can it be updated in Marsha?

If the completion threshold is editable, we should fetch the latest initiliazed statement, and get its value from it. Would it be acceptable?

@quitterie-lcs
Copy link
Contributor

Yes, it is a constant value. It is computed for each video in marsha. You can find here its computation. It should not be possible to update it, as it is computed with the video duration

@lebaudantoine
Copy link
Contributor Author

Nice !! What do you think of a new route /{video_id:path}/completion-threshold for such logic? @quitterie-lcs

@quitterie-lcs quitterie-lcs added this to the 1.0 milestone Aug 18, 2023
@jmaupetit
Copy link
Contributor

What about a more generic /{video_id:path}/info providing the video name, its duration, completion threshold, etc.?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

3 participants