Video playing method in map, device, equipment and computer storage medium

HK40075274BActive Publication Date: 2026-07-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
HK · HK
Patent Type
Patents
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2022-11-22
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

Existing electronic maps provide limited and unintuitive information when alerting to road events, and cannot offer real-time video data.

Method used

Introducing video playback functionality into electronic maps allows for the acquisition of target video data in response to user interaction, and the display of the video playback window on the map interface, supporting playback of live or recorded data.

Benefits of technology

It has improved the information content and interactivity of electronic maps, allowing users to intuitively view videos of road events, thus enhancing the richness and real-time nature of the information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

The application provides a video playing method and device in a map, equipment and computer readable storage medium; the method can be applied in the field including but not limited to map, navigation, automatic driving, intelligent traffic and the like, and the method comprises the following steps: in response to the interactive operation of the target control in the map display interface, a first acquisition request is sent, the first acquisition request is used to acquire target video data, the target video data corresponds to the target control; the response information of the first acquisition request is received, and the target video data is acquired based on the response information; a video playing window is displayed in the map display interface, and the video playing window is used to play the target video data. Through the application, the information quantity and interactive richness provided by the electronic map can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to Internet technology, and more particularly to a method, apparatus, device, and computer-readable storage medium for playing video in a map. Background Technology

[0002] Currently, electronic maps play an important role in people's travel. Electronic maps are also widely used in various situations. For example, when using electronic maps for route planning or navigation, they will provide corresponding prompts when events (including but not limited to congestion, construction, traffic accidents, etc.) occur on the roads they travel on. However, the existing prompts are simple in form and not intuitive enough. Summary of the Invention

[0003] This application provides a method, apparatus, and computer-readable storage medium for playing video in a map, which can increase the amount of information that electronic maps can provide.

[0004] The technical solution of this application embodiment is implemented as follows:

[0005] This application provides a method for playing video in a map, including:

[0006] In response to an interactive operation on a target control in the map display interface, a first acquisition request is sent, the first acquisition request being used to acquire target video data, the target video data corresponding to the target control;

[0007] Receive response information for the first acquisition request, and acquire the target video data based on the response information;

[0008] A video playback window is displayed on the map display interface, and the video playback window is used to play the target video data.

[0009] This application provides a method for playing video in a map, including:

[0010] Receive a first acquisition request, the first acquisition request being used to acquire target video data, the first acquisition request carrying location information;

[0011] In response to the first acquisition request, verification information is generated;

[0012] The response information carrying the verification information is sent to the terminal so that the terminal can obtain the target video data based on the verification information.

[0013] This application provides a video playback device in a map, including:

[0014] The first sending module is used to send a first acquisition request in response to an interactive operation on a target control in the map display interface. The first acquisition request is used to acquire target video data, which corresponds to the target control.

[0015] The first acquisition module is configured to receive response information in response to the first acquisition request, and acquire the target video data based on the response information;

[0016] The first display module is used to display a video playback window on the map display interface, and the video playback window is used to play the target video data.

[0017] In some embodiments, the first acquisition module is further configured to:

[0018] The target video playback address is obtained based on the response information;

[0019] Obtain the target video data based on the target video playback address.

[0020] In some embodiments, the first acquisition module is further configured to:

[0021] Obtain the valid time information of the target video playback address;

[0022] Based on the valid time information and the current time, it is determined that the target video playback address is in a valid state;

[0023] Obtain the target video data from the target video playback address.

[0024] In some embodiments, the first acquisition module is further configured to:

[0025] Obtain the target storage address carried in the response information;

[0026] The target video data is retrieved from the terminal's local storage space based on the target storage address.

[0027] In some embodiments, the device further includes:

[0028] The first loading module is used to load a first floating layer in a preset area of ​​the map display interface according to a first preset transparency, and to present the video playback window on the first floating layer;

[0029] The video playback module is configured to play the target video data in the video playback window in one of the following ways:

[0030] After the video playback window is displayed, the target video data will be played automatically in the video playback window;

[0031] In response to a video playback command, the target video data is played in the video playback window;

[0032] Based on the network connection status of the terminal, the playback of the target video in the video playback window is controlled, wherein the map display interface runs on the terminal.

[0033] In some embodiments, the video playback module is further configured to:

[0034] When the terminal is connected to a wireless LAN, the target video data is automatically played in the video playback window; or...

[0035] When the terminal is in cellular connection mode or the terminal switches to cellular connection mode, and the conditions for automatic video playback are met, the target video data is automatically played in the video playback window; or,

[0036] When the terminal is in cellular connection mode or the terminal switches to cellular connection mode and the conditions for automatic video playback are not met, a first prompt message is displayed in the video playback window. In response to the confirmation operation of the prompt message, the target video data is played in the video playback window. Alternatively, in response to the failure to receive the confirmation operation within a specified time, the video playback window is closed.

[0037] In some embodiments, the video playback module is further configured to:

[0038] A second floating layer is loaded in the video playback window according to a second preset transparency.

[0039] The second floating layer displays a confirmation control for playing and a selection control to not remind again within a preset time.

[0040] In some embodiments, the device further includes:

[0041] The second acquisition module is used to acquire the target image corresponding to the target control;

[0042] The second display module is used to display an image display window on the map display interface, and to display the target image in the image display window.

[0043] In some embodiments, the device further includes:

[0044] The third acquisition module is used to acquire the type of the target video data, wherein the type is either live data or recorded data.

[0045] The third display module is used to display playback control controls for the target video data according to the type of the target video data.

[0046] In some embodiments, the third display module is further configured to:

[0047] When the type is live data, the playback control control includes a switch button, which is used to switch the target video data from a playback state to a paused state, or from a paused state to a playback state.

[0048] When the type is recorded video data, the playback control control includes a progress bar control, which is used to control the playback progress of the target video data.

[0049] In some embodiments, the device further includes:

[0050] The second receiving module is used to receive the first operation that displays real-time traffic conditions;

[0051] The fourth display module is used to display a traffic real-time map in response to the first operation. The traffic real-time map includes at least one control that can respond to interactive operations. The at least one control corresponds to video data of a location point in the traffic real-time map. The at least one control includes the target control.

[0052] In some embodiments, the device further includes:

[0053] The third receiving module is used to receive the second operation for route planning and obtain the origin and destination information based on the second operation.

[0054] The first determining module is used to determine the travel route using the departure point information and destination information;

[0055] The fourth acquisition module is used to acquire video data corresponding to at least one location point included in the travel route when the terminal is in a wireless local area network connection state.

[0056] A storage module is used to store the video data.

[0057] In some embodiments, the device further includes:

[0058] The fifth display module is used to display confirmation information and confirmation controls corresponding to the target video data in the video playback window. The confirmation controls include a first control that determines the existence of an event corresponding to the target video data and a second control that determines the non-existence of an event corresponding to the target video data. The confirmation information includes first confirmation data corresponding to the first control and second confirmation data corresponding to the second control.

[0059] The fifth acquisition module is used to acquire the terminal's own location information;

[0060] The sixth display module is used to present a second prompt message to confirm whether the event corresponding to the target video data has occurred when it is determined that the location information and the location point corresponding to the target video data meet the proximity condition.

[0061] The fourth receiving module is used to receive a third operation on the first control or a fourth operation on the second control;

[0062] An update module is used to update the first confirmation data or the second confirmation data based on the third or fourth operation.

[0063] This application embodiment provides a video playback device in a map, the device comprising:

[0064] The first receiving module is used to receive a first acquisition request, the first acquisition request being used to acquire target video data, and the first acquisition request carrying location information;

[0065] The generation module is used to generate verification information in response to the first acquisition request;

[0066] The second sending module is used to send response information carrying the verification information to the terminal, so that the terminal can obtain target video data based on the verification information.

[0067] In some embodiments, the device further includes:

[0068] The fifth receiving module is used to receive a second acquisition request for a video playback address sent by the terminal, wherein the second acquisition request carries the verification information to be verified and the location information corresponding to the verification information;

[0069] The third sending module is used to send a third request to obtain the video playback address to the video server when it is determined that the verification information to be verified has been verified based on the verification information.

[0070] The sixth receiving module is used to receive the acquisition response sent by the video server and send the acquisition response to the terminal, wherein the acquisition response carries the video playback address.

