WO2022218083A1 - 地图中的视频播放方法、装置、设备、计算机可读存储介质及计算机程序产品 - Google Patents

地图中的视频播放方法、装置、设备、计算机可读存储介质及计算机程序产品 Download PDF

Info

Publication number
WO2022218083A1
WO2022218083A1 PCT/CN2022/080851 CN2022080851W WO2022218083A1 WO 2022218083 A1 WO2022218083 A1 WO 2022218083A1 CN 2022080851 W CN2022080851 W CN 2022080851W WO 2022218083 A1 WO2022218083 A1 WO 2022218083A1
Authority
WO
WIPO (PCT)
Prior art keywords
video data
information
target video
target
map
Prior art date
Application number
PCT/CN2022/080851
Other languages
English (en)
French (fr)
Inventor
周志桐
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2022218083A1 publication Critical patent/WO2022218083A1/zh
Priority to US17/992,735 priority Critical patent/US20230084001A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25841Management of client data involving the geographical location of the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4316Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • H04N21/4524Management of client data or end-user data involving the geographical location of the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP

Definitions

  • the present application relates to Internet technologies, and in particular, to a video playback method, apparatus, device, computer-readable storage medium, and computer program product in a map.
  • electronic maps play an important role in people's travel.
  • Electronic maps are also widely used in various occasions. For example, when using electronic maps for path planning or navigation with the help of electronic maps, when events (including but not limited to congestion, construction, traffic accidents, etc.) occur on the road, The electronic map will give corresponding prompts, but the existing prompt information has a single form and is not intuitive enough. The technical status quo of the singleness of the information presented by the electronic map for the road affects the timely acquisition of valuable information related to the road based on the electronic map.
  • Embodiments of the present application provide a video playback method, device, device, computer-readable storage medium, and computer program product in a map, which can enable an electronic map to timely and accurately provide road-related information in a variety of information display forms, and provide travel Valuable reference.
  • An embodiment of the present application provides a video playback method in a map, including:
  • a video play window is displayed on the map display interface, and the video play window is used to play the target video data.
  • An embodiment of the present application provides a video playback method in a map, including:
  • the response information carrying the verification information is sent to the terminal, so that the terminal acquires target video data based on the verification information.
  • An embodiment of the present application provides a video playback device in a map, including:
  • the first sending module is configured to send a first acquisition request in response to an interactive operation on the target control in the map display interface, where the first acquisition request is used to acquire target video data, and the target video data is related to the target control. correspond;
  • a first obtaining module configured to receive response information for the first obtaining request, and obtain the target video data based on the response information
  • the first display module is configured to display a video play window on the map display interface, where the video play window is used to play the target video data.
  • the first obtaining module is further configured to:
  • the first obtaining module is further configured to:
  • the target video playback address is in a valid state
  • the effective time information includes an effective time and an expiry time
  • the first obtaining module is further configured to:
  • the target video playback address is in a valid state.
  • the first obtaining module is further configured to:
  • the target video data is acquired from the local storage space of the terminal.
  • the apparatus further includes:
  • a first loading module configured to 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
  • a video playback module configured to play the target video data in the video playback window in one of the following ways:
  • the video playback module is further configured to:
  • the target video data is automatically played in the video playback window
  • first prompt information is displayed in the video playback window, in response to the confirmation of the first prompt information operation, playing the target video data in the video playing window, or closing the video playing window in response to not receiving the confirmation operation within a specified time.
  • the video playback module is further configured to:
  • the first prompt message is displayed in the second floating layer, and the first prompt message is used to prompt selection of confirmation to play the video data or to select not to remind to play the video data within a preset time period.
  • a confirmation control for confirming playback and a selection control for not reminding again within a preset time period are presented.
  • the apparatus further includes:
  • a second acquisition module configured to acquire the target image corresponding to the target control
  • the second display module is configured to display an image display window on the map display interface, and display the target image in the image display window.
  • the apparatus further includes:
  • a third acquisition module configured to acquire the type of the target video data, where the type is one of live broadcast data and recorded broadcast data;
  • the third display module is configured to display the playback control controls of the target video data according to the type of the target video data.
  • the third display module is further configured to:
  • a switch button of the target video data is displayed, and the switch button is used to switch the target video data from a play state to a pause state, or from a pause state to a play state;
  • the type is recording and broadcasting data
  • at least a progress bar control of the target video data is displayed, and the progress bar control is used to control the playback progress of the target video data.
  • the apparatus further includes:
  • the second receiving module is configured to receive the first operation of displaying the real traffic situation
  • a fourth display module configured to display a live traffic map in response to the first operation, the live traffic map including at least one control capable of responding to an interactive operation, the at least one control being related to a location in the live traffic map corresponding to the video data of the point, and the at least one control includes the target control.
  • the apparatus further includes:
  • a third receiving module configured to receive a second operation for path planning, and obtain departure information and destination information based on the second operation
  • a first determining module configured to determine a travel route by using the departure information and destination information
  • a fourth acquisition module configured 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
  • a storage module configured to store the video data.
  • the apparatus further includes:
  • the fifth display module is configured 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 for determining that there is an event corresponding to the target video data and a first control for determining that the target does not exist
  • the video data corresponds to the second control of the event
  • the confirmation information includes first confirmation data corresponding to the first control and second confirmation data corresponding to the second control
  • a fifth obtaining module configured to obtain the location information of the terminal itself
  • a sixth display module configured to present second prompt information for confirming whether an event corresponding to the target video data occurs when it is determined that the position point corresponding to the position information and the target video data satisfies the proximity condition;
  • a first update module configured to update the first confirmation data based on the third operation if a third operation for the first control is received
  • a second update module configured to update the second confirmation data based on the fourth operation if a fourth operation for the second control is received.
  • An embodiment of the present application provides a video playback device in a map, and the device includes:
  • a first receiving module configured to receive a first acquisition request, where the first acquisition request is used to acquire target video data, and the first acquisition request carries location information;
  • a generating module configured to generate verification information in response to the first acquisition request
  • the second sending module is configured to send the response information carrying the verification information to the terminal, so that the terminal acquires target video data based on the verification information.
  • the apparatus further includes:
  • a fifth receiving module configured to receive a second acquisition request of the video playback address sent by the terminal, where the second acquisition request carries the information to be verified and the location information corresponding to the verification information;
  • a third sending module configured to send a third acquisition request of the video playback address to the video server when it is determined based on the verification information that the verification of the information to be verified has passed;
  • the sixth receiving module is configured to receive an acquisition response sent by the video server, and send the acquisition response to the terminal, where the acquisition response carries a video playback address.
  • the apparatus further includes:
  • a sixth acquisition module configured to acquire road network data corresponding to the electronic map
  • a seventh obtaining module configured to obtain location information and time information corresponding to the preset event when it is determined based on the road network data that a preset event occurs;
  • the fourth sending module is configured to send the location information and time information to the video server, so that the video server acquires video data corresponding to the preset event based on the location information and time information.
  • An embodiment of the present application provides a video playback device in a map, including:
  • the processor is configured to implement the method provided by the embodiments of the present application when executing the executable instructions stored in the memory.
  • Embodiments of the present application provide a computer-readable storage medium storing executable instructions for causing a processor to execute the methods provided by the embodiments of the present application.
  • Embodiments of the present application provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the video playback method in the above-mentioned map in the embodiment of the present application.
  • the map display interface can display event interaction controls representing preset events such as congestion, accident, construction, etc., wherein the event interaction control can be a control that triggers video viewing.
  • the event interaction control can be a control that triggers video viewing.
  • a first acquisition request for acquiring target video data is sent, and when response information for the first acquisition request is received, the target video data is acquired based on the response information, And display a video play window on the map display interface, so as to play the target video data in the video play window.
  • the electronic map can provide timely and accurate road-related information in a variety of information display forms, providing valuable reference for travel, and then viewing the video corresponding to traffic events such as congestion, accidents, and construction through the electronic map, thereby improving information interaction. richness.
  • FIG. 1 is a schematic diagram of an interface for displaying event information in the related art
  • FIG. 2 is a schematic diagram of a network architecture of an information system of an electronic map provided by an embodiment of the present application
  • FIG. 3A is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • 3B is a schematic structural diagram of a map server provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a realization of a video playback method in a map provided by an embodiment of the present application
  • FIG. 5 is a schematic flowchart of the implementation of playing video data in a video playback window provided by an embodiment of the present application
  • FIG. 6 is a schematic flowchart of yet another implementation of a video playback method in a map provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a network architecture of a network management access service and a video provider provided by an embodiment of the present application;
  • FIG. 8 is an implementation sequence diagram of a video playback method in a map provided by an embodiment of the present application.
  • FIG. 9 provides a schematic diagram of a navigation page for entering a live traffic live map according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a display interface of a live traffic map provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of an interface for playing a video under a mobile network provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of an interface for playing a recorded video provided by an embodiment of the present application.
  • first ⁇ second ⁇ third is only used to distinguish similar objects, and does not represent a specific ordering of objects. It is understood that “first ⁇ second ⁇ third” Where permitted, the specific order or sequence may be interchanged to enable the embodiments of the application described herein to be practiced in sequences other than those illustrated or described herein.
  • Electronic map that is, digital map, is a map that is digitally stored and consulted using computer technology.
  • Network live broadcast collect information through signal acquisition equipment (audio or video), and then publish it through the network for users to watch.
  • signal acquisition equipment audio or video
  • Client various forms of software that present maps and live content, such as map browsers, map apps, map applets, navigation software, video clients, dedicated live clients and social network clients, etc., can have Versions suitable for various platforms (such as computer terminals, vehicle terminals, mobile terminals, etc.).
  • some electronic maps support the display of icons (ICON) of events such as congestion, construction, traffic control, etc.
  • ICON icons
  • the page card 002 shown in FIG. 1 can be displayed, in the page card Articles or pictures related to the event can be made.
  • the displayed pictures are generally pre-set specific configuration pictures. Real-time current location pictures or videos cannot be obtained, and the network architecture of the related solutions cannot access the real-time traffic data service and display it on the client.
  • a video playback area is supported, so as to play live data or recorded video data through the video playback area, thereby improving Information richness of electronic maps.
  • the device provided by the embodiment of the present application may be implemented as a notebook computer, a tablet computer, a desktop computer, a set-top box, a vehicle-mounted device, a mobile device (for example, a mobile phone , portable music players, personal digital assistants, dedicated messaging devices, portable game devices, etc. various types of terminals can also be implemented as servers.
  • a mobile device for example, a mobile phone , portable music players, personal digital assistants, dedicated messaging devices, portable game devices, etc.
  • various types of terminals can also be implemented as servers.
  • exemplary applications when the device is implemented as a terminal will be described.
  • FIG. 2 is a schematic diagram of a network architecture of a video playback system 100 in a map provided by an embodiment of the present application.
  • the network architecture includes: a video server 200, a map server 300, and a terminal 400, wherein the terminal A communication connection is established between 400 and the map server 300 and the map server 300 and the video server 200 through a network (not shown in FIG. 2 ), and the network may be a wide area network or a local area network, or a combination of the two.
  • a map client may be installed in the terminal 400, and the map client may be used for travel navigation, route planning, and the like.
  • an event interaction control for a preset event may be displayed in a corresponding place on the display interface of the electronic map.
  • the terminal receives an event interaction control for a certain event
  • obtain the target video playback address from the video server 200 through the map server 300 and then obtain the corresponding video data based on the target video playback address, on the terminal
  • a video play window is presented in the display part 400, so that the video data is played in the video play window.
  • the map server 300 may include a map background and a road condition service to obtain road network data through the road condition service.
  • a road condition server independent of the map server 300 may be included in the network architecture.
  • the road condition server, the map server 300 and the video server 200 may be independent physical servers, or may be server clusters or distributed systems composed of multiple physical servers, or may provide cloud services, cloud databases, cloud computing, cloud functions, and cloud services.
  • Cloud servers for basic cloud computing services such as storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
  • the terminal 400 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart voice interaction device, a smart home appliance, a vehicle terminal, etc., but is not limited thereto.
  • the terminal and the server may be directly or indirectly connected through wired or wireless communication, which is not limited in this embodiment of the present application.
  • map server 300 and the video server 200 are independent entities. In the actual implementation process, the map server 300 and the video server 200 may be integrated into one server, and the server can complete the Features of map server and video server.
  • FIG. 3A is a schematic structural diagram of a terminal 400 provided by an embodiment of the present application.
  • the terminal 400 shown in FIG. 3A includes: at least one processor 410 , memory 450 , at least one network interface 420 and user interface 430 .
  • the various components in terminal 400 are coupled together by bus system 440 .
  • bus system 440 is used to implement the connection communication between these components.
  • the bus system 440 also includes a power bus, a control bus, and a status signal bus.
  • the various buses are labeled as bus system 440 in FIG. 3A.
  • the processor 410 may be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where a general-purpose processor may be a microprocessor or any conventional processor or the like.
  • DSP Digital Signal Processor
  • User interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and/or one or more visual display screens.
  • 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, and other input buttons and controls.
  • Memory 450 may be removable, non-removable, or a combination thereof.
  • Exemplary hardware devices include solid state memory, hard drives, optical drives, and the like.
  • Memory 450 optionally includes one or more storage devices that are physically remote from processor 410 .
  • Memory 450 includes volatile memory or non-volatile memory, and may also include both volatile and non-volatile memory.
  • the non-volatile memory may be a read-only memory (ROM, Read Only Memory), and the volatile memory may be a random access memory (RAM, Random Access Memory).
  • ROM read-only memory
  • RAM random access memory
  • the memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
  • 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 exemplified below.
  • the operating system 451 includes system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;
  • An input processing module 453 for detecting one or more user inputs or interactions from one of the one or more input devices 432 and translating the detected inputs or interactions.
  • FIG. 3A shows a video playback apparatus 454 in the map stored in the memory 450, which 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 displaying module 4543, these modules are logical, and therefore can be arbitrarily combined or further split according to the implemented functions.
  • the first display module 4543 and other display modules are used to enable presentation of information (eg, for operating peripheral devices) via one or more output devices 431 (eg, display screen, speakers, etc.) associated with the user interface 430 and user interfaces that display content and information).
  • output devices 431 eg, display screen, speakers, etc.
  • the function of each module will be explained below.
  • FIG. 4 is a schematic flowchart of an implementation of the method for playing a video in a map provided by an embodiment of the present application. The following steps are described.
  • Step S101 in response to the interactive operation on the target control in the map display interface, send a first acquisition request.
  • the first obtaining request is used to obtain target video data, and the target video data corresponds to the target control.
  • the map displayed on the map display interface may be the default map display interface displayed when the map client is activated, or the map webpage is opened through the browser, and the default map display interface may display event controls with preset events (for example, It can be a construction event control as shown in 001 in Figure 1), the preset event can be construction, traffic accident, traffic control, etc., and the preset event can also be real-time road conditions in key road sections.
  • preset events for example, It can be a construction event control as shown in 001 in Figure 1
  • the preset event can be construction, traffic accident, traffic control, etc.
  • the preset event can also be real-time road conditions in key road sections.
  • the type is not limited.
  • Clicking the event control can present an event information interface, in which the basic information of the preset event is presented, for example, location information, occurrence events, etc., and an event interaction control can also be presented in the event information interface.
  • the event interaction control can be a video playback control.
  • what is displayed in the map display interface may also be a live traffic map presented in response to a first operation for live traffic, and the live traffic map includes an event interaction control corresponding to a preset event.
  • the interactive control may be a video playback control (for example, it may be 1001 as shown in FIG. 10 ).
  • the target control is one of one or more event interaction controls displayed in the map display interface
  • the interactive operation for the target control in the map display interface may be a click or touch operation for the target control.
  • the first obtaining request sent in response to the interactive operation may be sent to the map server, and at this time, the first obtaining request may carry the location information corresponding to the target control.
  • the map server includes a map background service and a road condition service
  • the road condition service can be used as a service process of the map server.
  • the first acquisition request is sent to the map server.
  • the response information is constructed by the map server.
  • the first acquisition request is sent to the road condition server via the map backend.
  • the response information is constructed by the road condition server, and then via The map background service is sent to the terminal.
  • the first acquisition request may be sent to the terminal's own storage device to request to acquire the target video data from the terminal's local storage space.
  • Step S102 Receive response information for the first acquisition request, and acquire the target video data based on the response information.
  • the map server When the first acquisition request is sent to the map server, after the terminal sends the first acquisition request to the map server, the map server generates a one-time token (also referred to as a one-time password) based on the first acquisition request, and sends it to the map server.
  • the one-time token is carried in the response information as verification information and returned to the terminal.
  • the terminal receives the response information, parses the response information to obtain verification information, and further obtains target video data based on the verification information.
  • the response information carries the target storage address, and at this time, the target video data can be acquired based on the target storage address.
  • Step S103 displaying a video playing window on the map display interface.
  • the video playing window is used to play the target video data.
  • the cover of the target video data is the first frame image by default. In actual implementation, the cover may also be set for the target video data.
  • a floating layer can be loaded on the map display interface according to a certain transparency, and a video playback window can be presented on the floating layer.
  • the video playback window is rendered on the layer.
  • the window size of the video playback window may be smaller than the interface size of the map display interface, or may be equal to the interface size of the map display interface.
  • an interactive operation for one of the event interaction controls can be received, and the target control It can be a control that triggers video viewing.
  • a first acquisition request is sent, and the first acquisition request is used to acquire target video data, and the target video data corresponds to the target control; then Receive response information for the first acquisition request, and acquire the target video data based on the response information; and display a video playback window on the map display interface, where the video playback window is used to play the target video data .
  • users can view videos corresponding to traffic events such as congestion, accidents, construction, or road condition information in the electronic map, which can not only improve the information provided by the electronic map, but also improve the richness of information interaction.
  • step S102 shown in FIG. 4 has different implementations based on whether the first acquisition request is sent to the map server or to the storage settings of the terminal itself, Wherein, when the first acquisition request is sent to the map server, the response information carries verification information, and the verification information may be a one-time token.
  • step S102 can be implemented by the following steps:
  • Step S1021A obtaining the target video playback address based on the response information.
  • this step can be further achieved by the following steps:
  • Step S21A1 Send a second acquisition request for the video playback address to the video server.
  • the second obtaining request carries the information to be verified corresponding to the verification information and the location information corresponding to the event interaction control.
  • the terminal sends 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, and sends a third acquisition request after the verification is passed. to the video server.
  • the third acquisition request only carries the location information, and does not need to carry the verification information.
  • the third acquisition request also carries time information corresponding to the event interaction control, and after receiving the third acquisition request, the video server acquires the video of the corresponding video data based on the occurrence information and the time information
  • the playback address is carried, and the target video playback address is carried in the acquisition response and returned to the terminal.
  • Step S1022 Receive the acquisition response returned by the video server, and acquire the video playback address carried in the acquisition response.
  • the map server verifies the information to be verified based on the verification information to obtain a verification result. , it may be to receive the acquisition response returned by the video server via the map server, that is to say, the acquisition response is first sent by the video server to the map server, and then sent by the map server to the terminal.
  • the terminal may directly send the second acquisition request to the video server, then the video server acquires the verification information from the map server, and based on the verification information The information to be verified is verified to obtain a verification result.
  • the video server directly returns the acquisition response to the terminal.
  • the video playback address is obtained based on the video viewing response, so as to provide necessary playback links for subsequent video playback and ensure normal video playback.
  • Step S1022A Acquire the target video data according to the target video playback address.
  • the target video playback address is a temporary Uniform Resource Locator (URL, Uniform Resource Locator) address.
  • URL Uniform Resource Locator
  • the video playback address has a valid time. Therefore, when step S1022A is implemented, after obtaining the After the target video playback address is obtained, it may be first determined whether the video playback address is valid based on the current time and the valid time, and when the video playback address is valid, the corresponding target video data is obtained.
  • the target video data may be live video data or recorded video data.
  • This step S1022A can be implemented by the following steps:
  • Step S22A1 Obtain the valid time information of the target video playback address.
  • valid time information in order to prevent video data from being misappropriated by other applications and ensure the timeliness and authenticity of video data, valid time information will be set for the video playback address, and the valid time information may include valid time and invalid time, for example
  • the effective time can be 17:00 on April 6, 2021, and the expiration time can be 12:00 on April 7, 2021.
  • Step S22A2 determining that the target video playback address is valid based on the valid time information and the current time.
  • step S22A3 is executed at this time; in some embodiments, if the current time is not between the effective time and the expiry time, then It is determined that the target video playback address is in an invalid state, and a prompt message that the video has expired can be presented at this time.
  • Step S22A3 Acquire the target video data from the target video playback address.
  • the response information carries the target storage address, and "acquiring target video data based on the response information" in step S102 can be implemented by the following steps:
  • Step S1021B obtaining the target storage address carried in the response information
  • Step S1022B Acquire the target video data from the local storage space of the terminal according to the target storage address.
  • the target video data can be obtained from the local storage space of the terminal, which can not only improve video playback efficiency, but also reduce traffic consumption.
  • step S103 the following steps may also be performed:
  • 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.
  • the preset area of the map display interface may be a partial area of the map display interface, such as the upper half area, the lower half area, the middle area, etc. of the map display interface, or the entire area of the map display interface.
  • the first preset transparency can be preset values such as 0%, 10%, 25%, etc.
  • the first preset transparency is 0%, it means that the first floating layer is completely opaque, that is, the first floating layer is completely Covers the map screen of the preset area part of the map display interface.
  • Step S105 play the target video data in the video playback window according to one of the following methods:
  • the target video data is automatically played in the video playback window.
  • the target video data can be automatically played without additional operation by the user, which can simplify the video playback process and improve the video playback efficiency.
  • the target video data is played in the video playback window.
  • the target video data needs to be played after receiving an explicit video playback instruction, which can ensure that the video playback is performed under the premise of the user's permission.
  • the target video is controlled to be played in the video playback window according to the network connection state of the terminal, wherein the map display interface runs on the terminal.
  • the third manner may be implemented through the steps shown in FIG. 5 , and the steps for implementing the third manner will be described below with reference to FIG. 5 .
  • Step S1051 acquiring the network connection state of the terminal.
  • the network connection status of the terminal may be a successful connection or a connection failure.
  • Step S1052 judging whether the network connection state is a successful connection.
  • step S1053 is entered; if the network connection status is connection successful, step S1054 is entered.
  • Step S1053 outputting third prompt information that the network connection state is abnormal.
  • Step S1054 it is determined whether the terminal is in a wireless local area network connection state.
  • the terminal When the network connection status is connected successfully, the terminal may be in the wireless LAN connection status or in the cellular network connection status. In the wireless LAN connection status, the terminal will not incur related charges due to additional mobile traffic, while in the cellular network connection status In the connected state, related charges will be incurred due to mobile traffic. Therefore, in this step, it is necessary to determine what kind of network connection state the user is in, so as to carry out the corresponding processing process. Wherein, when it is determined that it is in a wireless local area network connection state, it goes to step S1055; when it is determined that it is in a cellular connection state, it goes to step S1056.
  • Step S1055 automatically playing the target video data in the video playing window.
  • the video data is directly played in the video playback window.
  • Step S1056 determine whether the video auto-play condition is satisfied.
  • Determining whether the video auto-play condition is met may be to determine whether the "operator network auto-play" function is enabled and within the range of "no more reminders on the 7th". When it is within the range of “Reminder”, it is determined that the video auto-play condition is satisfied, and then it goes to step S1057; when it is determined that “operator network auto-play” is not turned on or is not within the range of “No more reminders for 7 days”, it is determined that the video auto-play is not satisfied. condition, then proceed to step S1058.
  • Step S1057 automatically playing the target video data in the video playing window.
  • a third floating layer will be loaded according to the third transparency when the target video data is played, and a prompt message of "playing using a mobile process" will be output in the third floating layer, and the prompt information will be displayed for a certain period of time after the prompt information is displayed. , cancel loading the third floating layer, and continue to play the target video data.
  • Step S1058 Present first prompt information for playing the video in the video playing window.
  • a second floating layer may be loaded on the video playback window according to a second preset transparency; then the first prompt message is displayed in the second floating layer, the first prompt message It is used for prompting selection to confirm playback of video data or selecting not to remind playback of video data within a preset duration, and the second floating layer presents a confirmation control for confirming playback and a selection control for no longer reminding within a preset duration.
  • Step S1059 judging whether a confirmation operation for the first prompt message is received.
  • the confirmation operation may be a click or touch confirmation control.
  • a confirmation operation for the first prompt message go to step S10510; when the confirmation operation of the click or touch confirmation control is not received within the specified time , it is determined that no confirmation operation has been received; in some embodiments, a cancel control for canceling playback may also be presented in the second floating layer, and when a click or touch operation for the cancel control is received, it is determined that no confirmation operation has been received .
  • step S10511 is entered.
  • Step S10510 playing the target video data in the video playing window.
  • step S1057 When playing the target video data, the third floating layer is loaded according to the third transparency, and the prompt information of "playing using the mobile process" is output in the third floating layer. After the prompt information is presented for a certain period of time, the loading of the third floating layer is canceled, and the target video data is continued to be played.
  • Step S10511 close the video playback window.
  • the video playback window is closed, that is, the loading of the first floating layer is canceled, and the electronic map is displayed normally at this time.
  • the terminal may further acquire the target image corresponding to the target control; and display an image display window on the map display interface, and display the target image on the image display window, In this way, not only the mobile traffic consumption of the terminal can be reduced, but also the user can know the event information in time.
  • steps S1051 to S10511 when the target video data is played in the video playback window, the first floating layer is loaded according to a certain transparency, so as to present the video playback window in the first floating layer, and then display the video data in the first floating layer.
  • the network connection status of the terminal when the network connection status is connected, different implementation methods will be implemented. Further, when the network connection status is connection failure, a prompt message indicating that the network connection status is abnormal will be output; when the network connection status is connection successful, it will be further determined.
  • the type of network connection for example, in the wireless LAN connection state, the target video data will be played directly; in the cellular network connection state, it will be judged whether the video auto-play condition is met, and when the video auto-play condition is met, the target video data will be played directly.
  • Video data when the automatic playback conditions are not met, the user will be prompted whether to continue playing the video.
  • the target video data When receiving the confirmation operation to continue playing, the target video data will be played through the video playback window.
  • different The processing process can not only ensure the smoothness of the video playback in the wireless network connection, but also ensure that the video playback under the cellular network is performed with the user's knowledge and permission, thereby improving the transparency of information interaction.
  • a video playback window is displayed, or while or after the target video data is played in the video playback window, the following steps may also be performed:
  • Step S201 acquiring the type of the target video data.
  • the type is one of live broadcast data and recorded broadcast data.
  • live broadcast it indicates that the target video data is collected in real time by the video capture device at the location where the preset event occurred and uploaded to the video server.
  • recording and broadcast it indicates that the target video data is before the current time Within a certain period of time, it is collected by the video capture device at the location where the preset event occurs and uploaded to the video server.
  • the type may be presented in the video playback window while the target video data is being played.
  • the data type may be displayed at the edge of the video screen in the video playback window, for example, "live broadcast” or “recorded broadcast” may be displayed in the upper right corner, upper left corner, and lower right corner of the video screen, as shown in Figure 10.
  • "live broadcast” is displayed in the area 1002 in the lower left corner of the video screen, indicating that the type of the currently playing target video data is a live broadcast type.
  • Step S202 displaying a playback control control of the target video data according to the type of the target video data.
  • the playback control control when the type is live data, the playback control control includes a switch button, and when the playback control control for displaying the target video data is implemented, that is, the switch button for displaying the target video data, and the switch button is used for in switching the target video data from the play state to the pause state, or from the pause state to the play state;
  • the playback control control When the type is recording and broadcasting data, the playback control control includes a progress bar control, and when the playback control control for displaying the target video data is implemented, that is, a progress bar control for displaying the target video data, the progress bar control Used to control the playback progress of the target video data.
  • the playback control control when the type is recording and broadcasting data, the playback control control includes switching buttons in addition to the progress bar control.
  • the playback progress can be adjusted by the following steps:
  • Step S301 Receive a moving operation for the progress bar control, and determine a target playback progress corresponding to the moving operation.
  • the moving operation may be an operation of dragging a progress bar control.
  • the moving distance of the moving operation may be obtained, and based on the moving distance and the total duration of the video, the moving duration is determined, and then according to The current playback progress and moving duration determine the target playback progress.
  • Step S302 Present the video data corresponding to the target playback progress in the video playback window.
  • the target playback progress may be the target playback time point, and when the video data corresponding to the target playback progress is presented, the video data may be continuously played from the target playback time point.
  • the video when the user opens the map for path planning, the video can be downloaded or cached through the following steps:
  • Step S401 Receive a second operation for path planning, and acquire departure information and destination information based on the second operation.
  • Step S402 determining a travel route by using the departure information and destination information.
  • 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.
  • Step S403 storing the video data.
  • the video data corresponding to at least one location point included in the travel route may be downloaded to the local mobile terminal in advance, and stored in the local storage of the terminal. In this way, users can directly obtain video data from the local storage space of the terminal when they need to play video in the map, which improves the efficiency of video playback and reduces traffic consumption.
  • an embodiment of the present application further provides a method for playing a video in a map, which is applied to the network architecture shown in FIG. 2
  • FIG. 6 is another method for playing a video in a map provided by an embodiment of the present application.
  • a schematic diagram of the implementation process, as shown in Figure 6, the process includes:
  • Step S601 the map server obtains road network data corresponding to the electronic map.
  • the road network data corresponding to the electronic map can be obtained from the road network service, and the road network service can be a service process of the map server itself, or other servers independent of the map server.
  • the road network data may be real-time road network data or historical road network data within a certain period of time from the current moment.
  • Step S602 when the map server determines that a preset event occurs based on the road network data, obtains location information and time information corresponding to the preset event.
  • the map server determines whether a preset event such as congestion, traffic accident, and traffic control occurs based on road network data, and when it is determined that a preset event occurs, obtains location information and time information corresponding to the preset event.
  • the location information may be latitude and longitude information
  • the time information may be the time at which the preset event occurs.
  • Step S603 the map server sends the location information and time information to the video server.
  • the map server sends the location information and time information to the video server, so that the video server obtains corresponding video data based on the location information and time information.
  • Step S604 the video server acquires the video data corresponding to the preset event based on the location information and time information.
  • the video server may acquire the device information of the image capture device corresponding to the location information based on the location information, and acquire the corresponding image based on the device information
  • the video data collected by the acquisition device in real time; if the time interval between the time information and the current moment 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.
  • Step S605 the video server determines a video playback address corresponding to the video data, and establishes a corresponding relationship between the video playback address and the location information and time information.
  • Step S606 the terminal starts the electronic map client in response to the operation instruction for starting the electronic map client.
  • the terminal may also acquire the electronic map data based on the web page address in response to the operation instruction for opening the electronic map web page.
  • Step S607 the terminal presents the electronic map on the map display interface.
  • the presented electronic map can be the electronic map of the default theme, for example, a 2D plane map is presented every time it is opened, or it can be the map used when the electronic map client was closed last time, for example, the electronic map client was closed last time.
  • the traffic live map is displayed again when you open it again.
  • the live traffic map can be displayed by the following steps:
  • Step S501 receiving a first operation of displaying the live traffic situation, the first operation may be when clicking the button control 901 of the "live traffic map" shown in FIG. 9 .
  • Step S502 in response to the first operation, display a live traffic map, the live traffic map includes at least one control capable of responding to an interactive operation, the at least one control and the video data of the location points in the live traffic map Correspondingly, the at least one control includes the target control.
  • Step S608 the terminal receives the interactive operation for the target control in the map display interface.
  • Step S609 the terminal sends a first acquisition request to the map server in response to the interactive operation.
  • the first acquisition request may carry location information corresponding to the event interaction control, and may also carry an event identifier.
  • Step S610 the map server generates verification information in response to the first acquisition request.
  • the verification information can be a one-time password, or become a one-time token or a dynamic password.
  • Dynamic password is an authentication technology that uses cryptographic technology to share secrets between the client and the server. It is a strong authentication technology and a very convenient technical means to enhance the current static password authentication. It is an important Two-factor authentication technology.
  • Step S611 the map server sends the response information carrying the verification information to the terminal, so that the terminal acquires the target playback data based on the verification information.
  • Step S612 the terminal sends a second acquisition request of the video playback address to the map server.
  • the second obtaining request carries the information to be verified, and may also carry the location information and the event identifier corresponding to the target control.
  • Step S613 the map server verifies the to-be-verified information to obtain a verification result.
  • the verification information sent to the terminal may be used to verify the information to be verified sent by the terminal.
  • the verification result of passing verification is obtained, and when the two are inconsistent, the verification result of verification failure is obtained.
  • the verification fails the following steps will not be performed, and the map server will return to the terminal a notification message that the acquisition of the video playback address fails.
  • Step S614 when the verification is passed, the map server sends a third acquisition request of the video playback address to the video server.
  • the third acquisition request sent by the map server to the video server may carry the location information and the event identifier corresponding to the event interactive control.
  • Step S615 the video server obtains the target video playback address.
  • the video server acquires the corresponding target video playback address based on the event identifier and location information carried in the acquisition request.
  • Step S616 the video server sends the target video playback address to the map server.
  • Step S617 the map server sends the target video playback address to the terminal.
  • Step S619 the terminal presents a video playback window on the display interface, and plays the target video data in the video playback window.
  • Step S620 the terminal displays confirmation information and confirmation controls corresponding to the target video data in the video playback window.
  • the confirmation control includes a first control for determining that the event corresponding to the target video data exists and a second control for determining that there is no event corresponding to the target video data, and the confirmation information includes the first confirmation data corresponding to the first control and all second confirmation data corresponding to the second control.
  • the first confirmation data may 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.
  • the first confirmation data is 20, indicating that 20 users pass through the target.
  • the location point corresponding to the video data, and confirm that the video is real;
  • the second confirmation data may 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.
  • Step S621 the terminal acquires its own location information.
  • the terminal when the terminal enables the automatic location acquisition function or enables the GPS function, it can acquire its own location information, and the location information may also be longitude and latitude information.
  • Step S622 when the terminal determines that the location information and the location point corresponding to the target video data satisfy the proximity condition, present second prompt information confirming whether the event corresponding to the target video data occurs.
  • step S622 it can be determined whether the location information of the terminal and the location point corresponding to the video data satisfy the proximity condition. Since the location information can be represented by the latitude and longitude information, during implementation, it can be determined based on the latitude and longitude information of the two location points. The distance between the location points corresponding to the target video data, when the distance is less than a preset distance threshold, for example, less than 50 meters, it is determined that the proximity condition is met, and a second prompt message confirming whether an event corresponding to the video data occurs is presented.
  • a preset distance threshold for example, less than 50 meters
  • Step S623 if the terminal receives the third operation for the first control, the terminal updates the first confirmation data based on the third operation.
  • the third operation may be an operation of touching or clicking the display area corresponding to the first control.
  • the first confirmation data for determining the occurrence of the event is incremented by 1.
  • Step S624 if the terminal receives the fourth operation for the second control, the terminal updates the second confirmation data based on the fourth operation.
  • the fourth operation may be an operation of touching or clicking the display area corresponding to the second control.
  • the second confirmation data that determines that the event has not occurred is incremented by 1.
  • the confirmation information and confirmation control of the target video data will be displayed in the video playback window, in order to prevent the user from clicking the confirmation control at will, only when it is determined that the location information of the terminal and the location point corresponding to the target video data satisfy the proximity condition. Enable the confirmation control. When the proximity condition is not met, the confirmation control is not enabled.
  • the map server after determining that a preset event occurs based on the acquired road network data, the map server requests the video server to determine the video data corresponding to the preset event, and creates the video data and location The corresponding relationship between information and time information, and then when the terminal starts the electronic map client or opens the electronic map webpage, and triggers the interactive operation for the event interactive control, the terminal sends the first acquisition request to the map server, and the map server returns to the terminal.
  • the terminal when the terminal sends a second acquisition request for the video playback address based on the verification information, it is sent to the video server via the map server, and after acquiring the video playback address, the terminal loads the video playback window, and plays in the video playback window
  • the video screen so that the user can know the progress of the preset event in time, increase the richness of interaction, and when it is determined that the terminal is close to the place where the preset event occurs, the first control and the second control to confirm whether the preset event occurs can be enabled. control, and update the confirmation information of the preset event based on the operation on the control, so as to ensure the authenticity of the preset event.
  • the general road electronic eye data and the video live broadcast device data of the same function accessed through the smart transportation basic service are used in the event road conditions on the home page of the map client, for congestion, accidents, etc. , road closures and other point events, support viewing the current real-time live video or recorded video.
  • a video proxy service is required to provide a transit service.
  • the network management access service 701 accesses multiple video providers 703 through the video proxy service 702 , and the video providers 703 provide a time-sensitive temporary playback address through the interface to ensure the exclusive validity of the video.
  • the video proxy service 702 can efficiently access different video providers, and the map client can use the live data of the subsequent data source without perception.
  • the interface field requested by the video proxy service can be:
  • FIG. 8 is an implementation sequence diagram of a video playback method in a map provided by an embodiment of the present application. As shown in FIG. 8 , the sequence process includes:
  • Step S801 the map client requests the map background based on the triggered point event.
  • Step S802 the map background requests a road condition service.
  • Step S803 the road condition service constructs a response message.
  • the traffic service takes the one-time token as a response message to the point event request.
  • Step S804 the road condition service returns the response message carrying the one-time token to the map background.
  • Step S805 the map backend returns the response message to the map client.
  • Step S806 the map client requests a video playback address from the map background based on the one-time token.
  • Step S807 the map background sends a request message for obtaining the video playback address to the video proxy service.
  • Step S808 the video proxy service constructs a response message.
  • the video proxy service uses the one-time temporary address as the response message corresponding to the request message for obtaining the video playback address.
  • Step S809 the video proxy service returns a response message carrying the one-time temporary address to the map background.
  • Step S810 the map backend returns the response message to the map client.
  • Step S811 the map client parses the response message to obtain a one-time temporary address.
  • the one-time temporary address has an expiration time.
  • Step S812 the map client downloads video data through the one-time temporary address.
  • the video data can be downloaded through the one-time temporary address, and the downloaded video can also be played on the video playback page. data.
  • the traffic road condition live map will be displayed.
  • a point event video logo 1001 as shown in FIG. 10 will be displayed.
  • the newly added video playing area in the map client will be displayed, taking FIG. 10 as an example for description.
  • a video playback area will be presented on the display interface to support the playback of video or live media.
  • the map client After the map client receives the video playback address, it can adjust the playback status of the video according to the network type where the map client is located. Among them, when it is connected to WiFi, the video will be played automatically without prompting information; when it is in or switched to a mobile network, it will be determined whether the automatic playback conditions are met, which may be to determine whether the "operator network autoplay" function is enabled and Within the scope of "No more reminders on the 7th", when the "operator network autoplay” is enabled and within the scope of "No more reminders on the 7th", a floating layer can be loaded, and the prompt information can be output in the floating layer: "A non-WIFI network is being used, and the playback will incur traffic charges", and the video data is played normally, and the prompt message disappears after 3 seconds of display; when the "operator network auto play” is turned off or is not within the range of "no more reminders for 7 days",
  • the floating layer 1101 can be loaded as shown in Figure 11, and a prompt message
  • the button for example, can be the "No more reminders within 7 days" selection control. By default, the selection control is unchecked. After checking, if the user clicks the "Continue Play” button control, it will output "A non-WIFI network is being used, and the playback will be The prompt message of "Incurring traffic charges", the video data is played normally, the prompt message disappears after 3 seconds, and the prompt floating layer will no longer appear within 7 days after checking "No more reminders within 7 days”.
  • a message prompt box (toast) will pop up to prompt "The current network is not good, please check the network settings", and disappear after 3 seconds.
  • the video data type will be displayed in the video playback window. If the video data is live data, the "Live” label can be output in the lower left corner of the video area; if it is a recorded video clip, the "Recording” label can be output. " label, as shown in Figure 10, "Live” is displayed in the 1002 area 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, if there is no first frame, it is the default corresponding to the point event picture.
  • the video control bar supports the following operations: a) pause/play (shown in FIG. 10 with a pause/play control 1003); b) if it is a video clip, it supports mobile playback progress, as shown in FIG. 12 As shown, the current progress and the total duration are output in the progress bar 1201; c) If it is a live broadcast, drag and drop is not supported, and only the current progress is described at the progress.
  • Video can enrich the richness of the information provided by the electronic map, and enable users to intuitively and truly understand the event information and event progress, thereby enhancing the competitiveness of the electronic map APP. With the increase, the scale effect will continue to promote the improvement of the experience of real-time data of electronic maps.
  • the video playback device 454 in the map stored in the memory 450 The software module in can include: a first sending module 4541, configured to send a first acquisition request in response to an interactive operation for the target control in the map display interface, where the first acquisition request is used to acquire target video data, the target The video data corresponds to the target control; the first acquisition module 4542, configured to receive response information for the first acquisition request, and to acquire the target video data based on the response information; the first display module 4543, configured to In order to display a video play window on the map display interface, the video play window is used to play the target video data.
  • a first sending module 4541 configured to send a first acquisition request in response to an interactive operation for the target control in the map display interface, where the first acquisition request is used to acquire target video data, the target The video data corresponds to the target control
  • the first acquisition module 4542 configured to receive response information for the first acquisition request, and to acquire the target video data based on the response information
  • the first display module 4543 configured to In order to display a
  • the first obtaining module is further configured to: obtain a target video playback address based on the response information; and obtain the target video data according to the target video playback address.
  • the first obtaining module is further configured to: obtain valid time information of the target video playback address; based on the valid time information and the current time, determine that the target video playback address is in a valid state; Obtain the target video data from the target video playback address.
  • the first obtaining module is further configured to: obtain the target storage address carried in the response information; and obtain the target video data from the local storage space of the terminal according to the target storage address.
  • the apparatus further includes: a first loading module configured to load a first floating layer according to a first preset transparency in a preset area of the map display interface, and load the first floating layer on the first floating layer Presenting the video playback window;
  • the video playback module is configured to play the target video data in the video playback window in one of the following ways: after displaying the video playback window, automatically play the video data in the video playback window the target video data; in response to the video playback instruction, play the target video data in the video playback window; control the playback of the target video in the video playback window according to the network connection state of the terminal, wherein,
  • the map display interface runs on the terminal.
  • the video playback module is further configured to: when the terminal is in a wireless local area network connection state, automatically play the target video data in the video playback window; or, when the terminal is in a cellular connection state state or the terminal switches to the cellular connection state, and the video auto-play condition is satisfied, the target video data is automatically played in the video playback window; or, when the terminal is in the cellular connection state or the terminal switches to the cellular connection state, and when the video auto-play condition is not met, the first prompt information is displayed in the video play window, and in response to the confirmation operation for the first prompt information, the target video data is played in the video play window, Alternatively, in response to the confirmation operation not being received within a specified time, the video playback window is closed.
  • the video playing module is further configured to: load a second floating layer in the video playing window according to a second preset transparency; display the first prompt message in the second floating layer, The first prompt message is used to prompt the selection to confirm the playback of the video data or to select not to remind the playback of the video data within the preset duration, and the second floating layer presents a confirmation control for determining the playback and a preset duration that will not be reminded again. Select the control.
  • the apparatus further includes: a second acquisition module, configured to acquire a target image corresponding to the target control; a second display module, configured to display an image display window on the map display interface, The image display window displays the target image.
  • the apparatus further includes: a third acquisition module configured to acquire the type of the target video data, where the type is one of live broadcast data and recorded broadcast data; a third display module configured to According to the type of the target video data, a playback control control of the target video data is displayed.
  • the third display module is further configured to: when the type is live data, display a switch button of the target video data, and the switch button is used to change the target video data from the playback The state is switched to the paused state, or from the paused state to the play state; when the type is recording and broadcasting data, at least a progress bar control of the target video data is displayed, and the progress bar control is used to control the target video data. playback progress.
  • the apparatus further includes: a second receiving module configured to receive a first operation for displaying a live traffic situation; a fourth display module configured to display a live traffic map in response to the first operation, the The traffic live map includes at least one control capable of responding to interactive operations, the at least one control corresponds to video data of a location point in the traffic live map, and the at least one control includes the target control.
  • the apparatus further includes: a third receiving module, configured to receive a second operation for path planning, and obtain departure information and destination information based on the second operation; a first determining module, configured to In order to use the departure information and destination information to determine the travel route; the fourth acquisition module is configured 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; the storage module , configured to store the video data.
  • a third receiving module configured to receive a second operation for path planning, and obtain departure information and destination information based on the second operation
  • a first determining module configured to In order to use the departure information and destination information to determine the travel route
  • the fourth acquisition module is configured 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
  • the storage module configured to store the video data.
  • the apparatus further includes: a fifth display module configured to display confirmation information and a confirmation control corresponding to the target video data in the video playback window, where the confirmation control includes determining that there is a corresponding confirmation of the target video data
  • fifth The acquisition module is configured to acquire the position information of the terminal itself;
  • the sixth display module is configured to present confirmation whether the corresponding position of the target video data occurs when it is determined that the position point corresponding to the position information and the target video data satisfies the proximity condition second prompt information of the event;
  • a first update module configured to update the first confirmation data based on the third operation if a third operation for the first control is received;
  • a second update module configured to update the second confirmation data based on the fourth operation if a fourth operation for the second control is received.
  • FIG. 3B is a schematic structural diagram of a map server 300 provided by an embodiment of the present application.
  • the map server 300 shown in FIG. 3B includes: at least one processor 310 , a memory 350 , at least one network interface 320 and a user interface 330 .
  • the various components in map server 300 are coupled together by bus system 340 .
  • Memory 350 is capable of storing data to support various operations, examples of which 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 in the map provided by the embodiment of the present application. As shown in FIG.
  • the software modules in the video playback device 355 in the map may include: a first receiving module 3551, configured to receive a first acquisition request, where the first acquisition request is used to acquire target video data, so The first acquisition request carries location information; the generating module 3552 is configured to generate verification information in response to the first acquisition request; the second sending module 3553 is configured to send the response information carrying the verification information to a terminal, so that the terminal acquires target video data based on the verification information.
  • the apparatus further includes: a fifth receiving module, configured to receive a second acquisition request of the video playback address sent by the terminal, where the second acquisition request carries information to be verified corresponding to the verification information and the location information; a third sending module, configured to send a third acquisition request for a video playback address to the video server when it is determined that the information to be verified is verified based on the verification information; a sixth receiving module, configured to receive The acquisition response sent by the video server, and the acquisition response is sent to the terminal, where the acquisition response carries the video playback address.
  • a fifth receiving module configured to receive a second acquisition request of the video playback address sent by the terminal, where the second acquisition request carries information to be verified corresponding to the verification information and the location information
  • a third sending module configured to send a third acquisition request for a video playback address to the video server when it is determined that the information to be verified is verified based on the verification information
  • a sixth receiving module configured to receive The acquisition response sent by the video server, and the acquisition response is sent to the
  • the device further includes: a sixth acquisition module, configured to acquire road network data corresponding to the electronic map; and a seventh acquisition module, configured to acquire all the road network data when it is determined that a preset event occurs based on the road network data.
  • the location information and time information corresponding to the preset event; the fourth sending module is configured to send the location information and time information to the video server, so that the video server obtains all the information based on the location information and time information.
  • video data corresponding to the preset event is configured to send the location information and time information to the video server, so that the video server obtains all the information based on the location information and time information.
  • Embodiments of the present application provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the video playback method in the above-mentioned map in the embodiment of the present application.
  • the embodiments of the present application provide a computer-readable storage medium storing executable instructions, wherein the executable instructions are stored, and when the executable instructions are executed by a processor, the processor will cause the processor to execute the method provided by the embodiments of the present application, for example , as shown in Figure 4, Figure 5 and Figure 6.
  • the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; it may also include one or any combination of the foregoing memories Various equipment.
  • executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages, and which Deployment may be in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
  • executable instructions may, but do not necessarily correspond to files in a file system, may be stored as part of a file that holds other programs or data, for example, a Hyper Text Markup Language (HTML, Hyper Text Markup Language) document
  • HTML Hyper Text Markup Language
  • One or more scripts in stored in a single file dedicated to the program in question, or in multiple cooperating files (eg, files that store one or more modules, subroutines, or code sections).
  • executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or alternatively, distributed across multiple sites and interconnected by a communication network execute on.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Remote Sensing (AREA)
  • Computational Linguistics (AREA)
  • Computer Graphics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Instructional Devices (AREA)

