Video Playback Continuity During App Background Switching
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current video playback solutions fail to provide an ideal user experience when users switch from a non-background running state to a background running state, as they often stop video streams or fail to recommend suitable videos for background playback.
Innovation Solution
A method and apparatus that detect the switch from a non-background to a background running state, continue playing the first video, and determine a second video from a second video candidate set using historical user operation information and a background video recommendation model, ensuring continuous playback and personalized recommendations.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of operation
If the video stream is pushed to users in non-background running state, then the user can watch videos interactively, but the video playback stops when the user switches to other applications or goes to desktop
Solution Approach 1:
The system dynamically adjusts video playback behavior based on the application's running state. When transitioning from non-background to background running state, the system continues playing the current video and pre-loads the next video from the second video candidate set, ensuring seamless playback continuity regardless of user screen state changes.
Solution Approach 2:
The system performs preliminary actions by pre-loading the next video from the second video candidate set before the current video finishes playing. This ensures that when the user returns to the application or switches screens, the video playback can continue without interruption, improving both ease of operation and delivery reliability.
2Adaptability or versatility
If the same video candidate set is used for both non-background and background playback modes, then the recommendation system is simple, but the video recommendations are not optimized for background playback scenarios
Solution Approach 1:
The video candidate set is segmented into two distinct sets: the first video candidate set for non-background playback mode and the second video candidate set for background playback mode. This segmentation allows each set to be optimized for its specific playback scenario, improving recommendation adaptability while maintaining manageable system complexity through clear separation of concerns.
Solution Approach 2:
The system applies local quality by tailoring the video recommendation characteristics to the specific playback mode. The second video candidate set is specifically constructed with videos suitable for background playback (such as shorter duration, audio-focused content), while the first set maintains general video recommendations for interactive viewing, optimizing each local context appropriately.
Data Source
AI summary
Disclosed in the embodiments of the present disclosure are a video playing method and apparatus, and a device and a storage medium. The method comprises: detecting that a preset application program is switched from a non-background running state to a background running state during the process of playing a first video; continuing to play the first video in the background by means of the preset application program, and determining a second video from a second video candidate set according to historical operation information of the current user for the preset application program and a preset background video recommendation model; and when a preset video switching event is detected, playing the second video in the background by means of the preset application program.