[0071] In some embodiments, the device further includes:

[0072] The sixth acquisition module is used to acquire road network data corresponding to the electronic map;

[0073] The seventh acquisition module is used to acquire the location information and time information corresponding to the preset event when the preset event is determined to occur based on the road network data;

[0074] The fourth sending module is used to send the location information and time information to the video server, so that the video server can obtain the video data corresponding to the preset event based on the location information and time information.

[0075] This application provides a video playback device in a map, including:

[0076] Memory, used to store executable instructions;

[0077] A processor, when executing executable instructions stored in the memory, implements the method provided in the embodiments of this application.

[0078] This application provides a computer-readable storage medium storing executable instructions for inducing a processor to execute and implement the method provided in this application.

[0079] This application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the video playback method in the map described above in this application embodiment.

[0080] The embodiments of this application have the following beneficial effects:

[0081] In the video playback method on a map provided in this application embodiment, when the map display interface can display event interactive controls with preset events, it can receive interactive operations on one of the event interactive controls (target controls). The target control can be a control that triggers video viewing. In response to the interactive operation, a first acquisition request is sent. The first acquisition request is used to acquire target video data, which corresponds to the target control. Then, response information to the first acquisition request is received, and the target video data is acquired based on the response information. A video playback window is displayed on the map display interface, and the video playback window is used to play the target video data. In this way, users can view videos corresponding to traffic events such as congestion, accidents, and construction on the electronic map, which not only increases the amount of information provided by the electronic map but also enhances the richness of information interaction. Attached Figure Description

[0082] Figure 1 This is a schematic diagram of an interface for displaying event information in related technologies;

[0083] Figure 2 A schematic diagram of the network architecture of the electronic map information system provided in this application embodiment;

[0084] Figure 3A This is a schematic diagram of the terminal structure provided in the embodiments of this application;

[0085] Figure 3B This is a schematic diagram of the structure of the map server provided in an embodiment of this application;

[0086] Figure 4 A schematic diagram illustrating an implementation flow of a video playback method in a map provided in an embodiment of this application;

[0087] Figure 5 This is a schematic diagram illustrating the implementation process of playing video data in a video playback window, as provided in an embodiment of this application.

[0088] Figure 6 A schematic diagram illustrating another implementation of the video playback method in a map provided in this application embodiment;

[0089] Figure 7 A schematic diagram of the network architecture of the network management access service and the video provider provided in the embodiments of this application;

[0090] Figure 8 A timing diagram illustrating the implementation of the video playback method in a map provided in this application embodiment;

[0091] Figure 9 This application provides a schematic diagram of a navigation page for accessing a live traffic map in an embodiment of the present application;

[0092] Figure 10 A schematic diagram of the display interface of the live traffic map provided in this application embodiment;

[0093] Figure 11 A schematic diagram of a video playback interface under a mobile network provided in an embodiment of this application;

[0094] Figure 12 This is a schematic diagram of the interface for playing recorded videos provided in an embodiment of this application. Detailed Implementation

[0095] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0096] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0097] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0098] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0099] In the implementation of this application, the collection and processing of relevant data should be strictly in accordance with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.

[0100] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.

[0101] 1) Electronic map, also known as digital map, is a map that is stored and viewed digitally using computer technology.

[0102] 2) Live streaming involves collecting information through signal acquisition equipment (audio or video) and then publishing it online for users to watch.

[0103] 3) Client-side software, which presents map and live content in various forms, such as map browsers, map apps, map mini-programs, navigation software, video clients, dedicated live streaming clients, and social networking clients. These can be adapted to various platforms (such as computer, vehicle, and mobile terminals).

[0104] Currently, some electronic maps support displaying icons for events such as congestion, construction, and traffic control. Clicking on these event icons (001) will display... Figure 1 As shown in tab 002, this tab allows access to articles or images related to this event. The displayed images are generally pre-configured images with specific settings; real-time images or videos of the current location cannot be obtained, and the network architecture of the solution cannot access real-time traffic data services or display them on the client side.

[0105] Based on this, in this embodiment of the application, when the homepage and navigation center events of the electronic map provide data support on the data side, a video playback area is supported so that live data or recorded video data can be played through the video playback area, thereby improving the information richness of the electronic map.

[0106] The following describes exemplary applications of the video playback device in the map provided in the embodiments of this application. The device provided in the embodiments of this application can be implemented as various types of terminals such as laptops, tablets, desktop computers, set-top boxes, in-vehicle devices, and mobile devices (e.g., mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices), or it can be implemented as a server. The following will describe exemplary applications when the device is implemented as a terminal.

[0107] See Figure 2 , Figure 2 This is a schematic diagram of the network architecture of the video playback system 100 in the map provided in this application embodiment, such as... Figure 2 As shown, the network architecture includes: a video server 200, a map server 300, and a terminal 400, wherein the terminal 400 and the map server 300, as well as the map server 300 and the video server 200, communicate via a network (…). Figure 2 (Not shown in the image) A communication connection is established, which can be a wide area network (WAN), a local area network (LAN), or a combination of both.

[0108] The terminal 400 may have a map client installed, which can be used for travel navigation, route planning, etc. In this embodiment, when the map client selects to display a live traffic map, an event interaction control for a preset event can be displayed at the corresponding location on the electronic map display interface. When the terminal receives a touch or click operation on a certain event interaction control, thereby triggering a viewing request for the video corresponding to the preset event, the target video playback address is obtained from the video server 200 through the map server 300, and then the corresponding video data is obtained based on the target video playback address. A video playback window is then displayed on the terminal 400, and the video data is played in the video playback window.

[0109] The map server 300 may include a map backend and traffic service to obtain road network data. In some embodiments, the network architecture may include a traffic server independent of the map server 300. The traffic server, map server 300, and video server 200 may be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal 400 may be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, smart voice interaction device, smart home appliance, vehicle terminal, etc., but is not limited to these. The terminal and server can be directly or indirectly connected via wired or wireless communication, which is not limited in this embodiment of the invention.

[0110] It should be noted that, in Figure 2 In the diagram, map server 300 and video server 200 are independent entities. In actual implementation, map server 300 and video server 200 can be integrated into one server, in which case the server can perform the functions of both map server and video server.

[0111] See Figure 3A , Figure 3A This is a schematic diagram of the structure of the terminal 400 provided in the embodiment of this application. Figure 3A The terminal 400 shown includes at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in the terminal 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to implement communication between these components. In addition to a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 3A The general labeled all buses as Bus System 440.

[0112] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0113] User interface 430 includes one or more output devices 431 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. User interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0114] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices physically located away from the processor 410.

[0115] The memory 450 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 450 described in this application embodiment is intended to include any suitable type of memory.

[0116] In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.

[0117] Operating system 451 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks;

[0118] The network communication module 452 is used to reach other computing devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc.

[0119] The input processing module 453 is used to detect and translate one or more user inputs or interactions from one or more input devices 432.

[0120] In some embodiments, the apparatus provided in this application can be implemented in software. Figure 3AA video playback device 454 for a map stored in memory 450 is shown. It may be software in the form of programs and plug-ins, including the following software modules: a first sending module 4541, a first acquiring module 4542, and a first display module 4543. These modules are logically related and can therefore be arbitrarily combined or further split according to the functions they implement.

[0121] The first display module 4543 and other display modules are configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 (e.g., a display screen, a speaker, etc.) associated with the user interface 430.

[0122] The functions of each module will be explained below.

[0123] In other embodiments, the apparatus provided in this application can be implemented in hardware. As an example, the apparatus provided in this application can be a processor in the form of a hardware decoding processor, which is programmed to execute the method provided in this application. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.

[0124] The method for playing video in a map provided in this application will be described by referring to exemplary applications and implementations of the terminal provided in the embodiments of this application.

[0125] This application provides a method for playing video in a map, applicable to... Figure 2 The terminal shown, Figure 4 This is a schematic diagram illustrating an implementation flow of a video playback method in a map provided in this application embodiment, which will be combined with... Figure 4 The following steps are explained.

[0126] Step S101: In response to an interactive operation on the target control in the map display interface, a first acquisition request is sent.