Abstract

本申请提供了一种地图中的视频播放方法、装置、设备、计算机可读存储介质及计算机程序产品;所述方法可应用的领域包括但不限于地图、导航、自动驾驶、智能交通等领域,所述方法包括:响应于针对地图显示界面中目标控件的互动操作,发送第一获取请求,所述第一获取请求用于获取目标视频数据,所述目标视频数据与所述目标控件相对应;接收针对所述第一获取请求的响应信息,并基于所述响应信息获取所述目标视频数据;在所述地图显示界面显示视频播放窗口,所述视频播放窗口用于播放所述目标视频数据。

Description

地图中的视频播放方法、装置、设备、计算机可读存储介质及计算机程序产品
相关申请的交叉引用
本申请基于申请号为202110390275.0、申请日为2021年04月12日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本申请涉及互联网技术,尤其涉及一种地图中的视频播放方法、装置、设备、计算机可读存储介质及计算机程序产品。
背景技术
目前,电子地图在人们出行中扮演着重要的角色。电子地图也广泛应用于各种场合,例如,在利用电子地图进行路径规划,或者借助电子地图进行导航时,当所经道路有事件(包括但不限于拥堵、施工、交通事故等事件)发生时,电子地图会进行相应的提示,但现有的提示信息形式单一,且不够直观。电子地图针对道路呈现信息存在单一性的技术现状影响了基于电子地图的信息及时获取与道路有关的有参考价值的信息。
发明内容
本申请实施例提供一种地图中的视频播放方法、装置、设备、计算机可读存储介质及计算机程序产品,能够使电子地图以多样化的信息展示形式及时准确提供道路的相关信息,为出行提供有价值参考。
本申请实施例的技术方案是这样实现的:
本申请实施例提供一种地图中的视频播放方法,包括:
响应于针对地图显示界面中目标控件的互动操作,发送第一获取请求,所述第一获取请求用于获取目标视频数据,所述目标视频数据与所述目标控件相对应;
接收针对所述第一获取请求的响应信息,并基于所述响应信息获取所述目标视频数据;
在所述地图显示界面显示视频播放窗口,所述视频播放窗口用于播放所述目标视频数据。
本申请实施例提供一种地图中的视频播放方法,包括:
接收第一获取请求,所述第一获取请求用于获取目标视频数据,所述第一获取请求中携带有位置信息;
响应于所述第一获取请求,生成验证信息;
将携带有所述验证信息的响应信息发送至终端,以使得所述终端基于所述验证信息获取目标视频数据。
本申请实施例提供一种地图中的视频播放装置,包括:
第一发送模块,配置为响应于针对地图显示界面中目标控件的互动操作,发送第一 获取请求,所述第一获取请求用于获取目标视频数据,所述目标视频数据与所述目标控件相对应;
第一获取模块,配置为接收针对所述第一获取请求的响应信息,并基于所述响应信息获取所述目标视频数据;
第一显示模块,配置为在所述地图显示界面显示视频播放窗口,所述视频播放窗口用于播放所述目标视频数据。
在一些实施例中,所述第一获取模块,还配置为:
基于所述响应信息获取目标视频播放地址;
根据所述目标视频播放地址,获取所述目标视频数据。
在一些实施例中,所述第一获取模块,还配置为:
获取所述目标视频播放地址的有效时间信息;
基于所述有效时间信息和当前时间,确定所述目标视频播放地址处于有效状态;
从所述目标视频播放地址获取所述目标视频数据。
在一些实施例中,所述有效时间信息包括生效时间和失效时间,所述第一获取模块,还配置为:
如果所述当前时间位于所述生效时间和所述失效时间之间,确定所述目标视频播放地址处于有效状态。
在一些实施例中,所述第一获取模块,还配置为:
获取所述响应信息中携带的目标存储地址;
根据所述目标存储地址,从终端的本地存储空间中获取所述目标视频数据。
在一些实施例中,所述装置还包括:
第一加载模块,配置为在所述地图显示界面的预设区域按照第一预设透明度加载第一浮层,并在所述第一浮层上呈现所述视频播放窗口;
视频播放模块,配置为按照如下方式之一,在所述视频播放窗口中播放所述目标视频数据:
显示所述视频播放窗口后,自动在所述视频播放窗口中播放所述目标视频数据;
响应于视频播放指令,在所述视频播放窗口中播放所述目标视频数据;
根据终端的网络连接状态,控制所述目标视频在所述视频播放窗口中的播放,其中,所述地图显示界面运行于所述终端。
在一些实施例中,所述视频播放模块,还配置为:
当所述终端处于无线局域网连接状态时,自动在所述视频播放窗口播放所述目标视频数据;或者,
当所述终端处于蜂窝连接状态或者所述终端切换至蜂窝连接状态,并且满足视频自动播放条件时,自动在所述视频播放窗口播放所述目标视频数据;或者,
当所述终端处于蜂窝连接状态或者所述终端切换至蜂窝连接状态,并且不满足视频自动播放条件时,在所述视频播放窗口显示第一提示信息,响应于针对所述第一提示信息的确认操作,在所述视频播放窗口播放所述目标视频数据,或者,响应于在规定时间内未接收到所述确认操作,关闭所述视频播放窗口。
在一些实施例中,所述视频播放模块,还配置为:
在所述视频播放窗口按照第二预设透明度加载第二浮层;
在所述第二浮层中显示所述第一提示消息,所述第一提示消息用于提示选择确认播放视频数据或者选择预设时长内不再提醒播放视频数据,所述第二浮层中呈现有确定播放的确认控件以及预设时长内不再提醒的选择控件。
在一些实施例中,所述装置还包括:
第二获取模块,配置为获取所述目标控件对应的目标图像;
第二显示模块,配置为在所述地图显示界面显示图像显示窗口,在所述图像显示窗口显示所述目标图像。
在一些实施例中,所述装置还包括:
第三获取模块,配置为获取所述目标视频数据的类型,所述类型为直播数据和录播数据中的一种;
第三显示模块,配置为根据所述目标视频数据的类型,显示所述目标视频数据的播放控制控件。
在一些实施例中,所述第三显示模块,还配置为:
当所述类型为直播数据时,显示所述目标视频数据的切换按键,所述切换按键用于将所述目标视频数据从播放状态切换至暂停状态,或从暂停状态切换至播放状态;
当所述类型为录播数据时,至少显示所述目标视频数据的进度条控件,所述进度条控件用于控制所述目标视频数据的播放进度。
在一些实施例中,所述装置还包括:
第二接收模块,配置为接收显示交通实况的第一操作;
第四显示模块,配置为响应于所述第一操作,显示交通实况地图,所述交通实况地图中包括能够响应互动操作的至少一个控件,所述至少一个控件与所述交通实况地图中的位置点的视频数据相对应,所述至少一个控件包括所述目标控件。
在一些实施例中,所述装置还包括:
第三接收模块,配置为接收进行路径规划的第二操作,并基于所述第二操作获取出发地信息和目的地信息;
第一确定模块,配置为利用所述出发地信息和目的地信息确定出行路线;
第四获取模块,配置为当终端处于无线局域网连接状态时,获取所述出行路线中包括的至少一个位置点对应的视频数据;
存储模块,配置为存储所述视频数据。
在一些实施例中,所述装置还包括:
第五显示模块,配置为在视频播放窗口显示所述目标视频数据对应的确认信息和确认控件,所述确认控件包括确定存在所述目标视频数据对应事件的第一控件和确定不存在所述目标视频数据对应事件的第二控件,所述确认信息包括第一控件对应的第一确认数据和所述第二控件对应的第二确认数据;
第五获取模块,配置为获取终端自身的位置信息;
第六显示模块,配置为当确定所述位置信息和所述目标视频数据对应的位置点满足就近条件时,呈现确认是否发生所述目标视频数据对应事件的第二提示信息;
第一更新模块,配置为如果接收到针对所述第一控件的第三操作,基于所述第三操作更新所述第一确认数据;
第二更新模块,配置为如果接收到针对所述第二控件的第四操作,基于所述第四操作更新所述第二确认数据。
本申请实施例提供一种地图中的视频播放装置,所述装置包括:
第一接收模块,配置为接收第一获取请求,所述第一获取请求用于获取目标视频数据,所述第一获取请求中携带有位置信息;
生成模块,配置为响应于所述第一获取请求,生成验证信息;
第二发送模块,配置为将携带有所述验证信息的响应信息发送至终端,以使得所述终端基于所述验证信息获取目标视频数据。
在一些实施例中,所述装置还包括:
第五接收模块,配置为接收终端发送的视频播放地址的第二获取请求,所述第二获取请求中携带有所述验证信息对应的待验证信息和所述位置信息;
第三发送模块,配置为当基于所述验证信息确定所述待验证信息验证通过时,向视频服务器发送视频播放地址的第三获取请求;
第六接收模块,配置为接收视频服务器发送的获取响应,并将所述获取响应发送至所述终端,所述获取响应中携带有视频播放地址。
在一些实施例中,所述装置还包括:
第六获取模块,配置为获取电子地图对应的路网数据;
第七获取模块,配置为基于所述路网数据确定发生预设事件时,获取所述预设事件对应的位置信息和时间信息;
第四发送模块,配置为将所述位置信息和时间信息发送至所述视频服务器,以使得所述视频服务器基于所述位置信息和时间信息获取所述预设事件对应的视频数据。
本申请实施例提供一种地图中的视频播放设备,包括:
存储器,用于存储可执行指令;
处理器,用于执行所述存储器中存储的可执行指令时,实现本申请实施例提供的方法。
本申请实施例提供一种计算机可读存储介质,存储有可执行指令,用于引起处理器执行时,实现本申请实施例提供的方法。
本申请实施例提供一种计算机程序产品或计算机程序,所述计算机程序产品或计算机程序包括计算机指令,所述计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取所述计算机指令,处理器执行所述计算机指令,使得所述计算机设备执行本申请实施例上述的地图中的视频播放方法。
本申请实施例具有以下有益效果:
地图显示界面中可以显示有表征发生拥堵、事故、施工等预设事件的事件互动控件,其中,事件互动控件可以是触发视频观看的控件,当接收到针对其中一个事件互动控件(目标控件)的互动操作时,响应于该互动操作,发送用于获取目标视频数据的第一获取请求,在接收到针对所述第一获取请求的响应信息时,基于所述响应信息获取所述目标视频数据,并在地图显示界面显示视频播放窗口,以在视频播放窗口播放目标视频数据。如此,使电子地图以多样化的信息展示形式及时准确提供道路的相关信息,为出行提供有价值参考,进而能够通过电子地图查看发生拥堵、事故、施工等交通事件对应的视频,从而提高信息互动丰富性。
附图说明
图1为相关技术中显示事件信息的界面示意图;
图2为本申请实施例提供的电子地图的信息系统的网络架构示意图;
图3A为本申请实施例提供的终端的结构示意图;
图3B为本申请实施例提供的地图服务器的结构示意图;
图4为本申请实施例提供的地图中的视频播放方法的一种实现流程示意图;
图5为本申请实施例提供的在视频播放窗口播放视频数据的实现流程示意图;
图6为本申请实施例提供的地图中的视频播放方法的再一种实现流程示意图;
图7为本申请实施例提供的网管接入服务和视频供应方的网络架构示意图;
图8为本申请实施例提供的地图中的视频播放方法的实现时序图;
图9为本申请实施例提供进入交通直播实况地图的导航页示意图;
图10为本申请实施例提供的交通直播实况地图的显示界面示意图;
图11为本申请实施例提供的移动网络下播放视频的界面示意图;
图12为本申请实施例提供的播放录播视频的界面示意图。
具体实施方式
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,所描述的实施例不应视为对本申请的限制,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。
在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。
在以下的描述中,所涉及的术语“第一\第二\第三”仅仅是是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本申请实施例能够以除了在这里图示或描述的以外的顺序实施。
需要说明的是,在本申请实施例中,涉及到各种数据信息,例如,终端位置信息、路况数据、视频数据等,当本申请实施例运用到实际产品或技术中时,需要获得许可或者同意,且相关数据的收集、使用和处理均遵守相关国家和地区的相关法律法规和标准。
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。
对本申请实施例进行进一步详细说明之前,对本申请实施例中涉及的名词和术语进行说明,本申请实施例中涉及的名词和术语适用于如下的解释。
1)电子地图(Electronic map),即数字地图,是利用计算机技术,以数字方式存储和查阅的地图。
2)网络直播,通过信号采集设备(音频或视频)采集信息,再通过网络发布,供用户观看。
3)客户端,呈现地图、直播内容的各种形式的软件,例如地图浏览器、地图app、地图小程序、导航软件、视频客户端、专用的直播客户端和社交网络客户端等,可以具有适应各种平台(例如电脑端、车载端、移动终端等各种终端)的版本。
目前,在一些电子地图中支持显示诸如拥堵、施工、交通管制等事件的图标(ICON),当点击这些事件的图标001时,可以显示如图1所示的页卡002,在该页卡中可以进行该事件相关的文章或者图片。显示的图片一般是预先设置的特定配置图片,无法获取实时当前位置图片或者视频,且相关方案的网络架构也无法接入实时路况数据服务以及在客户端的展示。
基于此,在本申请实施例中,在电子地图的首页和导航中点事件在数据侧提供数据支持时,支持视频播放区域,以通过该视频播放区域播放直播数据或者录制的视频数据,从而提高电子地图的信息丰富度。
下面说明本申请实施例提供的地图中的视频播放设备的示例性应用,本申请实施例提供的设备可以实施为笔记本电脑、平板电脑、台式计算机、机顶盒、车载设备、移动设备(例如,移动电话,便携式音乐播放器,个人数字助理,专用消息设备,便携式游戏设备)等各种类型的终端,也可以实施为服务器。下面,将说明设备实施为终端时示 例性应用。
参见图2,图2是本申请实施例提供的地图中的视频播放系统100的网络架构示意图,如图2所示,该网络架构包括:视频服务器200、地图服务器300和终端400,其中,终端400和地图服务器300以及地图服务器300和视频服务器200之间通过网络(图2中未示出)建立有通信连接,该网络可以是广域网或者局域网,又或者是二者的组合。
终端400中可以安装有地图客户端,可以利用该地图客户端进行出行导航,路径规划等。在本申请实施例中,当在地图客户端选择呈现交通实况直播地图时,可以在电子地图的显示界面中相应地点显示发生预设事件的事件互动控件,当终端接收到针对某一事件互动控件的触控或点击操作,从而触发对该预设事件对应视频的观看请求时,通过地图服务器300向视频服务器200获取目标视频播放地址,进而基于该目标视频播放地址获取对应的视频数据,在终端400的显示件中呈现视频播放窗口,从而在该视频播放窗口播放该视频数据。
地图服务器300中可以包括有地图后台和路况服务,用以通过路况服务获取路网数据,在一些实施例中,可以是在网络架构中包括独立于地图服务器300的路况服务器。路况服务器、地图服务器300和视频服务器200可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器。终端400可以是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表、智能语音交互设备、智能家电、车载终端等,但并不局限于此。终端以及服务器可以通过有线或无线通信方式进行直接或间接地连接,本申请实施例中不做限制。
需要说明的是,在图2中,地图服务器300和视频服务器200是互相独立的实体,在实际实现过程中,地图服务器300和视频服务器200可以是集成于一个服务器中,此时该服务器可以完成地图服务器和视频服务器的功能。
参见图3A,图3A是本申请实施例提供的终端400的结构示意图,图3A所示的终端400包括:至少一个处理器410、存储器450、至少一个网络接口420和用户接口430。终端400中的各个组件通过总线系统440耦合在一起。可理解,总线系统440用于实现这些组件之间的连接通信。总线系统440除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图3A中将各种总线都标为总线系统440。
处理器410可以是一种集成电路芯片,具有信号的处理能力,例如通用处理器、数字信号处理器(DSP,Digital Signal Processor),或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等,其中,通用处理器可以是微处理器或者任何常规的处理器等。
用户接口430包括使得能够呈现媒体内容的一个或多个输出装置431,包括一个或多个扬声器和/或一个或多个视觉显示屏。用户接口430还包括一个或多个输入装置432,包括有助于用户输入的用户接口部件,比如键盘、鼠标、麦克风、触屏显示屏、摄像头、其他输入按钮和控件。
存储器450可以是可移除的,不可移除的或其组合。示例性的硬件设备包括固态存储器,硬盘驱动器,光盘驱动器等。存储器450可选地包括在物理位置上远离处理器410的一个或多个存储设备。
存储器450包括易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。非易失性存储器可以是只读存储器(ROM,Read Only Memory),易失性存储器可以是随机存取存储器(RAM,Random Access Memory)。本申请实施例描述的存储 器450旨在包括任意适合类型的存储器。
在一些实施例中,存储器450能够存储数据以支持各种操作,这些数据的示例包括程序、模块和数据结构或者其子集或超集,下面示例性说明。
操作系统451,包括用于处理各种基本系统服务和执行硬件相关任务的系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务;
网络通信模块452,用于经由一个或多个(有线或无线)网络接口420到达其他计算设备,示例性的网络接口420包括:蓝牙、无线相容性认证(WiFi)、和通用串行总线(USB,Universal Serial Bus)等;
输入处理模块453,用于对一个或多个来自一个或多个输入装置432之一的一个或多个用户输入或互动进行检测以及翻译所检测的输入或互动。
在一些实施例中,本申请实施例提供的装置可以采用软件方式实现,图3A示出了存储在存储器450中的地图中的视频播放装置454,其可以是程序和插件等形式的软件,包括以下软件模块:第一发送模块4541、第一获取模块4542和第一显示模块4543,这些模块是逻辑上的,因此根据所实现的功能可以进行任意的组合或进一步拆分。
其中,第一显示模块4543以及其他显示模块,用于经由一个或多个与用户接口430相关联的输出装置431(例如,显示屏、扬声器等)使得能够呈现信息(例如,用于操作外围设备和显示内容和信息的用户接口)。将在下文中说明各个模块的功能。
将结合本申请实施例提供的终端的示例性应用和实施,说明本申请实施例提供的地图中的视频播放方法。
本申请实施例提供一种地图中的视频播放方法,应用于图2所示的终端,图4是本申请实施例提供的地图中的视频播放方法的一种实现流程示意图,将结合图4对以下步骤进行说明。
步骤S101,响应于针对地图显示界面中目标控件的互动操作,发送第一获取请求。
其中,所述第一获取请求用于获取目标视频数据,所述目标视频数据与所述目标控件相对应。
在步骤S101中,地图显示界面显示的地图可以是启动地图客户端,或者通过浏览器打开地图网页时显示的默认地图显示界面,在默认地图显示界面可以显示有预设事件的事件控件(例如,可以是如图1中001所示的施工事件控件),该预设事件可以是施工、交通事故、交通管制等,该预设事件还可以是关键路段中的实时路况,本申请实施例对事件的类型并不做限定。
点击该事件控件可以呈现事件信息界面,在该事件信息界面中呈现有该预设事件的基本信息,例如可以包括位置信息、发生事件等,在该事件信息界面还可以呈现有事件互动控件,该事件互动控件可以为视频播放控件。
在一些实施例中,地图显示界面中显示的也可以是响应于针对交通实况的第一操作所呈现的交通实况地图,在所述交通实况地图中包括预设事件对应的事件互动控件,该事件互动控件可以为视频播放控件(例如可以是如图10所示的1001)。
在本申请实施例中,目标控件为地图显示界面中显示的一个或多个事件互动控件中的一个,针对地图显示界面中目标控件的互动操作,可以是针对目标控件的点击或者触控操作。响应于该互动操作而发送出的第一获取请求,可以是发送至地图服务器的,此时第一获取请求中可以携带有该目标控件对应的位置信息。当地图服务器包括有地图后台服务和路况服务时,路况服务可以作为地图服务器的一个服务进程,此时该第一获取请求是发送至地图服务器的,对应的,响应信息也就是由地图服务器构建,再发送至终端的;当地图服务器仅包括地图后台服务,而不包括路况服务时,该第一获取请求是经由地图后台发送至路况服务器的,对应的,响应信息是由路况服务器构建,再经由地图 后台服务发送至终端的。
在一些实施例中,当终端本地存储有目标控件对应的目标视频数据时,第一获取请求可以是发送至终端自身的存储设备的,以请求从终端的本地存储空间中获取目标视频数据。
步骤S102,接收针对所述第一获取请求的响应信息,并基于所述响应信息获取所述目标视频数据。
当第一获取请求是发送至地图服务器时,终端将第一获取请求发送至地图服务器后,地图服务器基于该第一获取请求生成一个一次性令牌(也可以称为一次性口令),并将该一次性令牌作为验证信息,携带于响应信息中,返回至终端,终端接收该响应信息,并对该响应信息进行解析,得到验证信息,并进而基于该验证信息获取目标视频数据。在实现时,可以是终端向视频服务器发送视频播放地址的第二获取请求,该第二获取请求可以是经由地图服务器发送至视频服务器的,并在之后经由地图服务器获取视频服务器返回的视频播放地址,进而根据目标视频播放地址获取目标视频数据。
当第一获取请求是发送至终端的存储设备时,该响应信息中携带有目标存储地址,此时可以基于目标存储地址获取目标视频数据。
步骤S103,在所述地图显示界面显示视频播放窗口。
其中,该视频播放窗口用于播放所述目标视频数据。该目标视频数据的封面默认为第一帧图像,在实际实现时,也可以为目标视频数据设置封面。
当获取到目标视频数据后,可以在地图显示界面上按照一定的透明度加载一个浮层,并在该浮层上呈现视频播放窗口,例如可以是以20%的透明度加载浮层,并在该浮层上呈现视频播放窗口。该视频播放窗口的窗口大小可以是小于地图显示界面的界面大小的,也可以是等于地图显示界面的界面大小的。
在本申请实施例提供的地图中的视频播放方法中,地图显示界面中可以显示有预设事件的事件互动控件时,可以接收针对其中一个事件互动控件(目标控件)的互动操作,该目标控件可以为触发视频观看的控件,此时响应于所述互动操作,发送第一获取请求,所述第一获取请求用于获取目标视频数据,所述目标视频数据与所述目标控件相对应;然后接收针对所述第一获取请求的响应信息,并基于所述响应信息获取所述目标视频数据;并在所述地图显示界面显示视频播放窗口,所述视频播放窗口用于播放所述目标视频数据。如此,用户可以查看电子地图中发生拥堵、事故、施工等交通事件或路况信息对应的视频,不仅能够提高电子地图的信息提供量还能够提高信息互动丰富性。
在一些实施例中,图4所示的步骤S102中的“基于响应信息获取目标视频数据”基于第一获取请求是发送至地图服务器,还是发送至终端自身的存储设置而有不同的实现方式,其中,当第一获取请求是发送至地图服务器时,那么所述响应信息中携带有验证信息,该验证信息可以是一次性令牌,对应地,步骤S102可以通过以下步骤实现:
步骤S1021A,基于所述响应信息获取目标视频播放地址。
在一些实施例中,该步骤可以进一步通过以下步骤实现:
步骤S21A1,向视频服务器发送视频播放地址的第二获取请求。
其中,该第二获取请求中携带有所述验证信息对应的待验证信息和事件互动控件对应的位置信息。在一些实施例中,步骤S21A1在实现时,是终端向地图服务器发送视频播放地址的第二获取请求,进而由地图服务器基于该验证信息对终端进行验证,当验证通过后将第三获取请求发送至视频服务器。第三获取请求中仅携带有位置信息,而无需再携带验证信息。
在一些实施例中,该第三获取请求中还携带有事件互动控件对应的时间信息,视频服务器在接收到该第三获取请求后,基于该发生地信息和时间信息获取相应的视频数据 的视频播放地址,并将该目标视频播放地址携带于获取响应中,返回终端。
步骤S1022,接收所述视频服务器返回的获取响应,获取所述获取响应中携带的视频播放地址。
当第二获取请求是经由地图服务器发送至视频服务器时,那么是由地图服务器基于该验证信息对该待验证信息进行验证,得到验证结果,当验证通过接收该视频服务器返回的获取响应,在实现时,可以是接收视频服务器经由该地图服务器返回的获取响应,也就是说该获取响应首先由视频服务器发送至地图服务器,再由地图服务器发送至终端。
在一些实施例中,如果终端与视频服务器建立有直接的通信连接,此时可以是终端直接将第二获取请求发送至视频服务器的,那么由视频服务器从地图服务器获取验证信息,并基于验证信息对该待验证信息进行验证,得到验证结果。当验证通过时,视频服务器直接将获取响应返回给终端。
如此,通过步骤S21A1至步骤S21A2,也就实现了基于视频观看响应获取视频播放地址,以为后续的视频播放提供必要的播放链接,保证视频播放正常进行。
步骤S1022A,根据所述目标视频播放地址,获取所述目标视频数据。
在本申请实施例中,目标视频播放地址为临时的统一资源定位系统(URL,Uniform Resource Locator)地址,为了防止盗链,该视频播放地址具有有效时间,因此步骤S1022A在实现时,在获取到目标视频播放地址后,可以首先基于当前时刻和有效时间确定视频播放地址是否有效,当该视频播放地址有效时,获取对应的目标视频数据。该目标视频数据可以是直播视频数据,也可以是录播视频数据。
该步骤S1022A可以通过以下步骤实现:
步骤S22A1,获取所述目标视频播放地址的有效时间信息。
在本申请实施例中,为了防止视频数据被其他应用盗用,以及保证视频数据的时效性和真实性,会为视频播放地址设置有效时间信息,该有效时间信息可以包括生效时间和失效时间,例如生效时间可以是2021年4月6日17:00,失效时间可以是2021年4月7日12:00。
步骤S22A2,基于所述有效时间信息和当前时间确定所述目标视频播放地址处于有效,。
当前时间位于生效时间和失效时间之间,则认为该目标视频播放地址是处于有效状态的,此时执行步骤S22A3;在一些实施例中,如果当前时间不位于生效时间和失效时间之间,那么确定该目标视频播放地址处于无效状态,此时可以呈现视频已过期的提示信息。
步骤S22A3,从所述目标视频播放地址获取所述目标视频数据。
当第一获取请求是发送至终端自身的存储设备时,响应信息中携带有目标存储地址,步骤S102中的“基于所述响应信息获取目标视频数据”,可以通过以下步骤实现:
步骤S1021B,获取所述响应信息中携带的目标存储地址;
步骤S1022B,根据所述目标存储地址,从终端的本地存储空间中获取所述目标视频数据。
如此,即可从终端的本地存储空间中获取到目标视频数据,不仅能够提高视频播放效率,还能降低流量消耗。
在一些实施例中,在步骤S103之后,还可以执行以下步骤:
步骤S104,在所述地图显示界面的预设区域按照第一预设透明度加载第一浮层,并在所述第一浮层上呈现所述视频播放窗口。
地图显示界面的预设区域可以是地图显示界面的部分区域,例如可以是地图显示界面的上半部分区域、下半部分区域、中间部分区域等,还可以是地图显示界面的全部区 域。
该第一预设透明度可以是0%、10%、25%等预设值,当第一预设透明度为0%时,说明第一浮层时完全不透明的,也即第一浮层是完全遮盖住了地图显示界面中预设区域部分的地图画面。
步骤S105,按照如下方式之一,在所述视频播放窗口中播放所述目标视频数据:
第一种方式、显示所述视频播放窗口后,自动在所述视频播放窗口中播放所述目标视频数据。
当终端处于联网状态或者目标视频数据是从终端本地获取时,可以自动播放目标视频数据,而无需用户额外操作,能够简化视频播放流程,提高视频播放效率。
第二种方式、响应于视频播放指令,在所述视频播放窗口中播放所述目标视频数据。
在该方式中,需要接收到明确的视频播放指令后再进行目标视频数据的播放,能够保证视频播放是在用户允许的前提下执行的。
第三种方式、根据终端的网络连接状态,控制所述目标视频在所述视频播放窗口中的播放,其中,所述地图显示界面运行于所述终端。
在实际实现时,可以通过图5所示的各个步骤实现第三种方式,以下结合图5对实现第三种方式的各步骤进行说明。
步骤S1051,获取终端所处的网络连接状态。
终端的网络连接状态可以是连接成功,还可以是连接失败。
步骤S1052,判断所述网络连接状态是否为连接成功。
这里,如果终端在无网、网络中断、网络异常等情况下,网络连接状态为连接失败,此时进入步骤S1053;如果网络连接状态为连接成功,进入步骤S1054。
步骤S1053,输出网络连接状态异常的第三提示信息。
步骤S1054,判断终端是否处于无线局域网连接状态。
当网络连接状态为连接成功时,终端可能是处于无线局域网连接状态,也可能处于蜂窝网络连接状态,在无线局域网连接状态下不会使得终端因为额外的移动流量而产生相关费用,而在蜂窝网络连接状态下则会因为移动流量产生相关费用,因此在该步骤中需要判断用户处于何种网络连接状态,从而进行相应的处理过程。其中,当确定自身处于无线局域网连接状态时,进入步骤S1055;当确定自身处于蜂窝连接状态时,进入步骤S1056。
步骤S1055,自动在所述视频播放窗口播放所述目标视频数据。
在本申请实施例中,当终端处于无线局域网连接状态时,那么直接在视频播放窗口播放视频数据。
步骤S1056,确定是否满足视频自动播放条件。
确定是否满足视频自动播放条件可以是,确定“运营商网络自动播放”功能是否开启且在“7日不再提醒”范围内,其中,当“运营商网络自动播放”开启且在“7日不再提醒”范围内时,确定满足视频自动播放条件时,此时进入步骤S1057;当确定“运营商网络自动播放”未开启或者不在“7日不再提醒”范围内,确定不满足视频自动播放条件,此时进入步骤S1058。
步骤S1057,自动在所述视频播放窗口播放所述目标视频数据。
在一些实施例中,会在播放该目标视频数据时按照第三透明度加载第三浮层,并在第三浮层中输出“正在使用移动流程播放”的提示信息,该提示信息呈现一定时长后,取消加载第三浮层,并继续播放该目标视频数据。
步骤S1058,在所述视频播放窗口呈现播放视频的第一提示信息。
步骤S1058在实现时,可以是首先在所述视频播放窗口上按照第二预设透明度加载 第二浮层;然后在所述第二浮层中显示所述第一提示消息,该第一提示消息用于提示选择确认播放视频数据或者选择预设时长内不再提醒播放视频数据,所述第二浮层中呈现有确定播放的确认控件以及预设时长内不再提醒的选择控件。
步骤S1059,判断是否接收到针对第一提示信息的确认操作。
其中,该确认操作可以是点击或者触控确认控件,当接收到针对所述第一提示信息的确认操作时,进入步骤S10510;当在规定时间内没有接收到点击或触控确认控件的确认操作时,确定未接收到确认操作;在一些实施例中,还可以在第二浮层中呈现取消播放的取消控件,当接收到针对取消控件的点击或触控操作时,确定未接收到确认操作。在本申请实施例中,当未接收到所述确认操作时,进入步骤S10511。
步骤S10510,在所述视频播放窗口播放所述目标视频数据。
该步骤在实现时,与步骤S1057是类似的,在播放该目标视频数据时按照第三透明度加载第三浮层,并在第三浮层中输出“正在使用移动流程播放”的提示信息,该提示信息呈现一定时长后,取消加载第三浮层,并继续播放该目标视频数据。
步骤S10511,关闭所述视频播放窗口。
关闭该视频播放窗口,也即取消加载第一浮层,此时正常显示电子地图。
在一些实施例中,在关闭视频播放窗口之后,终端还可以获取所述目标控件对应的目标图像;并在所述地图显示界面显示图像显示窗口,在所述图像显示窗口显示所述目标图像,如此,不仅能够降低终端的移动流量消耗,还能够使得用户及时了解事件信息。
在步骤S1051至步骤S10511所在的实施例中,在视频播放窗口播放目标视频数据时,首先会按照一定的透明度加载第一浮层,以在第一浮层中呈现视频播放窗口,在呈现视频数据时,会基于终端的网络连接状态进行不同的实现方式,进一步地,当网络连接状态为连接失败时,则会输出网络连接状态异常的提示信息;当网络连接状态为连接成功时,会进一步确定网络连接类型,例如是无线局域网连接状态时,则直接播放目标视频数据;当是蜂窝网络连接状态时,会再去判断是否满足视频自动播放条件,当满足视频自动播放条件时,会直接播放目标视频数据;当不满足自动播放条件时,会提示用户是否继续播放视频,当接收到继续播放的确认操作时,通过视频播放窗口播放目标视频数据,如此,针对不同的网络连接类型,进行不同的处理过程,既能保证无线网络连接视频播放的流畅性,还能保证在蜂窝网络下进行视频播放是在用户知情且允许的情况下进行的,提高信息互动的透明性。
在一些实施例中,显示视频播放窗口,或者在所述视频播放窗口播放所述目标视频数据的同时或之后,还可以执行以下步骤:
步骤S201,获取所述目标视频数据的类型。
所述类型为直播数据和录播数据中的一种。当类型为直播类型时,说明目标视频数据是由处于预设事件发生地的视频采集设备实时采集到并上传至视频服务器的,当类型为录播类型时,说明目标视频数据是在当前时间之前一定时长内,由处于预设事件发生地的视频采集设备采集并上传至视频服务器的。
在一些实施例中,在播放所述目标视频数据的同时,可以在所述视频播放窗口呈现所述类型。例如,可以是在视频播放窗口中视频画面的边缘部分呈现该数据类型,例如可以是在视频画面的右上角、左上角、右下角等区域显示“直播”或者“录播”,以图10为例进行说明,在视频画面的左下角区域1002显示有“直播”,说明当前播放的目标视频数据的类型为直播类型。
步骤S202,根据所述目标视频数据的类型,显示所述目标视频数据的播放控制控件。
在实现时,当所述类型为直播数据时,该播放控制控件包括切换按键,显示所述目 标视频数据的播放控制控件在实现时,也即显示目标视频数据的切换按键,所述切换按键用于将所述目标视频数据从播放状态切换至暂停状态,或从暂停状态切换至播放状态;
当所述类型为录播数据时,所述播放控制控件包括进度条控件,显示所述目标视频数据的播放控制控件在实现时,也即显示目标视频数据的进度条控件,所述进度条控件用于控制所述目标视频数据的播放进度。在实际实现时,当类型为录播数据时,播放控制控件除了进度条控件,也包括切换按键。
在一些实施例中,当所述类型为录播数据时,可以通过以下步骤对播放进度进行调整:
步骤S301,接收针对所述进度条控件的移动操作,确定所述移动操作对应的目标播放进度。
该移动操作可以是拖动进度条控件的操作,确定该移动操作对应的目标播放进度在实现时,可以是获取移动操作的移动距离,并基于移动距离和视频总时长,确定移动时长,进而根据当前播放进度和移动时长,确定目标播放进度。
步骤S302,在所述视频播放窗口中呈现所述目标播放进度对应的视频数据。
目标播放进度可以是目标播放时间点,呈现目标播放进度对应的视频数据在实现时,可以是从目标播放时间点继续播放视频数据。
在一些实施例中,当用户是打开地图进行路径规划时,可以通过以下步骤下载或缓存视频:
步骤S401,接收进行路径规划的第二操作,并基于所述第二操作获取出发地信息和目的地信息。
步骤S402,利用所述出发地信息和目的地信息确定出行路线。
步骤S403,当终端处于无线局域网连接状态时,获取所述出行路线中包括的至少一个位置点对应的视频数据。
步骤S403,存储所述视频数据。
在步骤S401至步骤S403所在的实施例中,当终端处于无线局域网连接状态时,可以将出行路线中包括的至少一个位置点对应的视频数据提前下载至移动终端本地,并进行存储至终端本地存储空间,如此可以使得用户在需要在地图中进行视频播放时,直接从终端的本地存储空间获取视频数据,提高视频播放效率并减少流量消耗。
基于前述的实施例,本申请实施例再提供一种地图中的视频播放方法,应用于图2所示的网络架构,图6为本申请实施例提供的地图中的视频播放方法的再一种实现流程示意图,如图6所示,该流程包括:
步骤S601,地图服务器获取电子地图对应的路网数据。
步骤S601在实现时,可以是从路网服务获取电子地图对应的路网数据,该路网服务可以是地图服务器自身的服务进程,还可以是独立于地图服务器的其他服务器。路网数据可以是实时路网数据,也可以是距离当前时刻一定时长内的历史路网数据。
步骤S602,地图服务器基于所述路网数据确定发生预设事件时,获取所述预设事件对应的位置信息和时间信息。
在实现时,地图服务器基于路网数据确定是否发生拥堵、交通事故、交通管制等预设事件,并在确定发生预设事件时,获取该预设事件对应的位置信息和时间信息。位置信息可以是经纬度信息,时间信息可以为确定发生预设事件的时刻。
步骤S603,地图服务器将所述位置信息和时间信息发送至视频服务器。
地图服务器将位置信息和时间信息发送至视频服务器,以使得所述视频服务器基于该位置信息和时间信息获取对应的视频数据。
步骤S604,视频服务器基于所述位置信息和时间信息获取所述预设事件对应的视 频数据。
如果时间信息与当前时刻之间的时间间隔小于间隔阈值,步骤S604在实现时,可以是视频服务器基于位置信息,获取该位置信息对应的图像采集设备的设备信息,并基于设备信息,获取对应图像采集设备实时采集到的视频数据;如果时间信息与当前时刻之间的时间间隔大于或者等于间隔阈值,可以获取图像采集设备采集到的该时间信息对应的视频数据。
步骤S605,视频服务器确定所述视频数据对应的视频播放地址,并建立所述视频播放地址与所述位置信息、时间信息的对应关系。
步骤S606,终端响应于启动电子地图客户端的操作指令,启动电子地图客户端。
在一些实施例中,还可以是终端响应于打开电子地图网页的操作指令,基于网页地址获取电子地图数据。
步骤S607,终端在地图显示界面呈现电子地图。
在该步骤中,呈现的电子地图可以是默认主题的电子地图,例如每次打开都呈现的是2D平面地图,还可以是上一次关闭电子地图客户端时所使用的地图,例如上次关闭电子地图客户端时使用的为交通直播实况地图,那么再次打开呈现的还是交通直播实况地图。
在一些实施例中,当在地图显示界面显示的地图不为交通实况地图时,可以通过以下步骤显示交通实况地图:
步骤S501,接收显示交通实况的第一操作,该第一操作可以是当点击图9所示的“交通路况直播地图”按钮控件901。
步骤S502,响应于所述第一操作,显示交通实况地图,所述交通实况地图中包括能够响应互动操作的至少一个控件,所述至少一个控件与所述交通实况地图中的位置点的视频数据相对应,所述至少一个控件包括所述目标控件。
步骤S608,终端接收针对地图显示界面中目标控件的互动操作。
步骤S609,终端响应于所述互动操作,向地图服务器发送第一获取请求。
该第一获取请求中可以携带有事件互动控件对应的位置信息,还可以携带有事件标识。
步骤S610,地图服务器响应于所述第一获取请求,生成验证信息。
该验证信息可以是一次性口令,或者成为一次性令牌、动态口令。动态口令是使用密码技术实现的在客户端和服务器之间通过共享秘密的一种认证技术,是一种强认证技术,是增强目前静态口令认证的一种非常方便技术手段,是一种重要的双因素认证技术。
步骤S611,地图服务器将携带有所述验证信息的响应信息发送至所述终端,以使得所述终端基于所述验证信息获取目标播放数据。
步骤S612,终端向地图服务器发送视频播放地址的第二获取请求。
该第二获取请求中携带有待验证信息,还可以携带有目标控件对应的位置信息和事件标识。
步骤S613,地图服务器对该待验证信息进行验证,得到验证结果。
在实现时,可以是利用发送给终端的验证信息对终端发送的待验证信息进行验证,当两者一致时,得到验证通过的验证结果,当两者不一致时,得到验证失败的验证结果。当验证失败时,则不会执行以下步骤,地图服务器会向终端返回视频播放地址获取失败的通知消息。
步骤S614,当验证通过时,地图服务器向视频服务器发送视频播放地址的第三获取请求。
地图服务器向视频服务器发送的第三获取请求中,可以是携带有事件互动控件对应 的位置信息和事件标识。
步骤S615,视频服务器获取目标视频播放地址。
在实现时,视频服务器基于获取请求中携带的事件标识和位置信息,获取对应的目标视频播放地址。
步骤S616,视频服务器将目标视频播放地址发送至地图服务器。
步骤S617,地图服务器将目标视频播放地址发送至终端。
步骤S618,终端基于该目标视频播放地址获取目标视频数据。
步骤S619,终端在显示界面呈现视频播放窗口,并在所述视频播放窗口播放所述目标视频数据。
步骤S620,终端在视频播放窗口显示所述目标视频数据对应的确认信息和确认控件。
其中,确认控件包括确定存在所述目标视频数据对应事件的第一控件和确定不存在所述目标视频数据对应事件的第二控件,所述确认信息包括第一控件对应的第一确认数据和所述第二控件对应的第二确认数据。
第一确认数据可以是点击第一控件的人数,也即第一确认数据能够反映确认发生了目标视频数据中对应事件的人数,例如,第一确认数据为20,说明有20个用户途经该目标视频数据对应的位置点,并确认视频真实;第二确认数据可以是点击第二控件的人数,能够反映确认没有发生目标视频数据中对应事件的人数。
通过显示确认控件和确认信息能够使得用户直观的了解到视频的真实程度。
步骤S621,终端获取自身的位置信息。
在实现时,当终端开启了自动获取位置功能,或者开启了GPS功能时,即可获取自身的位置信息,该位置信息也可以是经纬度信息。
步骤S622,当终端确定所述位置信息和所述目标视频数据对应的位置点满足就近条件时,呈现确认是否发生所述目标视频数据对应事件的第二提示信息。
在步骤S622之前,可以判断终端的位置信息和视频数据对应的位置点是否满足就近条件,由于位置信息可以用经纬度信息表示,因此在实现时,可以基于两个位置点的经纬度信息确定出终端与目标视频数据对应的位置点之间的距离,当距离小于预设的距离阈值时,例如小于50米时,确定满足就近条件,此时呈现确认是否发生视频数据对应事件的第二提示信息。
步骤S623,终端如果接收到针对所述第一控件的第三操作,基于第三操作更新第一确认数据。
第三操作可以为触控或者点击第一控件对应显示区域的操作,当接收到第三操作时,则将确定发生该事件的第一确认数据加1。
步骤S624,终端如果接收到针对所述第二控件的第四操作,基于第四操作更新第第二确认数据。
第四操作可以是触控或者点击第二控件对应显示区域的操作,当接收到第四操作时,则将确定未发生该事件的第二确认数据加1。
由于在视频播放窗口会显示有目标视频数据的确认信息和确认控件,为了防止用户随意点击确认控件,可以是当确定终端的位置信息和所述目标视频数据对应的位置点满足就近条件时,才使能确认控件,当不满足就近条件时,不使能确认控件。
在本申请实施例提供的地图中的视频播放方法中,地图服务器在基于获取到的路网数据确定发生预设事件后,请求视频服务器确定预设事件对应的视频数据,并创建视频数据和位置信息、时间信息的对应关系,之后当终端启动电子地图客户端或者打开电子地图网页,并触发了针对事件互动控件的互动操作时,终端向地图服务器发送第一获取 请求,地图服务器在向终端返回验证信息,并在终端基于该验证信息发送视频播放地址的第二获取请求时,经由地图服务器发送至视频服务器,终端在获取到视频播放地址后,加载视频播放窗口,并在该视频播放窗口播放视频画面,如此能够使得用户能够及时获知预设事件的进展情况,增加互动丰富性,并且确定终端接近预设事件的发生地时,可以使能确认是否发生预设事件的第一控件和第二控件,并基于针对控件的操作,更新该预设事件的确认信息,从而保证预设事件的真实性。
下面,将说明本申请实施例在一个实际的应用场景中的示例性应用。
在本申请实施例提供的地图中的视频播放方法中,通过智慧交通基础服务接入的通用道路电子眼数据以及相同功能的视频直播设备数据,在地图客户端的首页点事件路况中,针对拥堵、事故、封路等点事件,支持观看当前的实时直播视频或者录制的视频。
在本申请实施例中,因为视频供应方会有多个,所以需要一个视频代理服务提供中转服务。如图7所示,网管接入服务701通过视频代理服务702接入多个视频供应方703,视频供应方703为保证视频独家有效性,通过接口提供有时效性的临时播放地址。
在本申请实施例中,通过视频代理服务702可以高效的接入不同视频供应方,而地图客户端无感知即可使用后续数据源的直播数据,视频代理服务请求的接口字段可以:
Figure PCTCN2022080851-appb-000001
图8为本申请实施例提供的地图中的视频播放方法的实现时序图,如图8所示,该时序过程包括:
步骤S801,地图客户端基于触发的点事件请求地图后台。
步骤S802,地图后台请求路况服务。
步骤S803,路况服务构造响应消息。
该步骤在实现时,路况服务将一次性令牌作为点事件请求的响应消息。
步骤S804,路况服务将携带有一次性令牌的响应消息返回给地图后台。
步骤S805,地图后台将该响应消息返回给地图客户端。
步骤S806,地图客户端基于一次性令牌向地图后台请求视频播放地址。
步骤S807,地图后台向视频代理服务发送获取视频播放地址的请求消息。
步骤S808,视频代理服务构造响应消息。
在实际实现时,视频代理服务将一次性临时地址作为该获取视频播放地址的请求消息对应的响应消息。
步骤S809,视频代理服务将携带有该一次性临时地址的响应消息返回至地图后台。
步骤S810,地图后台将该响应消息返回给地图客户端。
步骤S811,地图客户端解析该响应消息得到一次性临时地址。
其中,为防止数据盗链,该一次性临时地址有失效时间。
步骤S812,地图客户端通过该一次性临时地址下载视频数据。
在实际应用过程中,可以基于该一次性临时地址的失效时间和当前时间确定该一次性临时地址未失效时,通过该一次性临时地址下载视频数据,还可以在视频播放页播放下载到的视频数据。
在本申请实施例中,当点击图9所示的“交通路况直播地图”按钮控件901时,会显示交通路况直播地图,在该交通路况直播地图中,如果某个地点为点事件发生地,此时会显示如图10所示的点事件视频标识1001,当点击某一个点事件视频标识时,会呈现地图客户端中新增的视频播放区域,以图10为例进行说明。当点击北三环中路对应的点事件视频标识1001时,会在显示界面呈现视频播放区域,以支持视频或直播媒体的播放。
在地图客户端接收到视频播放地址后,可以根据地图客户端所处的网络类型,调整视频的播放状态。其中,当处于WiFi连接时,则自动播放视频,无需提示信息;当处于或者当切换至移动网络时,会确定是否满足自动播放条件,其中可以是确定“运营商网络自动播放”功能是否开启且在“7日不再提醒”范围内,其中,当“运营商网络自动播放”开启且在“7日不再提醒”范围内时,可以加载浮层,并在该浮层中输出提示信息:“正在使用非WIFI网络,播放将产生流量费用”,视频数据正常播放,该提示信息显示3秒后消失;当“运营商网络自动播放”关闭或者不在“7日不再提醒”范围内时,可以如图11所示加载浮层1101,并在该浮层中输出提示信息:“正在使用非WIFI网络,播放将产生流量费用”此时在该浮层中还呈现有提醒设置按钮和继续播放按钮,例如可以是“7日内不再提醒”选择控件,默认该选择控件是未勾选状态,勾选后,如果用户点击“继续播放”按钮控件,则输出“正在使用非WIFI网络,播放将产生流量费用”的提示信息,视频数据正常播放,该提示信息3秒后消失,从勾选“7日内不再提醒”后的7天内,不再呈现提示浮层。
当地图客户端的网络状态为连接异常、网络中断、无网情况等情况时,弹出消息提示框(toast)提示“当前网络不佳,请检查网络设置”,3秒后消失。
在进行视频播放时,会在视频播放窗口中显示有视频数据类型,如果视频数据为直播数据,那么可以在视频区域左下角输出“直播”标签;若为录制的视频片段,可以输出“录播”标签,如图10所示,在视频区域的左下角的1002区域显示有“直播”;另外,视频的封面图默认为视频的第一帧,若无第一帧则为点事件对应的默认图。
在本申请实施例中,视频控制栏支持以下操作:a)暂停/播放(如图10所示显示有暂停/播放控件1003);b)若为视频片段,支持移动播放进度,且如图12所示,在进度条1201输出当前进度及总时长;c)若为直播,不支持拖拽,进度处仅描述当前进度。
在本申请实施例提供的地图中的视频播放方法中,在地图客户端的首页和导航中点事件在数据侧提供数据支持时,支持视频播放区域,通过该视频播放区域播放点事件直播视频或录制视频,能够丰富电子地图所提供信息的丰富性,能够使得用户直观真切的了解到事件信息及事件进展,从而增强电子地图APP的竞争力,并且随着相关合作方越来越多,数据支持也随之增多,规模效应将持续推动电子地图实时数据的体验提升。
下面继续说明本申请实施例提供的地图中的视频播放装置454的实施为软件模块的示例性结构,在一些实施例中,如图3A所示,存储在存储器450的地图中的视频播放装置454中的软件模块可以包括:第一发送模块4541,配置为响应于针对地图显示界面中目标控件的互动操作,发送第一获取请求,所述第一获取请求用于获取目标视频数据, 所述目标视频数据与所述目标控件相对应;第一获取模块4542,配置为接收针对所述第一获取请求的响应信息,并基于所述响应信息获取所述目标视频数据;第一显示模块4543,配置为在所述地图显示界面显示视频播放窗口,所述视频播放窗口用于播放所述目标视频数据。
在一些实施例中,该第一获取模块,还配置为:基于所述响应信息获取目标视频播放地址;根据所述目标视频播放地址,获取所述目标视频数据。
在一些实施例中,所述第一获取模块,还配置为:获取所述目标视频播放地址的有效时间信息;基于所述有效时间信息和当前时间,确定所述目标视频播放地址处于有效状态;从所述目标视频播放地址获取所述目标视频数据。
在一些实施例中,所述第一获取模块,还配置为:获取所述响应信息中携带的目标存储地址;根据所述目标存储地址,从终端的本地存储空间中获取所述目标视频数据。
在一些实施例中,所述装置还包括:第一加载模块,配置为在所述地图显示界面的预设区域按照第一预设透明度加载第一浮层,并在所述第一浮层上呈现所述视频播放窗口;视频播放模块,配置为按照如下方式之一,在所述视频播放窗口中播放所述目标视频数据:显示所述视频播放窗口后,自动在所述视频播放窗口中播放所述目标视频数据;响应于视频播放指令,在所述视频播放窗口中播放所述目标视频数据;根据终端的网络连接状态,控制所述目标视频在所述视频播放窗口中的播放,其中,所述地图显示界面运行于所述终端。
在一些实施例中,所述视频播放模块,还配置为:当所述终端处于无线局域网连接状态时,自动在所述视频播放窗口播放所述目标视频数据;或者,当所述终端处于蜂窝连接状态或者所述终端切换至蜂窝连接状态,并且满足视频自动播放条件时,自动在所述视频播放窗口播放所述目标视频数据;或者,当所述终端处于蜂窝连接状态或者所述终端切换至蜂窝连接状态,并且不满足视频自动播放条件时,在所述视频播放窗口显示第一提示信息,响应于针对所述第一提示信息的确认操作,在所述视频播放窗口播放所述目标视频数据,或者,响应于在规定时间内未接收到所述确认操作,关闭所述视频播放窗口。
在一些实施例中,所述视频播放模块,还配置为:在所述视频播放窗口按照第二预设透明度加载第二浮层;在所述第二浮层中显示所述第一提示消息,所述第一提示消息用于提示选择确认播放视频数据或者选择预设时长内不再提醒播放视频数据,所述第二浮层中呈现有确定播放的确认控件以及预设时长内不再提醒的选择控件。
在一些实施例中,所述装置还包括:第二获取模块,配置为获取所述目标控件对应的目标图像;第二显示模块,配置为在所述地图显示界面显示图像显示窗口,在所述图像显示窗口显示所述目标图像。
在一些实施例中,所述装置还包括:第三获取模块,配置为获取所述目标视频数据的类型,所述类型为直播数据和录播数据中的一种;第三显示模块,配置为根据所述目标视频数据的类型,显示所述目标视频数据的播放控制控件。
在一些实施例中,所述第三显示模块,还配置为:当所述类型为直播数据时,显示所述目标视频数据的切换按键,所述切换按键用于将所述目标视频数据从播放状态切换至暂停状态,或从暂停状态切换至播放状态;当所述类型为录播数据时,至少显示所述目标视频数据的进度条控件,所述进度条控件用于控制所述目标视频数据的播放进度。
在一些实施例中,所述装置还包括:第二接收模块,配置为接收显示交通实况的第一操作;第四显示模块,配置为响应于所述第一操作,显示交通实况地图,所述交通实况地图中包括能够响应互动操作的至少一个控件,所述至少一个控件与所述交通实况地图中的位置点的视频数据相对应,所述至少一个控件包括所述目标控件。
在一些实施例中,所述装置还包括:第三接收模块,配置为接收进行路径规划的第二操作,并基于所述第二操作获取出发地信息和目的地信息;第一确定模块,配置为利用所述出发地信息和目的地信息确定出行路线;第四获取模块,配置为当终端处于无线局域网连接状态时,获取所述出行路线中包括的至少一个位置点对应的视频数据;存储模块,配置为存储所述视频数据。
在一些实施例中,所述装置还包括:第五显示模块,配置为在视频播放窗口显示所述目标视频数据对应的确认信息和确认控件,所述确认控件包括确定存在所述目标视频数据对应事件的第一控件和确定不存在所述目标视频数据对应事件的第二控件,所述确认信息包括第一控件对应的第一确认数据和所述第二控件对应的第二确认数据;第五获取模块,配置为获取终端自身的位置信息;第六显示模块,配置为当确定所述位置信息和所述目标视频数据对应的位置点满足就近条件时,呈现确认是否发生所述目标视频数据对应事件的第二提示信息;第一更新模块,配置为如果接收到针对所述第一控件的第三操作,基于所述第三操作更新所述第一确认数据;
第二更新模块,配置为如果接收到针对所述第二控件的第四操作,基于所述第四操作更新所述第二确认数据。
这里需要指出的是:以上地图中的视频播放装置实施例项的描述,与上述方法描述是类似的,具有同方法实施例相同的有益效果。对于本申请地图中的视频播放装置实施例中未披露的技术细节,本领域的技术人员请参照本申请方法实施例的描述而理解。
参见图3B,图3B是本申请实施例提供的地图服务器300的结构示意图,图3B所示的地图服务器300包括:至少一个处理器310、存储器350、至少一个网络接口320和用户接口330。地图服务器300中的各个组件通过总线系统340耦合在一起。存储器350能够存储数据以支持各种操作,这些数据的示例包括程序、模块和数据结构或者其子集或超集。存储器350进一步包括:操作系统351、网络通信模块352、呈现模块353、输入处理模块354以及本申请实施例提供的地图中的视频播放装置355。如图3B所示,所述地图中的视频播放装置355中的软件模块可以包括:第一接收模块3551,配置为接收第一获取请求,所述第一获取请求用于获取目标视频数据,所述第一获取请求中携带有位置信息;生成模块3552,配置为响应于所述第一获取请求,生成验证信息;第二发送模块3553,配置为将携带有所述验证信息的响应信息发送至终端,以使得所述终端基于所述验证信息获取目标视频数据。
在一些实施例中,所述装置还包括:第五接收模块,配置为接收终端发送的视频播放地址的第二获取请求,所述第二获取请求中携带有所述验证信息对应的待验证信息和所述位置信息;第三发送模块,配置为当基于所述验证信息确定所述待验证信息验证通过时,向视频服务器发送视频播放地址的第三获取请求;第六接收模块,配置为接收视频服务器发送的获取响应,并将所述获取响应发送至所述终端,所述获取响应中携带有视频播放地址。
在一些实施例中,所述装置还包括:第六获取模块,配置为获取电子地图对应的路网数据;第七获取模块,配置为基于所述路网数据确定发生预设事件时,获取所述预设事件对应的位置信息和时间信息;第四发送模块,配置为将所述位置信息和时间信息发送至所述视频服务器,以使得所述视频服务器基于所述位置信息和时间信息获取所述预设事件对应的视频数据。
这里需要指出的是:以上地图中的视频播放装置实施例项的描述,与上述方法描述是类似的,具有同方法实施例相同的有益效果。对于本申请地图中的视频播放装置实施例中未披露的技术细节,本领域的技术人员请参照本申请方法实施例的描述而理解。
本申请实施例提供了一种计算机程序产品或计算机程序,所述计算机程序产品或计 算机程序包括计算机指令,所述计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取所述计算机指令,处理器执行所述计算机指令,使得所述计算机设备执行本申请实施例上述的地图中的视频播放方法。
本申请实施例提供一种存储有可执行指令的计算机可读存储介质,其中存储有可执行指令,当可执行指令被处理器执行时,将引起处理器执行本申请实施例提供的方法,例如,如图4、图5和图6示出的方法。
在一些实施例中,计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、闪存、磁表面存储器、光盘、或CD-ROM等存储器;也可以是包括上述存储器之一或任意组合的各种设备。
在一些实施例中,可执行指令可以采用程序、软件、软件模块、脚本或代码的形式,按任意形式的编程语言(包括编译或解释语言,或者声明性或过程性语言)来编写,并且其可按任意形式部署,包括被部署为独立的程序或者被部署为模块、组件、子例程或者适合在计算环境中使用的其它单元。
作为示例,可执行指令可以但不一定对应于文件系统中的文件,可以可被存储在保存其它程序或数据的文件的一部分,例如,存储在超文本标记语言(HTML,Hyper Text Markup Language)文档中的一个或多个脚本中,存储在专用于所讨论的程序的单个文件中,或者,存储在多个协同文件(例如,存储一个或多个模块、子程序或代码部分的文件)中。
作为示例,可执行指令可被部署为在一个计算设备上执行,或者在位于一个地点的多个计算设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算设备上执行。
以上所述,仅为本申请的实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和范围之内所作的任何修改、等同替换和改进等,均包含在本申请的保护范围之内。

