Skip to content

Commit

Permalink
Update README sequence diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
gagan0123 committed Oct 10, 2023
1 parent 5bdea77 commit 37fb9ff
Showing 1 changed file with 32 additions and 25 deletions.
57 changes: 32 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,32 +184,39 @@ sequenceDiagram
participant User
participant DomainA
participant DomainB
participant YouTube as YouTube Embed Player
participant YouTube
Note over User,YouTube: Current Behaviour
User->>DomainA: Navigate to DomainA/embedded-video
DomainA->>YouTube: Load YouTube video
User->>YouTube: Click play & mute
User->>DomainB: Navigate to DomainB/embedded-video
DomainB->>YouTube: Load YouTube video
User->>YouTube: Click play
YouTube-->>User: Retained settings & recognize user
User->>YouTube: Check video history
YouTube-->>User: Display videos from DomainA & DomainB
User->>YouTube: Observe "watch later" button presence
Note over User,YouTube: After third-party cookie deprecation
User->>DomainA: Navigate to DomainA/embedded-video
DomainA->>YouTube: Load YouTube video
User->>YouTube: Click play
User->>DomainB: Navigate to DomainB/embedded-video
DomainB->>YouTube: Load YouTube video
User->>YouTube: Click play & mute
YouTube-->>User: Settings not retained
User->>YouTube: Check video history
YouTube-->>User: No videos from DomainA & DomainB
User->>DomainA: Open DomainA
activate DomainA
DomainA->>YouTube: Load YouTube Embed Player
activate YouTube
User->>YouTube: Play video
YouTube->>User: Stream video
User->>YouTube: Change preferences (quality, sound level, mute)
YouTube->>User: Apply preferences
deactivate YouTube
deactivate DomainA
User->>DomainB: Open DomainB
activate DomainB
DomainB->>YouTube: Load YouTube Embed Player
activate YouTube
User->>YouTube: Play video
YouTube->>User: Stream video
Note left of YouTube: Check for any existing preferences from previous interactions
YouTube-->>User: Display video with previous preferences (if any)
deactivate YouTube
deactivate DomainB
Note over User, DomainB: Verify if preferences are maintained across domains for the embedded content.
User->>YouTube: "watch later" button absent
```
### **Single Sign-On - Cross-Domain Single Sign-On**
Expand Down

0 comments on commit 37fb9ff

Please sign in to comment.