[0127] The first acquisition request is used to acquire target video data, which corresponds to the target control.

[0128] In step S101, the map displayed on the map display interface can be the default map display interface displayed when the map client is launched or when a map webpage is opened through a browser. The default map display interface can display event controls with preset events (for example, such as...). Figure 1 The construction event control shown in 001 can be a preset event such as construction, traffic accident, or traffic control. The preset event can also be a real-time traffic condition in a key road section. This application does not limit the type of event.

[0129] Clicking the event control will display the event information interface, which shows the basic information of the preset event, such as location information and the occurrence of the event. The event information interface can also display an event interaction control, which can be a video playback control.

[0130] In some embodiments, the map display interface may also display a real-time traffic map in response to a first operation on traffic conditions, and the real-time traffic map includes an event interaction control corresponding to a preset event. This event interaction control may be a video playback control (e.g., a video playback control). Figure 10 1001 shown).

[0131] In this embodiment, the target control is one of one or more interactive controls displayed on the map display interface. The interactive operation on the target control in the map display interface can be a click or touch operation on the target control. The first acquisition request sent in response to this interactive operation can be sent to the map server, and in this case, the first acquisition request can carry the location information corresponding to the target control. When the map server includes a map backend and a traffic service, the first acquisition request is sent to the map server, and correspondingly, the response information is constructed by the map server and then sent to the terminal. When the map server only includes the map backend and does not include the traffic service, the first acquisition request is sent to the traffic service via the map backend, and correspondingly, the response information is constructed by the traffic service and then sent to the terminal via the map backend.

[0132] In some embodiments, when the terminal locally stores target video data corresponding to the target control, the first acquisition request may be sent to the terminal's own storage device to request the acquisition of target video data from the terminal's local storage space.

[0133] Step S102: Receive response information for the first acquisition request, and acquire the target video data based on the response information.

[0134] When the first acquisition request is sent to the map server, the terminal sends the request to the map server, which then generates a one-time token (also known as a one-time password) based on the request. This token is then included as verification information in the response information and returned to the terminal. The terminal receives and parses the response information to obtain the verification information, and then uses this verification information to acquire the target video data. Alternatively, in implementation, the terminal can send a second acquisition request for the video playback address to the video server. This second acquisition request can be sent via the map server to the video server, and the terminal subsequently obtains the video playback address returned by the video server through the map server, and then acquires the target video data based on the target video playback address.

[0135] When the first request is sent to the terminal's storage device, the response information carries the target storage address, and the target video data can be obtained based on the target storage address.

[0136] Step S103: Display a video playback window on the map display interface.

[0137] The video playback window is used to play the target video data. The cover image of the target video data is the first frame image by default, but in actual implementation, a cover image can also be set for the target video data.

[0138] Once the target video data is acquired, a floating layer can be loaded on the map display interface with a certain level of transparency, and a video playback window can be displayed on this floating layer. For example, the floating layer can be loaded with 20% transparency, and a video playback window can be displayed on this floating layer. The size of this video playback window can be smaller than or equal to the size of the map display interface.

[0139] In the video playback method on a map provided in this application embodiment, when the map display interface can display event interactive controls with preset events, it can receive interactive operations on one of the event interactive controls (target controls). The target control can be a control that triggers video viewing. In response to the interactive operation, a first acquisition request is sent. The first acquisition request is used to acquire target video data, which corresponds to the target control. Then, response information to the first acquisition request is received, and the target video data is acquired based on the response information. A video playback window is displayed on the map display interface, and the video playback window is used to play the target video data. In this way, users can view videos corresponding to traffic events or road conditions such as congestion, accidents, and construction on the electronic map, which not only increases the amount of information provided by the electronic map but also enhances the richness of information interaction.

[0140] In some embodiments, Figure 4 The "acquiring target video data based on response information" step S102 shown has different implementation methods depending on whether the first acquisition request is sent to the map server or to the terminal's own storage settings. When the first acquisition request is sent to the map server, the response information carries verification information, which can be a one-time token. Correspondingly, step S102 can be implemented through the following steps:

[0141] Step S1021A: Obtain the target video playback address based on the response information.

[0142] In some embodiments, this step may be further implemented through the following steps:

[0143] Step S21A1: Send a second request to the video server to obtain the video playback address.

[0144] The second acquisition request carries the verification information corresponding to the verification information and the location information corresponding to the event interaction control. In some embodiments, step S21A1 is implemented by the terminal sending a second acquisition request for the video playback address to the map server, and then the map server verifies the terminal based on the verification information. After successful verification, a third acquisition request is sent to the video server. The third acquisition request only carries the location information and does not need to carry the verification information again.

[0145] In some embodiments, the third acquisition request also carries time information corresponding to the event interaction control. After receiving the third acquisition request, the video server obtains the video playback address of the corresponding video data based on the location information and time information, and carries the target video playback address in the acquisition response and returns it to the terminal.

[0146] Step S1022: Receive the acquisition response returned by the video server and obtain the video playback address carried in the acquisition response.

[0147] When the second request is sent to the video server via the map server, the map server verifies the information to be verified based on the verification information and obtains the verification result. When the verification is successful, the video server returns the request response. In practice, this can be achieved by receiving the request response returned by the video server via the map server. In other words, the request response is first sent from the video server to the map server and then sent from the map server to the terminal.

[0148] In some embodiments, if the terminal has a direct communication connection with the video server, the terminal can directly send the second acquisition request to the video server. The video server then obtains verification information from the map server and verifies the information to be verified based on this information, obtaining the verification result. When the verification is successful, the video server directly returns the acquisition response to the terminal.

[0149] Thus, through steps S21A1 to S21A2, the video playback address is obtained based on the video viewing response, providing the necessary playback link for subsequent video playback and ensuring normal video playback.

[0150] Step S1022A: Obtain the target video data according to the target video playback address.

[0151] In this embodiment, the target video playback address is a temporary Uniform Resource Locator (URL) address. To prevent hotlinking, this video playback address has a validity period. Therefore, in implementing step S1022A, after obtaining the target video playback address, it can first determine whether the video playback address is valid based on the current time and the validity period. When the video playback address is valid, the corresponding target video data is obtained. This target video data can be live video data or recorded video data.

[0152] This step S1022A can be achieved through the following steps:

[0153] Step S22A1: Obtain the valid time information of the target video playback address.

[0154] In this embodiment of the application, in order to prevent video data from being stolen by other applications and to ensure the timeliness and authenticity of video data, valid time information is set for the video playback address. The valid time information may include the effective time and the expiration time. For example, the effective time may be 17:00 on April 6, 2021, and the expiration time may be 12:00 on April 7, 2021.

[0155] Step S22A2: Determine that the target video playback address is valid based on the valid time information and the current time.

[0156] If the current time is between the effective time and the expiration time, the target video playback address is considered to be in a valid state, and step S22A3 is executed. In some embodiments, if the current time is not between the effective time and the expiration time, the target video playback address is determined to be in an invalid state, and a prompt message indicating that the video has expired can be displayed.

[0157] Step S22A3: Obtain the target video data from the target video playback address.

[0158] When the first acquisition request is sent to the terminal's own storage device, the response information carries the target storage address. The "acquiring target video data based on the response information" in step S102 can be achieved through the following steps:

[0159] Step S1021B: Obtain the target storage address carried in the response information;

[0160] Step S1022B: Obtain the target video data from the local storage space of the terminal according to the target storage address.

[0161] In this way, the target video data can be obtained from the terminal's local storage space, which can not only improve video playback efficiency but also reduce data consumption.

[0162] In some embodiments, after step S103, the following steps may also be performed:

[0163] Step S104: Load a first floating layer in a preset area of ​​the map display interface according to a first preset transparency, and present the video playback window on the first floating layer.

[0164] The preset area of ​​the map display interface can be a part of the map display interface, such as the upper half, lower half, or middle part of the map display interface, or it can be the entire map display interface.

[0165] The first preset transparency can be a preset value such as 0%, 10%, 25%. When the first preset transparency is 0%, it means that the first floating layer is completely opaque, that is, the first floating layer completely covers the preset area of ​​the map screen in the map display interface.

[0166] Step S105: Play the target video data in the video playback window according to one of the following methods:

[0167] In the first method, after the video playback window is displayed, the target video data is automatically played in the video playback window.

[0168] When the terminal is connected to the network or the target video data is obtained locally from the terminal, the target video data can be played automatically without any additional user operation, which simplifies the video playback process and improves video playback efficiency.

[0169] The second method involves responding to a video playback command by playing the target video data in the video playback window.

[0170] In this method, a clear video playback instruction is required before the target video data is played, ensuring that video playback is performed with the user's permission.

[0171] The third method involves controlling the playback of the target video in the video playback window based on the network connection status of the terminal, wherein the map display interface runs on the terminal.

[0172] In practical implementation, it can be achieved through... Figure 5 The steps shown implement the third method, which will be combined with the following. Figure 5 Each step is explained.

[0173] Step S1051: Obtain the network connection status of the terminal.

[0174] The network connection status of the terminal can be either successful or failed.

[0175] Step S1052: Determine whether the network connection status is successful.

[0176] Here, if the terminal is in a situation where there is no network, the network is interrupted, or the network is abnormal, and the network connection status is "connection failed", then proceed to step S1053; if the network connection status is "connection successful", proceed to step S1054.

[0177] Step S1053: Output the third prompt message indicating an abnormal network connection status.

[0178] Step S1054: Determine whether the terminal is in a wireless LAN connection state.

[0179] When the network connection status is "connection successful," the terminal may be in either a Wi-Fi or cellular network connection state. In a Wi-Fi connection state, the terminal will not incur additional mobile data charges, while in a cellular network connection state, mobile data charges will occur. Therefore, this step requires determining the user's network connection state to perform the appropriate processing. Specifically, if it is determined that the terminal is in a Wi-Fi connection state, proceed to step S1055; if it is determined that the terminal is in a cellular connection state, proceed to step S1056.

[0180] Step S1055: Automatically play the target video data in the video playback window.

[0181] In this embodiment of the application, when the terminal is in a wireless local area network connection state, the video data is played directly in the video playback window.

[0182] Step S1056: Determine whether the conditions for automatic video playback are met.

[0183] Determining whether the conditions for automatic video playback are met can be done by checking whether the "AutoPlay on Carrier Network" function is enabled and within the "Don't remind me again in 7 days" range. Specifically, if "AutoPlay on Carrier Network" is enabled and within the "Don't remind me again in 7 days" range, the conditions for automatic video playback are met, and the process proceeds to step S1057. If "AutoPlay on Carrier Network" is not enabled or is not within the "Don't remind me again in 7 days" range, the conditions for automatic video playback are not met, and the process proceeds to step S1058.

[0184] Step S1057: Automatically play the target video data in the video playback window.

[0185] In some embodiments, a third overlay is loaded with a third transparency when the target video data is played, and a prompt message "Playing using mobile process" is output in the third overlay. After the prompt message is displayed for a certain period of time, the third overlay is unloaded and the target video data continues to be played.

[0186] Step S1058: The first prompt message for playing the video is displayed in the video playback window.

[0187] When implementing step S1058, it may first load a second floating layer on the video playback window according to a second preset transparency; then display a confirmation control for confirming playback and a selection control to not remind again within a preset duration in the second floating layer.

[0188] Step S1059: Determine whether a confirmation operation has been received for the first prompt message.

[0189] The confirmation operation can be a click or touch confirmation control. When a confirmation operation is received for the prompt information, the process proceeds to step S10510. If no confirmation operation is received within a specified time, it is determined that no confirmation operation has been received. In some embodiments, a cancel control for canceling playback can also be presented in the second floating layer. When a click or touch operation is received for the cancel control, it is determined that no confirmation operation has been received. In this embodiment, when no confirmation operation is received, the process proceeds to step S10511.

[0190] Step S10510: Play the target video data in the video playback window.

[0191] This step is similar to step S1057. When playing the target video data, a third floating layer is loaded according to the third transparency, and a prompt message "Playing with mobile process in use" is output in the third floating layer. After the prompt message is displayed for a certain period of time, the third floating layer is unloaded and the target video data continues to be played.

[0192] Step S10511: Close the video playback window.

[0193] Closing the video playback window, which cancels the loading of the first floating layer, will allow the electronic map to display normally.

[0194] In some embodiments, after closing the video playback window, the terminal can also acquire the target image corresponding to the target control; and display an image display window on the map display interface, displaying the target image in the image display window. This not only reduces the mobile data consumption of the terminal, but also allows users to understand event information in a timely manner.

[0195] In the embodiments described in steps S1051 to S10511, when playing target video data in the video playback window, a first floating layer is first loaded with a certain transparency to present the video playback window in the first floating layer. When presenting video data, different implementation methods are used based on the terminal's network connection status. Furthermore, when the network connection status is "connection failed," a network connection status error message is output; when the network connection status is "connection successful," the network connection type is further determined. For example, if it is a wireless LAN connection, the target video data is played directly; if it is a cellular network connection, it is further determined whether the video autoplay conditions are met. If the video autoplay conditions are met, the target video data is played directly; if the autoplay conditions are not met, the user is prompted whether to continue playing the video. When a confirmation operation to continue playing is received, the target video data is played through the video playback window. In this way, different processing procedures are performed for different network connection types, which can ensure the smoothness of video playback on wireless network connections and ensure that video playback on cellular networks is carried out with the user's knowledge and permission, thereby improving the transparency of information interaction.

[0196] In some embodiments, a video playback window is displayed, or the target video data is played in the video playback window, or the following steps may be performed:

[0197] Step S201: Obtain the type of the target video data.

[0198] The data type is either live data or recorded data. When the type is live, it means that the target video data was captured in real time by a video capture device located at the location of the preset event and uploaded to the video server. When the type is recorded, it means that the target video data was captured by a video capture device located at the location of the preset event and uploaded to the video server within a certain time period before the current time.

[0199] In some embodiments, while the target video data is being played, the data type can be presented in the video playback window. For example, the data type can be presented at the edge of the video frame in the video playback window, such as displaying "Live" or "Recorded" in the upper right, upper left, or lower right corners of the video frame. Figure 10 For example, the lower left corner of the video screen (1002) displays "Live".

[0200] Step S202: Display the playback control controls for the target video data according to the type of the target video data.

[0201] In implementation, when the type is live data, the playback control includes a switch button, which is used to switch the target video data from the playback state to the pause state, or from the pause state to the playback state.

[0202] When the data type is recorded video, the playback control includes a progress bar control, which is used to control the playback progress of the target video data. In actual implementation, when the data type is recorded video, the playback control also includes a toggle button in addition to the progress bar control.

[0203] In some embodiments, when the type is recorded data, the playback progress can be adjusted through the following steps:

[0204] Step S301: Receive a movement operation for the progress bar control and determine the target playback progress corresponding to the movement operation.

[0205] The movement operation can be a dragging operation of the progress bar control. To determine the target playback progress corresponding to the movement operation, the movement distance can be obtained, and the movement duration can be determined based on the movement distance and the total video duration. Then, the target playback progress can be determined based on the current playback progress and the movement duration.

[0206] Step S302: Present the video data corresponding to the target playback progress in the video playback window.

[0207] The target playback progress can be a target playback time point. When presenting the video data corresponding to the target playback progress, it can be implemented by continuing to play video data from the target playback time point.

[0208] In some embodiments, when a user is using a map for route planning, the video can be downloaded or cached through the following steps:

[0209] Step S401: Receive a second operation to perform route planning, and obtain origin information and destination information based on the second operation.

[0210] Step S402: Determine the travel route using the departure point information and destination information.

[0211] Step S403: When the terminal is in a wireless local area network connection state, acquire video data corresponding to at least one location point included in the travel route.

[0212] Step S403: Store the video data.

[0213] In the embodiments where steps S401 to S403 are located, when the terminal is in a wireless local area network connection state, the video data corresponding to at least one location point included in the travel route can be downloaded to the local mobile terminal in advance and stored in the local storage space of the terminal. This allows the user to directly obtain video data from the local storage space of the terminal when they need to play video on the map, thereby improving video playback efficiency and reducing data consumption.