Claims (22)

  1. 一种地图中的视频播放方法,包括:
    响应于针对地图显示界面中目标控件的互动操作,发送第一获取请求,所述第一获取请求用于获取目标视频数据,所述目标视频数据与所述目标控件相对应;
    接收针对所述第一获取请求的响应信息,并基于所述响应信息获取所述目标视频数据;
    在所述地图显示界面显示视频播放窗口,所述视频播放窗口用于播放所述目标视频数据。
  2. 根据权利要求1中所述的方法,其中,所述基于所述响应信息获取目标视频数据,包括:
    基于所述响应信息获取目标视频播放地址;
    根据所述目标视频播放地址,获取所述目标视频数据。
  3. 根据权利要求2中所述的方法,其中,所述基于所述目标视频播放地址,获取所述目标视频数据,包括:
    获取所述目标视频播放地址的有效时间信息;
    基于所述有效时间信息和当前时间,确定所述目标视频播放地址处于有效状态;
    从所述目标视频播放地址获取所述目标视频数据。
  4. 根据权利要求3中所述的方法,其中,所述有效时间信息包括生效时间和失效时间,所述基于所述有效时间信息和当前时间,确定所述目标视频播放地址处于有效状态,包括:
    如果所述当前时间位于所述生效时间和所述失效时间之间,确定所述目标视频播放地址处于有效状态。
  5. 根据权利要求1中所述的方法,其中,所述基于所述响应信息获取目标视频数据,包括:
    获取所述响应信息中携带的目标存储地址;
    根据所述目标存储地址,从终端的本地存储空间中获取所述目标视频数据。
  6. 根据权利要求1中所述的方法,其中,所述方法还包括:
    在所述地图显示界面的预设区域按照第一预设透明度加载第一浮层,并在所述第一浮层上呈现所述视频播放窗口;
    按照如下方式之一,在所述视频播放窗口中播放所述目标视频数据:
    自动在所述视频播放窗口中播放所述目标视频数据;
    响应于视频播放指令,在所述视频播放窗口中播放所述目标视频数据;
    根据终端的网络连接状态,控制所述目标视频在所述视频播放窗口中的播放,其中,所述地图显示界面运行于所述终端。
  7. 根据权利要求6中所述的方法,其中,所述根据终端的网络连接状态,控制所述目标视频在所述视频播放窗口中的播放,包括:
    当所述终端处于无线局域网连接状态时,自动在所述视频播放窗口播放所述目标视频数据;或者,
    当所述终端处于蜂窝连接状态或者所述终端切换至蜂窝连接状态,并且满足视频自动播放条件时,自动在所述视频播放窗口播放所述目标视频数据;或者,
    当所述终端处于蜂窝连接状态或者所述终端切换至蜂窝连接状态,并且不满足视频自动播放条件时,在所述视频播放窗口显示第一提示信息,响应于针对所述第一提示信息的确认操作,在所述视频播放窗口播放所述目标视频数据,或者,响应于在规定时间内未接收到所述确认操作,关闭所述视频播放窗口。
  8. 根据权利要求7中所述的方法,其中,所述在所述视频播放窗口显示第一提示信息,包括:
    在所述视频播放窗口按照第二预设透明度加载第二浮层;
    在所述第二浮层中显示所述第一提示消息,所述第一提示消息用于提示选择确认播放视频数据或者选择预设时长内不再提醒播放视频数据,所述第二浮层中呈现有确定播放的确认控件以及预设时长内不再提醒的选择控件。
  9. 根据权利要求7中所述的方法,其中,在关闭所述视频播放窗口之后,所述方法还包括:
    获取所述目标控件对应的目标图像;
    在所述地图显示界面显示图像显示窗口,在所述图像显示窗口显示所述目标图像。
  10. 根据权要求1至9任一项所述的方法,其中,所述方法还包括:
    获取所述目标视频数据的类型,所述类型为直播数据和录播数据中的一种;
    根据所述目标视频数据的类型,显示所述目标视频数据的播放控制控件。
  11. 根据权利要求10中所述的方法,其中,所述根据所述目标视频数据的类型,显示所述目标视频数据的播放控制控件,包括:
    当所述类型为直播数据时,显示所述目标视频数据的切换按键,所述切换按键用于将所述目标视频数据从播放状态切换至暂停状态,或从暂停状态切换至播放状态;
    当所述类型为录播数据时,至少显示所述目标视频数据的进度条控件,所述进度条控件用于控制所述目标视频数据的播放进度。
  12. 根据权利要求1至9任一项所述的方法,其中,所述方法还包括:
    接收显示交通实况的第一操作;
    响应于所述第一操作,显示交通实况地图,所述交通实况地图中包括能够响应互动操作的至少一个控件,所述至少一个控件与所述交通实况地图中的位置点的视频数据相对应,所述至少一个控件包括所述目标控件。
  13. 根据权利要求1至9中任一项所述的方法,其中,所述方法还包括:
    接收进行路径规划的第二操作,并基于所述第二操作获取出发地信息和目的地信息;
    利用所述出发地信息和目的地信息确定出行路线;
    当终端处于无线局域网连接状态时,获取所述出行路线中包括的至少一个位置点对应的视频数据;
    存储所述视频数据。
  14. 根据权利要求1至9任一项所述的方法,其中,所述方法还包括:
    在视频播放窗口显示所述目标视频数据对应的确认信息和确认控件,所述确认控件包括确定存在所述目标视频数据对应事件的第一控件和确定不存在所述目标视频数据对应事件的第二控件,所述确认信息包括第一控件对应的第一确认数据和所述第二控件对应的第二确认数据;
    获取终端自身的位置信息;
    当确定所述位置信息和所述目标视频数据对应的位置点满足就近条件时,呈现确认是否发生所述目标视频数据对应事件的第二提示信息;
    如果接收到针对所述第一控件的第三操作,基于所述第三操作更新所述第一确认数据;
    如果接收到针对所述第二控件的第四操作,基于所述第四操作更新所述第二确认数据。
  15. 一种地图中的视频播放方法,包括:
    接收第一获取请求,所述第一获取请求用于获取目标视频数据,所述第一获取请求 中携带有位置信息;
    响应于所述第一获取请求,生成验证信息;
    将携带有所述验证信息的响应信息发送至终端,以使得所述终端基于所述验证信息获取目标视频数据。
  16. 根据权利要求15所述的方法,其中,所述方法还包括:
    接收终端发送的视频播放地址的第二获取请求,所述第二获取请求中携带有所述验证信息对应的待验证信息和所述位置信息;
    当基于所述验证信息确定所述待验证信息验证通过时,向视频服务器发送视频播放地址的第三获取请求;
    接收视频服务器发送的获取响应,并将所述获取响应发送至所述终端,所述获取响应中携带有视频播放地址。
  17. 根据权利要求15或16所述的方法,其中,所述方法还包括:
    获取电子地图对应的路网数据;
    基于所述路网数据确定发生预设事件时,获取所述预设事件对应的位置信息和时间信息;
    将所述位置信息和时间信息发送至所述视频服务器,以使得所述视频服务器基于所述位置信息和时间信息获取所述预设事件对应的视频数据。
  18. 一种地图中的视频播放装置,所述装置包括:
    第一发送模块,配置为响应于针对地图显示界面中目标控件的互动操作,发送第一获取请求,所述第一获取请求用于获取目标视频数据,所述目标视频数据与所述目标控件相对应;
    第一获取模块,配置为接收针对所述第一获取请求的响应信息,并基于所述响应信息获取所述目标视频数据;
    第一显示模块,配置为在所述地图显示界面显示视频播放窗口,所述视频播放窗口用于播放所述目标视频数据。
  19. 一种地图中的视频播放装置,所述装置包括:
    第一接收模块,配置为接收第一获取请求,所述第一获取请求用于获取目标视频数据,所述第一获取请求中携带有位置信息;
    生成模块,配置为响应于所述第一获取请求,生成验证信息;
    第二发送模块,配置为将携带有所述验证信息的响应信息发送至终端,以使得所述终端基于所述验证信息获取目标视频数据。
  20. 一种地图中的视频播放设备,包括:
    存储器,用于存储可执行指令;
    处理器,用于执行所述存储器中存储的可执行指令时,实现权利要求1至14任一项或者权利要求15至17任一项所述的方法。
  21. 一种计算机可读存储介质,存储有可执行指令,用于被处理器执行时,实现权利要求1至14任一项或者权利要求15至17任一项所述的方法。
  22. 一种计算机程序产品或计算机程序,所述计算机程序产品或计算机程序包括计算机指令,所述计算机指令存储在计算机可读存储介质中;
    当计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,并执行所述计算机指令时,实现权利要求1至14任一项或者权利要求15至17任一项所述的方法。
