Recently Viewed Content Listing
Overview:
When user plays any content should list on Recently Viewed list.
Problem statement:
When user plays any content from book then is listing in Recently Viewed list, but when user plays any content by clicking next and previous from player, its not listing.
Current Implementation:
- When user clicks on play button in app, calling the SDK API setContentMarker. In this API passing the userid, contentid and content metadata in request body.
Scenarios:
- Play from content detail page.
- Play from flatten screen after DIAL code scan search.
- Next and previous button click from player.
- Switch user from player.
Proposed Design:
Solution 1:
- Listen the START event for pid: contentplayer and then call the setContentMarker in one common place. And remove from play button click.
Solution 2:
- Call the setContentMarker as it is from play button click from app.
- Call the same API on next and previous click from player.
Pros and Cons:
Solution | Pros | Cons |
---|---|---|
1 |
| |
2 |
|