CN-115203345-B - Video playing method, device and equipment in map and computer storage medium
Abstract
The application provides a video playing method, a device, equipment and a computer readable storage medium in a map; the method can be applied to fields including but not limited to map, navigation, automatic driving, intelligent transportation and the like, and comprises the steps of responding to interactive operation of a target control in a map display interface, sending a first acquisition request, receiving response information aiming at the first acquisition request and acquiring the target video data based on the response information, and displaying a video playing window on the map display interface, wherein the first acquisition request is used for acquiring target video data, and the target video data corresponds to the target control. The application can improve the information quantity and interaction richness provided by the electronic map.
Inventors
- ZHOU ZHITONG
Assignees
- 腾讯科技(深圳)有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20210412
Claims (20)
- 1. A method for playing video in a map, comprising: in response to a first operation to display a traffic scene, displaying a traffic scene map including at least one control therein, the at least one control corresponding to video data of a location point in the traffic scene map; responding to the interactive operation aiming at the target control in the at least one control, and sending a first acquisition request, wherein the first acquisition request is used for acquiring target video data of a preset event, and the target video data corresponds to the target control; Receiving response information aiming at the first acquisition request, and acquiring the target video data based on the response information, the position information of the preset event and the time information, wherein if the time interval between the time information of the preset event and the current moment is smaller than a threshold value, acquiring the video data acquired in real time; displaying a video playing window on the map display interface, wherein the video playing window is used for playing the target video data; Displaying confirmation information and a confirmation control corresponding to the target video data in the video playing window, wherein when the position information and the position point corresponding to the target video data meet the nearby condition, the confirmation control is enabled; the confirmation control comprises a first control for determining that the event corresponding to the target video data exists and a second control for determining that the event corresponding to the target video data does not exist, and the confirmation information comprises first confirmation data corresponding to the first control and second confirmation data corresponding to the second control; The first validation data is updated in response to a third operation for the first control, and the second validation data is updated in response to a fourth operation for the second control.
- 2. The method according to claim 1, wherein the acquiring the target video data based on the response information, the location information of the preset event, and the time information includes: acquiring a target video playing address based on the response information, wherein the target video playing address has a corresponding relation with the position information and the time information; And acquiring the target video data according to the target video playing address.
- 3. The method of claim 2, wherein the obtaining the target video data based on the target video play address comprises: Acquiring effective time information of the target video playing address; Determining that the target video playing address is in an effective state based on the effective time information and the current time; And acquiring the target video data from the target video playing address.
- 4. The method according to claim 1, wherein the acquiring the target video data based on the response information includes: Acquiring a target storage address carried in the response information; and acquiring the target video data from the local storage space of the terminal according to the target storage address.
- 5. The method as recited in claim 1, wherein the method further comprises: loading a first floating layer in a preset area of the map display interface according to a first preset transparency, and displaying the video playing window on the first floating layer; playing the target video data in the video playing window according to one of the following modes: after the video playing window is displayed, automatically playing the target video data in the video playing window; Responding to a video playing instruction, and playing the target video data in the video playing window; and controlling the playing of the target video in the video playing window according to the network connection state of the terminal, wherein the map display interface operates on the terminal.
- 6. The method according to claim 5, wherein controlling the playing of the target video in the video playing window according to the network connection state of the terminal includes: when the terminal is in the wireless local area network connection state, automatically playing the target video data in the video playing window, or When the terminal is in a cellular connection state or the terminal is switched to the cellular connection state and the video automatic playing condition is met, automatically playing the target video data in the video playing window, or When the terminal is in a cellular connection state or the terminal is switched to the cellular connection state and the video automatic playing condition is not met, displaying first prompt information on the video playing window, responding to the confirmation operation for the prompt information, playing the target video data on the video playing window, or responding to the fact that the confirmation operation is not received within a specified time, and closing the video playing window.
- 7. The method of claim 6, wherein displaying the first prompt message in the video playback window comprises: Loading a second floating layer according to a second preset transparency in the video playing window; and displaying a confirmation control for determining playing and a selection control which is not reminded any more within a preset duration in the second floating layer.
- 8. The method of claim 6, wherein after closing the video playback window, the method further comprises: acquiring a target image corresponding to the target control; And displaying an image display window on the map display interface, and displaying the target image on the image display window.
- 9. The method according to any one of claims 1 to 8, further comprising: Acquiring the type of the target video data, wherein the type is one of live broadcast data and recorded broadcast data; And displaying the play control of the target video data according to the type of the target video data.
- 10. The method of claim 9, wherein displaying the play control of the target video data according to the type of the target video data comprises: when the type is live broadcast data, the play control comprises a switching button, wherein the switching button is used for switching the target video data from a play state to a pause state or from the pause state to the play state; when the type is recorded broadcast data, the play control comprises a progress bar control, and the progress bar control is used for controlling the play progress of the target video data.
- 11. The method according to any one of claims 1 to 8, further comprising: receiving a second operation of path planning, and acquiring departure place information and destination information based on the second operation; determining a travel route by using the departure place information and the destination information; when the terminal is in a wireless local area network connection state, acquiring video data corresponding to at least one position point included in the travel route; Storing the video data.
- 12. The method according to any one of claims 1 to 8, further comprising: Acquiring the position information of the terminal; and when the position information and the position point corresponding to the target video data are determined to meet the nearby condition, presenting second prompt information for confirming whether an event corresponding to the target video data occurs.
- 13. A method for playing video in a map, comprising: The method comprises the steps of receiving a first acquisition request, wherein the first acquisition request is used for acquiring target video data and carries position information, and the first acquisition request is sent by a terminal through the following triggering steps of responding to a first operation of displaying traffic live, displaying a traffic live map, wherein the traffic live map comprises at least one control, and the at least one control corresponds to the video data of a position point in the traffic live map; The method comprises the steps of responding to a first acquisition request, generating verification information, wherein the first acquisition request is used for acquiring target video data of a preset event, the target video data corresponds to a target control, the preset event comprises at least one of congestion, traffic accidents and traffic control, the terminal acquires video data acquired in real time if the time interval between the time information of the preset event and the current moment is smaller than a threshold value, and the terminal acquires video data corresponding to the time information if the time interval between the time information of the preset event and the current moment is larger than the threshold value; the response information carrying the verification information is sent to a terminal, so that the terminal obtains the target video data based on the response information of the verification information, the position information of the preset event and the time information; The terminal is used for displaying confirmation information and a confirmation control corresponding to the target video data in the video playing window, wherein when the position information and the position point corresponding to the target video data meet the nearby condition, the confirmation control is enabled; the confirmation control comprises a first control for determining that the event corresponding to the target video data exists and a second control for determining that the event corresponding to the target video data does not exist, and the confirmation information comprises first confirmation data corresponding to the first control and second confirmation data corresponding to the second control; The first validation data is updated in response to a third operation for the first control, and the second validation data is updated in response to a fourth operation for the second control.
- 14. The method of claim 13, wherein the method further comprises: Receiving a second acquisition request of a video playing address sent by a terminal, wherein the second acquisition request carries information to be verified and the position information corresponding to the verification information; when the information to be verified is confirmed to pass through verification based on the verification information, a third acquisition request of a video playing address is sent to a video server; and receiving an acquisition response sent by the video server, and sending the acquisition response to the terminal, wherein the acquisition response carries a video playing address.
- 15. The method of claim 14, wherein the method further comprises: Acquiring road network data corresponding to the electronic map; Acquiring position information and time information corresponding to a preset event when the occurrence of the preset event is determined based on the road network data; and sending the position information and the time information to the video server so that the video server acquires video data corresponding to the preset event based on the position information and the time information.
- 16. A video playback device in a map, the device comprising: A fourth display module for displaying a traffic-scene map in response to a first operation of displaying a traffic scene, the traffic-scene map including at least one control therein, the at least one control corresponding to video data of a location point in the traffic-scene map; the system comprises a first sending module, a second sending module and a first receiving module, wherein the first sending module is used for responding to the interactive operation of a target control in the at least one control, and the first obtaining request is used for obtaining target video data of a preset event, and the target video data corresponds to the target control; the first acquisition module is used for receiving response information aiming at the first acquisition request and acquiring the target video data based on the response information, the position information of the preset event and the time information, wherein if the time interval between the time information of the preset event and the current moment is smaller than a threshold value, the video data acquired in real time is acquired; The map display device comprises a map display interface, a first display module, a second display module and a third display module, wherein the map display interface is used for displaying a video playing window, the video playing window is used for playing the target video data, confirmation information and a confirmation control corresponding to the target video data are displayed in the video playing window, when the position information and a position point corresponding to the target video data meet a nearby condition, the confirmation control is enabled, the confirmation control comprises a first control for determining that an event corresponding to the target video data exists and a second control for determining that an event corresponding to the target video data does not exist, the confirmation information comprises first confirmation data corresponding to the first control and second confirmation data corresponding to the second control, the first confirmation data is updated in response to a third operation for the first control, and the second confirmation data is updated in response to a fourth operation for the second control.
- 17. A video playback device in a map, the device comprising: The system comprises a first receiving module, a first acquiring module and a first acquiring module, wherein the first acquiring request is used for acquiring target video data and carries position information, the first acquiring request is sent by a terminal through the following trigger, the first acquiring request is sent by the terminal through the following trigger, the first acquiring module is used for responding to a first operation of displaying traffic live, the traffic live map comprises at least one control, the at least one control corresponds to the video data of a position point in the traffic live map, and the first acquiring request is sent in response to an interaction operation for the target control in the at least one control; The terminal comprises a first acquisition request, a generation module, a terminal and a control module, wherein the first acquisition request is used for responding to the first acquisition request to generate verification information, the first acquisition request is used for acquiring target video data of a preset event, the target video data corresponds to the target control, the preset event comprises at least one of congestion, traffic accidents and traffic control, the terminal acquires the video data acquired in real time if the time interval between the time information of the preset event and the current moment is smaller than a threshold value, and the terminal acquires the video data corresponding to the time information if the time interval between the time information of the preset event and the current moment is larger than the threshold value; The terminal is used for displaying confirmation information and a confirmation control corresponding to the target video data on the video playing window, when the position points corresponding to the position information and the target video data meet the nearby condition, the confirmation control comprises a first control for determining that an event corresponding to the target video data exists and a second control for determining that an event corresponding to the target video data does not exist, the confirmation information comprises first confirmation data corresponding to the first control and second confirmation data corresponding to the second control, the first confirmation data is updated in response to a third operation for the first control, and the second confirmation data is updated in response to a fourth operation for the second control.
- 18. A video playback device in a map, comprising: A memory for storing executable instructions; a processor for implementing the method of any one of claims 1 to 12 or any one of claims 13 to 15 when executing executable instructions stored in said memory.
- 19. A computer readable storage medium storing executable instructions for implementing the method of any one of claims 1 to 12 or any one of claims 13 to 15 when executed by a processor.
- 20. A computer program product comprising computer-executable instructions or a computer program which, when executed by a processor, implements the method of any one of claims 1 to 12 or any one of claims 13 to 15.
Description
Video playing method, device and equipment in map and computer storage medium Technical Field The present application relates to the internet technology, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for playing video in a map. Background At present, an electronic map plays an important role in people traveling. The electronic map is also widely applied to various occasions, for example, when a route is planned by using the electronic map or navigation is performed by using the electronic map, when an event (including but not limited to congestion, construction, traffic accident and the like) occurs on a road, the electronic map can correspondingly prompt, but the existing prompt information is single in form and not intuitive. Disclosure of Invention The embodiment of the application provides a video playing method, a video playing device and a computer readable storage medium in a map, which can improve the information quantity provided by an electronic map. The technical scheme of the embodiment of the application is realized as follows: The embodiment of the application provides a video playing method in a map, which comprises the following steps: responding to interactive operation aiming at a target control in a map display interface, and sending a first acquisition request, wherein the first acquisition request is used for acquiring target video data, and the target video data corresponds to the target control; receiving response information for the first acquisition request, and acquiring the target video data based on the response information; And displaying a video playing window on the map display interface, wherein the video playing window is used for playing the target video data. The embodiment of the application provides a video playing method in a map, which comprises the following steps: receiving a first acquisition request, wherein the first acquisition request is used for acquiring target video data, and the first acquisition request carries position information; generating verification information in response to the first acquisition request; And sending response information carrying the verification information to the terminal so that the terminal acquires the target video data based on the verification information. The embodiment of the application provides a video playing device in a map, which comprises: The map display system comprises a first sending module, a second sending module and a second sending module, wherein the first sending module is used for responding to the interaction operation of a target control in a map display interface, and sending a first acquisition request which is used for acquiring target video data, and the target video data corresponds to the target control; The first acquisition module is used for receiving response information aiming at the first acquisition request and acquiring the target video data based on the response information; The first display module is used for displaying a video playing window on the map display interface, and the video playing window is used for playing the target video data. In some embodiments, the first acquisition module is further configured to: acquiring a target video playing address based on the response information; And acquiring the target video data according to the target video playing address. In some embodiments, the first acquisition module is further configured to: Acquiring effective time information of the target video playing address; Determining that the target video playing address is in an effective state based on the effective time information and the current time; And acquiring the target video data from the target video playing address. In some embodiments, the first acquisition module is further configured to: Acquiring a target storage address carried in the response information; and acquiring the target video data from the local storage space of the terminal according to the target storage address. In some embodiments, the apparatus further comprises: the first loading module is used for loading a first floating layer according to a first preset transparency in a preset area of the map display interface and presenting the video playing window on the first floating layer; the video playing module is used for playing the target video data in the video playing window according to one of the following modes: after the video playing window is displayed, automatically playing the target video data in the video playing window; Responding to a video playing instruction, and playing the target video data in the video playing window; and controlling the playing of the target video in the video playing window according to the network connection state of the terminal, wherein the map display interface operates on the terminal. In some embodiments, the video playing module is further configured to: when the terminal is in the wireless local area network conne