PCT/CN2022/080851 2021-04-12 2022-03-15 地图中的视频播放方法、装置、设备、计算机可读存储介质及计算机程序产品 WO2022218083A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/992,735 US20230084001A1 (en) 2021-04-12 2022-11-22 Video playing method, apparatus and device in map, computer-readable storage medium and computer program product

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110390275.0A CN115203345A (zh) 2021-04-12 2021-04-12 地图中的视频播放方法、装置、设备及计算机存储介质
CN202110390275.0 2021-04-12

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/992,735 Continuation US20230084001A1 (en) 2021-04-12 2022-11-22 Video playing method, apparatus and device in map, computer-readable storage medium and computer program product

Publications (1)

Publication Number Publication Date
WO2022218083A1 true WO2022218083A1 (zh) 2022-10-20

Family

ID=83570460

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/080851 WO2022218083A1 (zh) 2021-04-12 2022-03-15 地图中的视频播放方法、装置、设备、计算机可读存储介质及计算机程序产品

Country Status (3)

Country Link
US (1) US20230084001A1 (zh)
CN (1) CN115203345A (zh)
WO (1) WO2022218083A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114727138A (zh) * 2022-03-31 2022-07-08 大众问问(北京)信息科技有限公司 商品信息处理方法、装置和计算机设备
CN116527989A (zh) * 2023-06-29 2023-08-01 天津金城银行股份有限公司 一种视频播放装置界面显示方法、系统、终端及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120017148A1 (en) * 2010-07-15 2012-01-19 Research In Motion Limited Navigating Between A Map Dialog And Button Controls Displayed Outside The Map
CN104504065A (zh) * 2014-12-19 2015-04-08 百度在线网络技术(北京)有限公司 导航路线生成方法和装置
CN104820603A (zh) * 2015-05-22 2015-08-05 上海卓易科技股份有限公司 Gps地图导航中自动截图方法及系统
CN105608095A (zh) * 2014-11-25 2016-05-25 深圳市腾讯计算机系统有限公司 多媒体播放方法、装置及移动终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120017148A1 (en) * 2010-07-15 2012-01-19 Research In Motion Limited Navigating Between A Map Dialog And Button Controls Displayed Outside The Map
CN105608095A (zh) * 2014-11-25 2016-05-25 深圳市腾讯计算机系统有限公司 多媒体播放方法、装置及移动终端
CN104504065A (zh) * 2014-12-19 2015-04-08 百度在线网络技术(北京)有限公司 导航路线生成方法和装置
CN104820603A (zh) * 2015-05-22 2015-08-05 上海卓易科技股份有限公司 Gps地图导航中自动截图方法及系统

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114727138A (zh) * 2022-03-31 2022-07-08 大众问问(北京)信息科技有限公司 商品信息处理方法、装置和计算机设备
CN114727138B (zh) * 2022-03-31 2023-12-19 大众问问(北京)信息科技有限公司 商品信息处理方法、装置和计算机设备
CN116527989A (zh) * 2023-06-29 2023-08-01 天津金城银行股份有限公司 一种视频播放装置界面显示方法、系统、终端及存储介质
CN116527989B (zh) * 2023-06-29 2023-11-07 天津金城银行股份有限公司 一种视频播放装置界面显示方法、系统、终端及存储介质

