Cross-Device Media Session Stacks for Reliable Playback Control
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Media sessions in electronic devices cannot be effectively classified and managed, leading to issues where the system cannot control the playback status of media applications when media content is transferred to another device, resulting in poor user experience.
Innovation Solution
Implement a media session management method that migrates media sessions to separate stacks (migrateout and migratein) on the local and peer devices, allowing for the reconstruction of media sessions based on related information, enabling seamless control across devices.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Device complexity
If media sessions are placed in a unified local stack for management, then the system structure is simple, but the system cannot control playback status of media applications when media content is transferred to another device
Solution Approach 1:
The unified local stack is segmented into multiple stacks: local stack for locally created media sessions, migrateout stack for migrated-out media sessions, and migratein stack for migrated-in media sessions. This segmentation allows the system to track the status of each media session and determine which stack contains the active session, ensuring reliable playback control while maintaining manageable complexity through structured organization.
2Reliability
If media sessions are classified into separate stacks, then the system can accurately control playback status across devices, but the device complexity increases
Solution Approach 1:
The system implements feedback mechanisms where media session information includes metadata indicating which stack the session belongs to. When playback control operations are performed, the system queries the current stack location of the media session and routes control commands accordingly. This feedback loop ensures accurate control while automating the complexity management, reducing the burden on the system to manually track session locations across multiple stacks.
Data Source
AI summary
This application discloses a multiple stacks-based media session management method, an electronic device, and a computer-readable storage medium. The method includes: A first media device plays media content through a first media application, where a first media session corresponding to the first media application is placed into a first stack for management, and the first media session is used to control a playback status of the first media application; the first media device detects a request to play the media content of the first media application through a second media device; and the first media device migrates the first media session from the first stack to a second stack. Media sessions in different states are classified and managed, so that a system can avoid incorrect invoking of a media session that has been migrated out.