[0214] Based on the foregoing embodiments, this application further provides a method for playing video in a map, applied to... Figure 2 The network architecture shown is Figure 6 This is a schematic diagram illustrating another implementation of the video playback method in a map provided in the embodiments of this application, as shown below. Figure 6 As shown, the process includes:

[0215] Step S601: The map server obtains the road network data corresponding to the electronic map.

[0216] In implementing step S601, road network data corresponding to the electronic map can be obtained from a road network service. This road network service can be a service process of the map server itself, or it can be another server independent of the map server. The road network data can be real-time road network data, or historical road network data within a certain time period from the current time.

[0217] In step S602, when the map server determines that a preset event has occurred based on the road network data, it obtains the location information and time information corresponding to the preset event.

[0218] In implementation, when the map server determines whether a preset event such as congestion, traffic accident, or traffic control has occurred based on road network data, it obtains the location and time information corresponding to that preset event. The location information can be latitude and longitude, and the time information can be the moment the preset event occurred.

[0219] In step S603, the map server sends the location information and time information to the video server.

[0220] The map server sends location and time information to the video server, enabling the video server to obtain corresponding video data based on the location and time information.

[0221] Step S604: The video server obtains the video data corresponding to the preset event based on the location information and time information.

[0222] If the time interval between the time information and the current time is less than the interval threshold, step S604 can be implemented by the video server obtaining the device information of the image acquisition device corresponding to the location information based on the location information, and obtaining the video data collected in real time by the corresponding image acquisition device based on the device information; if the time interval between the time information and the current time is greater than or equal to the interval threshold, the video data corresponding to the time information collected by the image acquisition device can be obtained.

[0223] In step S605, the video server determines the video playback address corresponding to the video data and establishes a correspondence between the video playback address and the location information and time information.

[0224] In step S606, the terminal responds to the operation command to start the electronic map client and starts the electronic map client.

[0225] In some embodiments, the terminal may also respond to an operation command to open an electronic map webpage and obtain electronic map data based on the webpage address.

[0226] In step S607, the terminal displays an electronic map on the map display interface.

[0227] In this step, the electronic map presented can be a default theme map, such as a 2D map that is presented every time it is opened, or it can be the map used when the electronic map client was last closed. For example, if the map used when the electronic map client was last closed was a live traffic map, then the map presented when it is opened again will still be a live traffic map.

[0228] In some embodiments, when the map displayed on the map display interface is not a real-time traffic map, the real-time traffic map can be displayed through the following steps:

[0229] Step S501: Receive the first operation to display real-time traffic conditions. This first operation can be when a click occurs. Figure 9 The "Live Traffic Map" button control 901 shown is shown.

[0230] Step S502, in response to the first operation, a traffic real-time map is displayed, the traffic real-time map including at least one control capable of responding to interactive operations, the at least one control corresponding to video data of location points in the traffic real-time map, the at least one control including the target control.

[0231] In step S608, the terminal receives interactive operations for the target control in the map display interface.

[0232] In step S609, the terminal responds to the interactive operation by sending a first acquisition request to the map server.

[0233] The first request may carry the location information of the event-interactive control and the event identifier.

[0234] In step S610, the map server responds to the first acquisition request by generating verification information.

[0235] The verification information can be a one-time password, a one-time token, or a dynamic password. Dynamic passwords are an authentication technology that uses cryptographic techniques to share a secret between the client and server. It is a strong authentication technology, a very convenient way to enhance current static password authentication, and an important two-factor authentication technology.

[0236] In step S611, the map server sends a response message carrying the verification information to the terminal, so that the terminal can obtain the target playback data based on the verification information.

[0237] In step S612, the terminal sends a second request to the map server to obtain the video playback address.

[0238] The second request may carry information to be verified, as well as the location information and event identifier of the target control.

[0239] In step S613, the map server verifies the information to be verified and obtains the verification result.

[0240] In implementation, the verification information sent to the terminal can be used to verify the information to be verified sent by the terminal. If they match, a verification result of "verification passed" is obtained; if they do not match, a verification result of "verification failed" is obtained. When verification fails, the following steps are not executed, and the map server returns a video playback address to the terminal to obtain a failure notification message.

[0241] Step S614: When the verification is successful, the map server sends a third request to the video server to obtain the video playback address.

[0242] The third retrieval request sent by the map server to the video server may include the location information and event identifier corresponding to the event interactive control.

[0243] Step S615: The video server obtains the target video playback address.

[0244] In implementation, the video server obtains the corresponding target video playback address based on the event identifier and location information carried in the retrieval request.

[0245] In step S616, the video server sends the target video playback address to the map server.

[0246] In step S617, the map server sends the target video playback address to the terminal.

[0247] Step S618: The terminal obtains the target video data based on the target video playback address.

[0248] In step S619, the terminal presents a video playback window on the display interface and plays the target video data in the video playback window.

[0249] In step S620, the terminal displays confirmation information and confirmation controls corresponding to the target video data in the video playback window.

[0250] The confirmation control includes a first control that determines the existence of an event corresponding to the target video data and a second control that determines the non-existence of an event corresponding to the target video data. The confirmation information includes first confirmation data corresponding to the first control and second confirmation data corresponding to the second control.

[0251] The first confirmation data can be the number of people who clicked the first control, that is, the first confirmation data can reflect the number of people who confirmed that the corresponding event in the target video data occurred. For example, if the first confirmation data is 20, it means that 20 users passed by the location point corresponding to the target video data and confirmed that the video is real. The second confirmation data can be the number of people who clicked the second control, which can reflect the number of people who confirmed that the corresponding event in the target video data did not occur.

[0252] Displaying confirmation controls and confirmation messages allows users to intuitively understand the authenticity of the video.

[0253] Step S621: The terminal obtains its own location information.

[0254] In practice, when the terminal has automatic location acquisition enabled or GPS function enabled, it can obtain its own location information, which can be latitude and longitude information.

[0255] Step S622: When the terminal determines that the location information and the location point corresponding to the target video data meet the proximity condition, a second prompt message is displayed to confirm whether the event corresponding to the target video data has occurred.

[0256] Before step S622, it can be determined whether the location information of the terminal and the location point corresponding to the video data meet the proximity condition. Since the location information can be represented by latitude and longitude information, in the implementation, the distance between the terminal and the location point corresponding to the target video data can be determined based on the latitude and longitude information of the two location points. When the distance is less than a preset distance threshold, such as less than 50 meters, it is determined that the proximity condition is met. At this time, a second prompt message is presented to confirm whether the event corresponding to the video data has occurred.

[0257] In step S623, the terminal receives a third operation for the first control or a fourth operation for the second control.

[0258] The third operation can be a touch or click operation on the display area corresponding to the first control, and the fourth operation can be a touch or click operation on the display area corresponding to the second control.

[0259] Step S624: The terminal updates the first confirmation data or the second confirmation data based on the third or fourth operation.

[0260] When a third operation is received, the first confirmation data indicating that the event has occurred is incremented by 1. When a fourth operation is received, the second confirmation data indicating that the event has not occurred is incremented by 1.

[0261] Since the video playback window displays confirmation information and a confirmation control for the target video data, to prevent users from clicking the confirmation control arbitrarily, the confirmation control can be enabled only when the location information of the terminal and the location point corresponding to the target video data meet the proximity condition; otherwise, the confirmation control is disabled.

[0262] In the video playback method in the map provided in this application embodiment, after the map server determines that a preset event has occurred based on the acquired road network data, it requests the video server to determine the video data corresponding to the preset event and creates a correspondence between the video data and location information and time information. Then, when the terminal starts the electronic map client or opens the electronic map webpage and triggers an interactive operation on the event interactive control, the terminal sends a first acquisition request to the map server. The map server returns verification information to the terminal, and when the terminal sends a second acquisition request for the video playback address based on the verification information, the request is sent to the video server via the map server. After obtaining the video playback address, the terminal loads the video playback window and plays the video in the video playback window. This allows the user to know the progress of the preset event in a timely manner, increasing the richness of interaction. Furthermore, when it is determined that the terminal is close to the location of the preset event, the first and second controls for confirming whether the preset event has occurred can be enabled, and the confirmation information of the preset event is updated based on the operation on the controls, thereby ensuring the authenticity of the preset event.

[0263] The following will describe an exemplary application of the embodiments of this application in a real-world application scenario.

