A method for switching the video ringback tone playback clarity in real time
By detecting network bandwidth changes in real time in the IVVR platform and switching video files, the problem of video playback lag caused by changes in the network environment in the prior art is solved, and a better user experience is achieved.
Patent Information
- Application Number
- CN202210784448.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-06-28
AI Technical Summary
The prior art has failed to respond to changes in the network environment and user terminal conditions in the IVVR platform in real time, resulting in stuttering in playing interactive videos, giving users a poor experience.
Media negotiation is carried out through the media server after receiving the call request, caches negotiation information and full code rate list, detects network bandwidth offset in real time, switches the closest video file to adapt to network changes, and uses heartbeat mechanism and background sub-thread to realize video ringtones Dynamic switching of sound.
It effectively solves the problem of stuttering video playback and provides a more stable video experience, especially when the network environment becomes worse, the video file can be switched to maintain clarity.
Smart Images

Figure CN115208981B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the fields of computer network transmission and video processing, and in particular to a method for real-time switching of video color ring tone playback clarity. Background Art
[0002] At present, the playback method of interactive videos on the IVVR platform is mostly based on one or two local videos with different bit rates and resolutions. After the user terminal and the IVVR platform complete the negotiation, a video file with a fixed bit rate and fixed resolution is selected for playback to the user terminal. However, the changes in the network environment and user terminal conditions during the playback process are not taken into account, which causes the interactive response video played on the terminal to freeze, giving the user a bad experience. Summary of the invention
[0003] To achieve the above object, the present invention provides the following technical solution: a method for real-time switching of video ringback tone playback clarity, the switching method comprising the following steps:
[0004] Step 1: The IVVR platform accepts the call request initiated by the caller, and the calling terminal and the media server MS perform media negotiation. The media server MS caches the negotiation result information into the database and records it as negotiation information, which includes network information, negotiation result information, and terminal information.
[0005] Step 2: Under the instruction of the media server MS, the application server AS finds out the full bit rate list corresponding to the ring tone ID played by the calling terminal, and caches the full bit rate list to the database, recording it as full bit rate list information;
[0006] Step 3: The media server MS compares the network bandwidth in the negotiation information with the bit rate list in the full bit rate list information, selects a video ringtone file with the closest ringtone bit rate to play to the user terminal, and caches the bit rate corresponding to this playback into the database and records it as the initial playback bit rate information.
[0007] Step 4: After the media server MS starts playing, it detects the real-time network bandwidth between the calling terminal and the media server MS in real time, and compares it with the network bandwidth in the initial playback bit rate information to obtain the network bandwidth offset. When the network bandwidth offset reaches the preset offset, it finds the video file closest to the current bit rate requirement from the full bit rate list information and overwrites the initial playback bit rate information.
[0008] Step 5: When the background sub-thread detects that the initial playback bit rate information has changed, the media server MS initiates a ring tone switching notification to the user terminal, and the user terminal re-initiates a negotiation request to the media server MS, jumps back to step 1, and completes a video ring tone switch.
[0009] Preferably, the network information includes the average bandwidth of the current network and the caller location information; the negotiation result information includes the maximum bandwidth, profile-level-id, resolution, and frame rate allowed for data transmission; and the terminal information includes terminal number information.
[0010] Preferably, the full bitrate list includes fields of video resource ID, resolution, bitrate requirement, and video location.
[0011] Preferably, the database is a Redis database.
[0012] Preferably, in step 4, after the media server MS starts playing the sound, a new background sub-thread is started, and the background sub-thread uses a heartbeat method to send a detection packet to the calling terminal for real-time detection.
[0013] Beneficial effects:
[0014] In the present invention, when a user dials a hotline number, an application server sends a video instruction to a media server, the media server initiates a negotiation request, the user terminal completes the negotiation with the media server through a core network, the media server receives the negotiation result, and caches the negotiation result information. While the media server is playing the audio for the user, a background thread is started at the same time. The background thread uses a heartbeat mechanism to detect the current network status and collects the information about the video playback effect of the terminal. When a switching condition is triggered, the background thread switches to a new video file to change the clarity of the video ringback tone playback. In this way, a clearer video can be played by switching the video ringback tone file while reducing the deterioration of the network environment, thereby solving the problem of video playback freeze or jitter, so as to provide users with a better experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a flow chart of the present invention;
[0016] Figure 2 A flow chart of switching the playback clarity of the video ringback tone provided by the present invention; DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] A method for switching the playback clarity of a video ring back tone in real time, the switching method comprising the following steps:
[0019] Step 1: The IVVR platform accepts the call request initiated by the caller. The calling terminal and the media server MS conduct media negotiation. The media server MS caches the negotiation result information in the Redis database and records it as negotiation information (consultation_Info). The negotiation information includes network information, negotiation result information and terminal information. The network information includes the average bandwidth of the current network and the caller's location information. The negotiation result information includes the maximum bandwidth allowed for data transmission, profile-level-id, resolution, frame rate, and terminal information including terminal number information.
[0020] Step 2: The media server MS sends the call instruction to the application server AS. The application server AS selects the ringtone ID to be played according to the background business logic, and issues a playback instruction to the media server MS to play the ringtone. AS searches the full bitrate list of the ringtone from the ringtone resource resolution table in the database, and caches the full bitrate list to the Redis database, recording it as the full bitrate list information (Ring_Separate_Rate_List). In order to switch the ringtone when the network condition deteriorates, the ringtone switching flag needs to be set, and its initial value changeflag is 0.
[0021] Step 3: The media server MS compares the current network bandwidth of the consultation information (consultation_Info) with the bit rate list of the full bit rate list information (Ring_Separate_Rate_List), selects a ring tone index ID with the closest ring tone bit rate and the corresponding ring tone file location information of the ring tone index ID, and the media server MS finds the video ring tone entity file on the resource server RS according to the location information and plays it to the user terminal, and caches the current bit rate corresponding to this playback to Redis, and records it as the initial playback bit rate information (Current_Separate_Rate_Info);
[0022] Step 4: After the media server MS starts playing, a new subthread is started, which uses the heartbeat method to send a detection packet to the calling terminal, checks the current network bandwidth, collects the current location status of the media server to the calling terminal, obtains the real-time bandwidth between the calling terminal, and reads the bandwidth of the last negotiation from the initial playback bit rate information (Current_Separate_Rate_Info), compares and obtains the offset. When the network bandwidth offset reaches the preset offset, the video index ID and the corresponding video ringtone file position closest to the current bit rate requirement are found from the cached full bit rate list information (Ring_Separate_Rate_Info), and the cached initial playback bit rate information (Current_Separate_Rate_Info) is overwritten, and the ringtone switching flag changeflag=1 is modified.
[0023] Step 5: The background thread detects that the ringtone switching flag has changed to changeflag=1, the media server MS initiates a ringtone switching notification to the user terminal, resets the ringtone switching flag changeflag=0, and the user terminal re-initiates a negotiation request to the media server MS, jumping back to step 1 to achieve the purpose of a video ringtone switch.
[0024] In the present invention, when a user dials a hotline number, an application server sends a video instruction to a media server, the media server initiates a negotiation request, the user terminal completes the negotiation with the media server through a core network, the media server receives the negotiation result, and caches the negotiation result information. While the media server is playing the audio for the user, a background thread is started at the same time. The background thread uses a heartbeat mechanism to detect the current network status and collects the information about the video playback effect of the terminal. When a switching condition is triggered, the background thread switches to a new video file to change the clarity of the video ringback tone playback. In this way, a clearer video can be played by switching the video ringback tone file while reducing the deterioration of the network environment, thereby solving the problem of video playback freeze or jitter, so as to provide users with a better experience.
[0025] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for switching the playback clarity of a video ring back tone in real time, characterized by: The switching method comprises the following steps: Step 1: The IVVR platform accepts the call request initiated by the caller, and the calling terminal and the media server MS perform media negotiation. The media server MS caches the negotiation result information into the database and records it as negotiation information, which includes network information, negotiation result information, and terminal information. Step 2: Under the instruction of the media server MS, the application server AS finds out the full bit rate list corresponding to the ring tone ID played by the calling terminal, and caches the full bit rate list to the database, recording it as full bit rate list information; Step 3: The media server MS compares the network bandwidth in the negotiation information with the bit rate list in the full bit rate list information, selects a video ringtone file with the closest ringtone bit rate to play to the user terminal, and caches the bit rate corresponding to this playback into the database, recording it as the initial playback bit rate information; Step 4: After the media server MS starts playing, it detects the real-time network bandwidth between the media server MS and the calling terminal in real time, and compares it with the network bandwidth in the initial playback bit rate information to obtain the network bandwidth offset. When the network bandwidth offset reaches the preset offset, it finds the video file closest to the current bit rate requirement from the full bit rate list information and overwrites the initial playback bit rate information. After the media server MS starts playing, it starts a new background sub-thread, which uses the heartbeat method to send a detection packet to the calling terminal for real-time detection. Step 5: When the background subthread detects that the initial playback bit rate information has changed, the media server MS initiates a ring tone switching notification to the user terminal. The user terminal re-initiates a negotiation request to the media server MS, jumps back to step 1, and completes a video ring tone switch.
2. The method for real-time switching of video ringback tone playback clarity according to claim 1, characterized in that: The network information includes the average bandwidth of the current network and the caller location information; the negotiation result information includes the maximum bandwidth, profile-level-id, resolution, and frame rate allowed for transmission of data; and the terminal information includes the terminal number information.
3. The method for real-time switching of video ringback tone playback clarity according to claim 1, characterized in that: The full bitrate list includes the following fields: video resource ID, resolution, bitrate requirement, and video location.
4. The method for real-time switching of video ringback tone playback clarity according to claim 1, characterized in that: The database is a Redis database.
