Skip to content

End event#135

Merged
HarishGangula merged 5 commits intoSunbird-Knowlg:developfrom
JeraldJF:end-event
Apr 9, 2026
Merged

End event#135
HarishGangula merged 5 commits intoSunbird-Knowlg:developfrom
JeraldJF:end-event

Conversation

@JeraldJF
Copy link
Copy Markdown
Collaborator

@JeraldJF JeraldJF commented Apr 8, 2026

  1. Changes in the Player Repositories (The "Emission" Fix)

a. Synchronous END Event: exitContent and ngOnDestroy ogic in the PDF, ePub, and Video players to explicitly and synchronously call raiseEndEvent()
b. Previously, they depended on logic that could be safely executed in a browser but was too slow/fragile for a mobile "Hardware Back" navigation.

@JeraldJF JeraldJF marked this pull request as ready for review April 8, 2026 10:16
@HarishGangula HarishGangula requested a review from Copilot April 9, 2026 05:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to ensure the PDF player emits an END telemetry event synchronously when the user exits content (to be more reliable during fast navigations like mobile hardware back), and bumps the web-component package version accordingly.

Changes:

  • Add an explicit viewerService.raiseEndEvent() call in the PDF player’s exitContent() handler.
  • Bump @project-sunbird/sunbird-pdf-player-web-component version from 2.0.0 to 2.0.1.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
projects/sunbird-pdf-player/src/lib/sunbird-pdf-player.component.ts Ensures an END event is emitted when the end-page “exit” action is triggered.
web-component/package.json Publishes the change via a patch version bump.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread projects/sunbird-pdf-player/src/lib/sunbird-pdf-player.component.ts
Comment thread web-component/package.json
@HarishGangula HarishGangula merged commit 12a2a14 into Sunbird-Knowlg:develop Apr 9, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

3 participants