[0264] In the video playback method in the map provided in this application embodiment, the general road electronic eye data and video live streaming equipment data with the same function are accessed through the intelligent transportation basic service. On the home page of the map client, for point events such as congestion, accidents, and road closures, it is supported to watch the current real-time live video or recorded video.

[0265] In this embodiment of the application, because there may be multiple video providers, a video proxy service is needed to provide relay services. For example... Figure 7 As shown, the network management access service 701 accesses multiple video providers 703 through the video proxy service 702. To ensure the exclusive validity of the video, the video providers 703 provide temporary playback addresses with time limits through the interface.

[0266] In this embodiment, the video proxy service 702 can efficiently access different video providers, while the map client can use the live data from subsequent data sources without being aware of it. The interface fields for the video proxy service request can be:

[0267] Struct VideoProxyReq {

[0268] 0 require string traceid; / / Used for tracing

[0269] 1 require string spanid; / / Track usage

[0270] 2 require int type; / / 0 Video 1 Live Stream

[0271] 3. require string url; / / Video address

[0272] 4. require string video_source; / / Video source, used to identify which video provider it is.

[0273] 5 require string source; / / Request source, used to distinguish between vehicle-to-everything (V2X) and manual mapping (MARK) callers: qqmap_app, carmap

[0274] };

[0275] / / Video proxy return

[0276] Struct VideoProxyRsp {

[0277] 0 require int ret_code; / / Return code 0 for success, -1 for failure

[0278] 1. require string ret_msg; / / Result information returned

[0279] 2 require string url; / / Returns a valid playback address

[0280] };

[0281] Figure 8 The timing diagram for the implementation of the video playback method in the map provided in the embodiments of this application is as follows: Figure 8 As shown, the timing process includes:

[0282] Step S801: The map client requests the map backend based on the triggered point event.

[0283] Step S802: The map backend requests traffic information service.

[0284] In step S803, the traffic service constructs a one-time token as a response message.

[0285] In step S804, the traffic service will return a response message carrying a one-time token to the map backend.

[0286] In step S805, the map backend returns the response message to the map client.

[0287] In step S806, the map client requests the video playback address from the map backend based on the one-time token.

[0288] In step S807, the map backend sends a request message to the video proxy service to obtain the video playback address.

[0289] In step S808, the video proxy service constructs a one-time temporary address as a response message.

[0290] In step S809, the video proxy service will return a response message containing the one-time temporary address to the map backend.

[0291] In step S810, the map backend returns the response message to the map client.

[0292] Step S811: To prevent data hotlinking, the map is parsed to obtain URLB from Resp. URLB is a temporary address with an expiration time.

[0293] In this embodiment of the application, when clicking Figure 9When the "Live Traffic Map" button control 901 is displayed, a live traffic map will be shown. Within this live traffic map, if a location is the site of a point event, it will display something like... Figure 10 The point event video identifier 1001 shown will display a newly added video playback area in the map client when a point event video identifier is clicked. Figure 10 Let's take an example. When you click on the video marker 1001 corresponding to the North Third Ring Road, a video playback area will appear on the display screen to support the playback of video or live media.

[0294] After receiving the video playback address, the map client can adjust the video playback status based on the network type of the map client. When connected to Wi-Fi, the video plays automatically without any prompts. When connected to or switched to a mobile network, the system checks if automatic playback conditions are met. This includes checking if the "Carrier Network Auto Playback" function is enabled and within the "Don't Remind Me Again in 7 Days" range. If "Carrier Network Auto Playback" is enabled and within the "Don't Remind Me Again in 7 Days" range, a pop-up can be loaded with the message: "Using a non-Wi-Fi network, playback will incur data charges." The video plays normally, and the message disappears after 3 seconds. If "Carrier Network Auto Playback" is disabled or not within the "Don't Remind Me Again in 7 Days" range, the system can... Figure 11 The floating layer 1101 is loaded as shown, and a prompt message is displayed in the floating layer: "Using a non-WIFI network, playback will incur data charges." At this time, a reminder settings button and a continue playback button are also displayed in the floating layer. For example, it can be a "Don't remind me again in 7 days" selection control. By default, this selection control is unchecked. After checking it, if the user clicks the "Continue playback" button control, the prompt message "Using a non-WIFI network, playback will incur data charges" will be displayed. The video data will play normally, and the prompt message will disappear after 3 seconds. The prompt floating layer will not be displayed again for 7 days after "Don't remind me again in 7 days" is checked.

[0295] When the map client's network status is abnormal, interrupted, or without network, a message box (toast) will pop up and say "The current network is poor, please check your network settings", which will disappear after 3 seconds.

[0296] When playing a video, the video data type will be displayed in the video playback window. If the video data is live, a "Live" label can be output in the lower left corner of the video area; if it is a recorded video clip, a "Recorded" label can be output, such as... Figure 10 As shown, the word "Live" is displayed in area 1002 in the lower left corner of the video area; in addition, the cover image of the video is the first frame of the video by default, and if there is no first frame, it is the default image corresponding to the point event.

[0297] In this embodiment of the application, the video control bar supports the following operations: a) Pause / play (e.g. Figure 10 The display shows pause / play controls 1003); b) If it is a video clip, it supports moving the playback progress, and as shown... Figure 12 As shown, the current progress and total duration are output on the progress bar 1201; c) If it is a live broadcast, dragging is not supported, and only the current progress is described in the progress bar.

[0298] In the video playback method in the map provided in this application embodiment, when point events on the homepage and navigation center of the map client provide data support on the data side, a video playback area is supported. By playing live or recorded videos of point events through this video playback area, the richness of the information provided by the electronic map can be enhanced, allowing users to intuitively and realistically understand event information and event progress, thereby enhancing the competitiveness of the electronic map APP. Furthermore, as more and more relevant partners are involved, data support will also increase, and the scale effect will continue to drive the improvement of the real-time data experience of the electronic map.

[0299] The following description continues to illustrate the exemplary structure of the video playback device 454 in the map provided in the embodiments of this application as a software module. In some embodiments, such as Figure 3A As shown, the software module in the video playback device 454 stored in the map in the memory 440 may include:

[0300] The first sending module 4541 is used to send a first acquisition request in response to an interactive operation on a target control in the map display interface. The first acquisition request is used to acquire target video data, which corresponds to the target control.

[0301] The first acquisition module 4542 is used to receive response information in response to the first acquisition request and acquire the target video data based on the response information;

[0302] The first display module 4543 is used to display a video playback window on the map display interface, and the video playback window is used to play the target video data.

[0303] In some embodiments, the first acquisition module is further configured to:

[0304] The target video playback address is obtained based on the response information;

[0305] Obtain the target video data based on the target video playback address.

[0306] In some embodiments, the first acquisition module is further configured to:

[0307] Obtain the valid time information of the target video playback address;

[0308] Based on the valid time information and the current time, it is determined that the target video playback address is in a valid state;

[0309] Obtain the target video data from the target video playback address.

[0310] In some embodiments, the first acquisition module is further configured to:

[0311] Obtain the target storage address carried in the response information;

[0312] The target video data is retrieved from the terminal's local storage space based on the target storage address.

[0313] In some embodiments, the device further includes:

[0314] The first loading module is used to load a first floating layer in a preset area of ​​the map display interface according to a first preset transparency, and to present the video playback window on the first floating layer;

[0315] The video playback module is configured to play the target video data in the video playback window in one of the following ways:

[0316] After the video playback window is displayed, the target video data will be played automatically in the video playback window;

[0317] In response to a video playback command, the target video data is played in the video playback window;

[0318] Based on the network connection status of the terminal, the playback of the target video in the video playback window is controlled, wherein the map display interface runs on the terminal.

[0319] In some embodiments, the video playback module is further configured to:

[0320] When the terminal is connected to a wireless LAN, the target video data is automatically played in the video playback window; or...

[0321] When the terminal is in cellular connection mode or the terminal switches to cellular connection mode, and the conditions for automatic video playback are met, the target video data is automatically played in the video playback window; or,

[0322] When the terminal is in cellular connection mode or the terminal switches to cellular connection mode and the conditions for automatic video playback are not met, a first prompt message is displayed in the video playback window. In response to the confirmation operation of the prompt message, the target video data is played in the video playback window. Alternatively, in response to the failure to receive the confirmation operation within a specified time, the video playback window is closed.

