Video Playback Continuity for Abnormal Early Stop Callbacks
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The issue of a video ending immediately after starting due to an underlying problem at the video player layer, particularly in the iOS system, affects the user experience for flashing video types that can only be played once.
Innovation Solution
A method to monitor play and stop callback events, calculate the time difference, and continue playing the video if the difference is within a preset threshold, thereby avoiding the immediate termination caused by the underlying player issue.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the video player responds to the stop callback event immediately after playing a flashing video, then the video playing is terminated according to normal logic, but this causes the video to end immediately after starting due to underlying player issues, deteriorating user experience
Solution Approach 1:
The patent applies preliminary anti-action by detecting the abnormal stop callback event (occurring within the time threshold after play initiation) and preemptively preventing the normal stop processing logic from executing. This counter-measure blocks the harmful effect of the underlying player issue before it can terminate the video playback, thereby maintaining reliable playback despite the player layer problem
Solution Approach 2:
The patent converts the harmful stop callback event into a beneficial detection opportunity. By monitoring the timing of stop callback events and identifying those that occur abnormally soon after playback starts, the system transforms a problematic event into a useful signal for detecting and handling underlying player issues, ultimately improving playback reliability
2Productivity
If the video player monitors and responds to stop callback events in real-time, then playback can be controlled according to user actions, but this increases system complexity and processing overhead
Solution Approach 1:
The patent applies local quality by implementing targeted monitoring only for flashing video types rather than all video types. The system selectively records timestamps and compares time differences only when dealing with flashing videos, thereby reducing the overall processing load and system complexity while maintaining efficient event response for the specific video type that requires it
Solution Approach 2:
The patent uses parameter changes by introducing a time threshold parameter to differentiate between normal and abnormal stop callback events. By comparing the time difference between play initiation and stop callback against this threshold, the system efficiently identifies problematic events without requiring complex analysis, thus maintaining high response efficiency with minimal processing overhead
Data Source
AI summary
The present disclosure provides a video processing method, apparatus, and device, and a storage medium, and the method includes: in a case where it is determined that a type of a target video belongs to a preset video type, recording a first timestamp when a play method call event for the target video is monitored, the preset video type being a video type that indicates only supporting playing once for each user; recording a second timestamp when a stop callback event corresponding to the play method call event is monitored; calculating a time difference between the second timestamp and the first timestamp and determining whether the time difference is smaller than a preset time threshold; and continuing to play the target video when the time difference is determined to be smaller than the preset time threshold.


