Single-View Video Playback State Control for Flashing Videos
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing video systems lack the ability to ensure that flashing videos, which can only be played once per user, maintain a consistent playing effect, leading to suboptimal user experience due to repeated playback possibilities.
Innovation Solution
A method and apparatus that determine whether a target video belongs to a preset type allowing single playback by checking a video state identifier in a server and local history, ensuring the video is not marked as viewed before allowing playback, and displaying a destroyed state if it has been viewed.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If video state management is implemented to ensure flashing videos are played only once per user, then user viewing experience is improved, but system complexity increases due to server and local history record management
Solution Approach 1:
The video state management system is segmented into two independent components: server-side state management (using hasViewed identifiers in video playing history information) and local client-side state management (using local history records). This segmentation allows each component to handle specific aspects of state tracking, improving reliability while distributing system complexity across multiple manageable modules rather than concentrating it in a single complex system.
2Measurement precision
If dual-state checking (server and local) is performed to prevent repeated playback, then playback control accuracy is improved, but processing time increases
Solution Approach 1:
The system performs preliminary state checking by first querying the local history record before contacting the server. This preliminary action allows the system to quickly determine playback status for commonly accessed videos using local cached data, reducing the need for server round-trips and minimizing processing time while maintaining accurate state detection through the subsequent server verification when needed.
Data Source
AI summary
The present disclosure provides a video processing method and apparatus, a device, and a storage medium. The method includes: firstly, determining whether a type of a target video is a preset video type, where the preset video type is a video type that indicates supporting playing once for each user; determining whether a video state identifier of the target video is a hasViewed identifier if the type of the target video is determined to be the preset video type, where the video state identifier is used for characterizing whether a playing state of the target video, recorded in a server, for a current user is a hasViewed state; and then playing the target video if the video state identifier is determined not to be the hasViewed identifier.