[0323] In some embodiments, the video playback module is further configured to:

[0324] A second floating layer is loaded in the video playback window according to a second preset transparency.

[0325] The second floating layer displays a confirmation control for playing and a selection control to not remind again within a preset time.

[0326] In some embodiments, the device further includes:

[0327] The second acquisition module is used to acquire the target image corresponding to the target control;

[0328] The second display module is used to display an image display window on the map display interface, and to display the target image in the image display window.

[0329] In some embodiments, the device further includes:

[0330] The third acquisition module is used to acquire the type of the target video data, wherein the type is either live data or recorded data.

[0331] The third display module is used to display playback control controls for the target video data according to the type of the target video data.

[0332] In some embodiments, the third display module is further configured to:

[0333] When the type is live data, the playback control control includes a switch button, which is used to switch the target video data from a playback state to a paused state, or from a paused state to a playback state.

[0334] When the type is recorded video data, the playback control control includes a progress bar control, which is used to control the playback progress of the target video data.

[0335] In some embodiments, the device further includes:

[0336] The second receiving module is used to receive the first operation that displays real-time traffic conditions;

[0337] The fourth display module is used to display a traffic real-time map in response to the first operation. The traffic real-time map includes at least one control that can respond to interactive operations. The at least one control corresponds to video data of a location point in the traffic real-time map. The at least one control includes the target control.

[0338] In some embodiments, the device further includes:

[0339] The third receiving module is used to receive the second operation for route planning and obtain the origin and destination information based on the second operation.

[0340] The first determining module is used to determine the travel route using the departure point information and destination information;

[0341] The fourth acquisition module is used to acquire video data corresponding to at least one location point included in the travel route when the terminal is in a wireless local area network connection state.

[0342] A storage module is used to store the video data.

[0343] In some embodiments, the device further includes:

[0344] The fifth display module is used to display confirmation information and confirmation controls corresponding to the target video data in the video playback window. The confirmation controls include a first control that determines the existence of an event corresponding to the target video data and a second control that determines the non-existence of an event corresponding to the target video data. The confirmation information includes first confirmation data corresponding to the first control and second confirmation data corresponding to the second control.

[0345] The fifth acquisition module is used to acquire the terminal's own location information;

[0346] The sixth display module is used to present a second prompt message to confirm whether the event corresponding to the target video data has occurred when it is determined that the location information and the location point corresponding to the target video data meet the proximity condition.

[0347] The fourth receiving module is used to receive a third operation on the first control or a fourth operation on the second control;

[0348] An update module is used to update the first confirmation data or the second confirmation data based on the third or fourth operation.

[0349] It should be noted that the descriptions of the video playback device embodiments in the above maps are similar to the method descriptions above, and have the same beneficial effects as the method embodiments. For technical details not disclosed in the video playback device embodiments in this application, those skilled in the art should refer to the descriptions of the method embodiments in this application for understanding.

[0350] See Figure 3B , Figure 3B This is a schematic diagram of the structure of the map server 300 provided in this embodiment of the application. Figure 3B The map server 300 shown includes at least one processor 310, a memory 350, at least one network interface 320, and a user interface 330. The various components of the map server 300 are coupled together via a bus system 340. The memory 350 is capable of storing data to support various operations; examples of this data include programs, modules, and data structures, or subsets or supersets thereof. The memory 350 further includes an operating system 351, a network communication module 352, a presentation module 353, an input processing module 354, and a video playback device 355 for the map provided in this embodiment. Figure 3B As shown, the software modules in the video playback device in this map may include:

[0351] The first receiving module 3551 is used to receive a first acquisition request, the first acquisition request being used to acquire target video data, and the first acquisition request carrying location information;

[0352] The generation module 3552 is used to generate verification information in response to the first acquisition request;

[0353] The second sending module 3553 is used to send response information carrying the verification information to the terminal, so that the terminal can obtain target video data based on the verification information.

[0354] In some embodiments, the device further includes:

[0355] The fifth receiving module is used to receive a second acquisition request for a video playback address sent by the terminal, wherein the second acquisition request carries the verification information to be verified and the location information corresponding to the verification information;

[0356] The third sending module is used to send a third request to obtain the video playback address to the video server when it is determined that the verification information to be verified has been verified based on the verification information.

[0357] The sixth receiving module is used to receive the acquisition response sent by the video server and send the acquisition response to the terminal, wherein the acquisition response carries the video playback address.

[0358] In some embodiments, the device further includes:

[0359] The sixth acquisition module is used to acquire road network data corresponding to the electronic map;

[0360] The seventh acquisition module is used to acquire the location information and time information corresponding to the preset event when the preset event is determined to occur based on the road network data;

[0361] The fourth sending module is used to send the location information and time information to the video server, so that the video server can obtain the video data corresponding to the preset event based on the location information and time information.

[0362] It should be noted that the descriptions of the video playback device embodiments in the above maps are similar to the method descriptions above, and have the same beneficial effects as the method embodiments. For technical details not disclosed in the video playback device embodiments in this application, those skilled in the art should refer to the descriptions of the method embodiments in this application for understanding.

[0363] This application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the video playback method in the map described above in this application.

[0364] This application provides a computer-readable storage medium storing executable instructions. When these executable instructions are executed by a processor, they cause the processor to perform the method provided in this application, for example... Figure 4 , Figure 5 and Figure 6 The method shown.

[0365] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.

[0366] In some embodiments, executable instructions may take the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a standalone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.

[0367] As an example, executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple collaborating files (e.g., a file that stores one or more modules, subroutines, or code sections).

[0368] As an example, executable instructions can be deployed to execute on a single computing device, or on multiple computing devices located in one location, or on multiple computing devices distributed across multiple locations and interconnected via a communication network.

[0369] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.

Claims

1. A method for playing video in a map, characterized in that, include: In response to a first operation of displaying real-time traffic conditions, a real-time traffic map is displayed, the real-time traffic map including at least one control corresponding to video data of location points in the real-time traffic map; In response to an interactive operation on a target control among the at least one controls, a first acquisition request is sent, the first acquisition request being used to acquire target video data of a preset event, the target video data corresponding to the target control; the preset event includes at least one of congestion, traffic accident, and traffic control; The system receives a response to the first acquisition request and acquires the target video data based on the response, the location information of the preset event, and the time information. If the time interval between the time information of the preset event and the current time is less than a threshold, real-time video data is acquired. If the time interval between the time information of the preset event and the current time is greater than the threshold, video data corresponding to the time information is acquired. A video playback window is displayed on the map display interface, and the video playback window is used to play the target video data; The video playback window displays confirmation information and a confirmation control corresponding to the target video data. The confirmation control is enabled when the location information and the location point corresponding to the target video data meet the proximity condition. The confirmation control includes a first control that determines the existence of an event corresponding to the target video data and a second control that determines the non-existence of an event corresponding to the target video data. The confirmation information includes first confirmation data corresponding to the first control and second confirmation data corresponding to the second control. In response to a third operation on the first control, the first confirmation data is updated; in response to a fourth operation on the second control, the second confirmation data is updated.

2. The method according to claim 1, characterized in that, The step of acquiring the target video data based on the response information, the location information and time information of the preset event includes: The target video playback address is obtained based on the response information; the target video playback address has a corresponding relationship with the location information and the time information; Obtain the target video data based on the target video playback address.

3. The method according to claim 2, characterized in that, The step of obtaining the target video data based on the target video playback address includes: Obtain the valid time information of the target video playback address; Based on the valid time information and the current time, it is determined that the target video playback address is in a valid state; Obtain the target video data from the target video playback address.

4. The method according to claim 1, characterized in that, The step of obtaining target video data based on the response information includes: Obtain the target storage address carried in the response information; The target video data is retrieved from the terminal's local storage space based on the target storage address.

5. The method according to claim 1, characterized in that, The method further includes: A first floating layer is loaded in a preset area of ​​the map display interface according to a first preset transparency, and the video playback window is presented on the first floating layer; Play the target video data in the video playback window using one of the following methods: After the video playback window is displayed, the target video data will be played automatically in the video playback window; In response to a video playback command, the target video data is played in the video playback window; Based on the network connection status of the terminal, the playback of the target video in the video playback window is controlled, wherein the map display interface runs on the terminal.