Also Published As

Publication number Publication date
US20230084001A1 (en) 2023-03-16
CN115203345A (zh) 2022-10-18

Similar Documents

Publication Publication Date Title
WO2022218083A1 (zh) 地图中的视频播放方法、装置、设备、计算机可读存储介质及计算机程序产品
US10754668B2 (en) Media file presentation method, client application, and plug-in
AU2013204856B2 (en) User terminal apparatus, display apparatus, server and control method thereof
US10110590B2 (en) Live tiles without application-code execution
US9727326B2 (en) Providing customized notifications for security software updates
US10642456B2 (en) Application distribution method and device
US20100107150A1 (en) Terminal having application update managing function, and application update managing program and system
TW201814510A (zh) 介面移動方法、裝置、智慧型終端機、伺服器和操作系統
EP3726376B1 (en) Program orchestration method and electronic device
KR20150013531A (ko) 디스플레이 장치, 서버 및 컨텐츠 제공 시스템의 동작 방법
CN111930973B (zh) 多媒体数据的播放方法、装置、电子设备及存储介质
US20170330248A1 (en) Portable Electronic Device and Method for Displaying Data Thereon
WO2021068634A1 (zh) 页面跳转方法、装置、电子设备及计算机可读存储介质
US7315907B2 (en) Information delivery and display system and information delivery method
US20180020041A1 (en) Remote process management
KR20160128293A (ko) 이벤트 리마인드 방법, 장치, 시스템, 프로그램 및 기록매체
KR20160118000A (ko) 위젯 제공 시스템 및 방법
JP2018508895A (ja) ロケーションベースのデバイスサービスを実現するための手法
CN106503077A (zh) 媒体内容的管理方法、装置和设备
WO2017113855A1 (zh) 应用程序交互的方法和终端
WO2022002088A1 (zh) 用于设备交互的方法、装置和介质
CN109635131B (zh) 多媒体内容榜单显示方法、推送方法,装置及存储介质
CN112565877B (zh) 投屏方法、系统、电子设备及存储介质
CN114595393A (zh) 一种数据处理方法及装置
CN115175003A (zh) 媒资播放方法、显示设备、电子设备及服务器

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22787313

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22787313

Country of ref document: EP

Kind code of ref document: A1