6. The method according to claim 5, characterized in that, The step of controlling the playback of the target video in the video playback window based on the network connection status of the terminal includes: When the terminal is connected to a wireless LAN, the target video data is automatically played in the video playback window; or... When the terminal is in cellular connection mode or the terminal switches to cellular connection mode, and the conditions for automatic video playback are met, the target video data is automatically played in the video playback window; or, When the terminal is in cellular connection mode or the terminal switches to cellular connection mode and the conditions for automatic video playback are not met, a first prompt message is displayed in the video playback window. In response to the confirmation operation of the prompt message, the target video data is played in the video playback window. Alternatively, in response to the failure to receive the confirmation operation within a specified time, the video playback window is closed.

7. The method according to claim 6, characterized in that, The step of displaying the first prompt message in the video playback window includes: A second floating layer is loaded in the video playback window according to a second preset transparency. The second floating layer displays a confirmation control for playing and a selection control to not remind again within a preset time.

8. The method according to claim 6, characterized in that, After closing the video playback window, the method further includes: Obtain the target image corresponding to the target control; An image display window is displayed on the map display interface, and the target image is displayed in the image display window.

9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: The type of the target video data is obtained, wherein the type is either live data or recorded data; Display playback control controls for the target video data based on its type.

10. The method according to claim 9, characterized in that, The step of displaying playback control controls for the target video data according to the type of the target video data includes: When the type is live data, the playback control control includes a switch button, which is used to switch the target video data from a playback state to a paused state, or from a paused state to a playback state. When the type is recorded video data, the playback control control includes a progress bar control, which is used to control the playback progress of the target video data.

11. The method according to any one of claims 1 to 8, characterized in that, The method further includes: Receive a second operation to perform route planning, and obtain origin and destination information based on the second operation; The travel route is determined using the departure and destination information. When the terminal is in a wireless local area network connection state, it acquires video data corresponding to at least one location point included in the travel route; Store the video data.

12. The method according to any one of claims 1 to 8, characterized in that, The method further includes: Obtain the terminal's own location information; When it is determined that the location information and the location point corresponding to the target video data meet the proximity condition, a second prompt message is displayed to confirm whether the event corresponding to the target video data has occurred.

13. A method for playing video in a map, characterized in that, include: A first acquisition request is received, the first acquisition request being used to acquire target video data, the first acquisition request carrying location information; wherein, the first acquisition request is sent by the terminal triggered by the following: in response to a first operation of displaying real-time traffic conditions, displaying a real-time traffic map, the real-time traffic map including at least one control, the at least one control corresponding to video data of a location point in the real-time traffic map; in response to an interactive operation on a target control in the at least one control, sending the first acquisition request; In response to the first acquisition request, verification information is generated; wherein, the first acquisition request is used to acquire target video data of a preset event, the target video data corresponding to the target control; the preset event includes at least one of congestion, traffic accident, and traffic control; if the time interval between the time information of the preset event and the current time is less than a threshold, the terminal acquires real-time video data; if the time interval between the time information of the preset event and the current time is greater than the threshold, the terminal acquires video data corresponding to the time information; The response information carrying the verification information is sent to the terminal, so that the terminal can obtain the target video data based on the response information of the verification information, the location information and time information of the preset event; and a video playback window is displayed on the map display interface, the video playback window being used to play the target video data; The terminal is used to display confirmation information and confirmation controls corresponding to the target video data in the video playback window. The confirmation control is enabled when the location information and the location point corresponding to the target video data meet the proximity condition. The confirmation control includes a first control that determines the existence of an event corresponding to the target video data and a second control that determines the non-existence of an event corresponding to the target video data. The confirmation information includes first confirmation data corresponding to the first control and second confirmation data corresponding to the second control. In response to a third operation on the first control, the first confirmation data is updated; in response to a fourth operation on the second control, the second confirmation data is updated.

14. The method according to claim 13, characterized in that, The method further includes: A second request to obtain a video playback address sent by a receiving terminal, wherein the second request carries unverified information corresponding to the verification information and the location information; When it is determined that the verification information to be verified has passed based on the verification information, a third request to obtain the video playback address is sent to the video server; The system receives a response from the video server and sends the response to the terminal, the response containing the video playback address.

15. The method according to claim 14, characterized in that, The method further includes: Obtain road network data corresponding to the electronic map; When a preset event is determined to occur based on the road network data, the location information and time information corresponding to the preset event are obtained. The location and time information are sent to the video server so that the video server can obtain the video data corresponding to the preset event based on the location and time information.

16. A video playback device in a map, characterized in that, The device includes: The fourth display module is used to display a traffic map in response to a first operation of displaying real-time traffic conditions. The traffic map includes at least one control, which corresponds to video data of a location point in the traffic map. A first sending module is configured to send a first acquisition request in response to an interactive operation on a target control among the at least one controls. The first acquisition request is used to acquire target video data of a preset event, the target video data corresponding to the target control; the preset event includes at least one of congestion, traffic accident, and traffic control. The first acquisition module is configured to receive response information in response to the first acquisition request, and acquire the target video data based on the response information, the location information and time information of the preset event; wherein, if the time interval between the time information of the preset event and the current time is less than a threshold, then real-time video data is acquired; if the time interval between the time information of the preset event and the current time is greater than the threshold, then video data corresponding to the time information is acquired. A first display module is configured to display a video playback window on the map display interface, the video playback window being used to play the target video data; the video playback window displays confirmation information and a confirmation control corresponding to the target video data, wherein the confirmation control is enabled when the location information and the location point corresponding to the target video data meet the proximity condition; the confirmation control includes a first control determining the existence of an event corresponding to the target video data and a second control determining the non-existence of an event corresponding to the target video data, the confirmation information including first confirmation data corresponding to the first control and second confirmation data corresponding to the second control; in response to a third operation on the first control, the first confirmation data is updated, and in response to a fourth operation on the second control, the second confirmation data is updated.

17. A video playback device in a map, characterized in that, The device includes: A first receiving module is configured to receive a first acquisition request, the first acquisition request being used to acquire target video data, the first acquisition request carrying location information; wherein, the first acquisition request is sent by a terminal triggered by the following: in response to a first operation of displaying real-time traffic conditions, displaying a real-time traffic map, the real-time traffic map including at least one control, the at least one control corresponding to video data of a location point in the real-time traffic map; and in response to an interactive operation on a target control in the at least one control, sending the first acquisition request; A generation module is used to generate verification information in response to the first acquisition request; wherein, the first acquisition request is used to acquire target video data of a preset event, the target video data corresponding to the target control; the preset event includes at least one of congestion, traffic accident, and traffic control; if the time interval between the time information of the preset event and the current time is less than a threshold, the terminal acquires real-time video data; if the time interval between the time information of the preset event and the current time is greater than the threshold, the terminal acquires video data corresponding to the time information; The second sending module is used to send response information carrying the verification information to the terminal, so that the terminal can obtain the target video data based on the response information of the verification information, the location information and time information of the preset event; display a video playback window on the map display interface, the video playback window being used to play the target video data; the terminal is used to display confirmation information and confirmation control corresponding to the target video data in the video playback window, wherein the confirmation control is enabled when the location information and the location point corresponding to the target video data meet the proximity condition; the confirmation control includes a first control determining the existence of an event corresponding to the target video data and a second control determining the non-existence of an event corresponding to the target video data, the confirmation information including first confirmation data corresponding to the first control and second confirmation data corresponding to the second control; in response to a third operation on the first control, the first confirmation data is updated, and in response to a fourth operation on the second control, the second confirmation data is updated.

18. A video playback device in a map, characterized in that, include: Memory, used to store executable instructions; A processor, when executing executable instructions stored in the memory, implements the method according to any one of claims 1 to 12 or any one of claims 13 to 15.

19. A computer-readable storage medium, characterized in that, It stores executable instructions for use by a processor to implement the method described in any one of claims 1 to 12 or any one of claims 13 to 15.

20. A computer program product comprising computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, they implement the method according to any one of claims 1 to 12 or any one of claims 13 to 15.