CN116437032A - Video playback control method and device, electronic equipment and storage medium - Google Patents

Video playback control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116437032A
CN116437032A CN202310484464.3A CN202310484464A CN116437032A CN 116437032 A CN116437032 A CN 116437032A CN 202310484464 A CN202310484464 A CN 202310484464A CN 116437032 A CN116437032 A CN 116437032A
Authority
CN
China
Prior art keywords
video
user
target
platform
token
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202310484464.3A
Other languages
Chinese (zh)
Inventor
殷涛
束宇凡
顾杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Huiershi Software Technology Co ltd
Original Assignee
Nanjing Huiershi Software Technology Co ltd
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 Nanjing Huiershi Software Technology Co ltd filed Critical Nanjing Huiershi Software Technology Co ltd
Priority to CN202310484464.3A priority Critical patent/CN116437032A/en
Publication of CN116437032A publication Critical patent/CN116437032A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor
    • H04N5/93Regeneration of the television signal or of selected parts thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/321Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
    • H04L9/3213Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority using tickets or tokens, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application discloses a video playback control method, a video playback control device, electronic equipment and a storage medium, wherein the method and the device are applied to the electronic equipment, specifically, a login target video platform is used for acquiring a token; pulling and saving a plurality of video streams from a target video platform; responding to a query request of a user, and receiving event information input by the user; and sending one or more video streams corresponding to the event information in the plurality of video streams to the user. Through the scheme, the user can acquire the corresponding video at any time based on the corresponding front-end equipment, namely, the direct playing of the real-time bare data stream is realized, and therefore, the event site can be processed in time.

Description

Video playback control method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of video management technologies, and in particular, to a video playback control method, apparatus, electronic device, and storage medium.
Background
The video playback system can be used for video recording on the event occurrence site after the event, and also can be used for analyzing the reason and responsibility attribution of the event after the event, and is an important means for recording the event information in real time, analyzing the event and predicting the subsequent occurrence probability. It is necessary for various regional scenes that are prone to emergency events. Particularly, for recording and checking traffic conditions, such as events of vehicles or pedestrians changing driving routes or moving states on roads, including red light running, reverse running, etc., when law enforcement is performed on traffic events, real-time video of the traffic events needs to be replayed so as to determine accident causes and responsibility attribution.
Although the traditional video streaming technology can realize the playback of traffic events, the front-end equipment carried by accident handling personnel often cannot acquire corresponding videos at any time, namely, bare data streams cannot be directly played in real time, and when the situation that the situation of timely handling of the accident scene is required occurs, the playback mode cannot meet the requirements.
Disclosure of Invention
In view of the foregoing, the present application provides a video playback control method, apparatus, electronic device, and storage medium for playing back video within a certain time period, so as to be capable of timely processing for an accident occurrence thread.
In order to achieve the above object, the following solutions have been proposed:
a video playback control method applied to an electronic device, the video playback control method comprising the steps of:
logging in a target video platform to obtain a token;
pulling and saving a plurality of video streams from the target video platform;
responding to a query request of a user, and receiving event information input by the user;
and sending one or more video streams corresponding to the event information in the plurality of video streams to a user.
Optionally, the step of logging in the target video platform to obtain the token includes the steps of:
sending a login request to the target video platform;
receiving a secret key, service domain information and an encryption type returned by the target video platform based on the login request;
calculating a signature value according to the encryption type;
transmitting the signature value to the target video platform;
and receiving the token returned by the target video platform according to the signature value.
Optionally, the pulling and saving the plurality of video streams from the target video platform includes the steps of:
acquiring event information in an event queue;
inquiring a video channel number according to the event information;
acquiring a video stream address from the video channel number according to the token;
downloading the video streams from the video stream addresses and storing the video streams.
Optionally, the method further comprises the steps of:
and responding to a ball machine control request of a user, and sending a ball machine control instruction to the target video platform based on the token so as to enable the controlled ball machine designated by the ball machine control request to turn to a target direction.
Optionally, the responding to the ball machine control request of the user sends a ball machine control instruction to the target video platform based on the token, so that the controlled ball machine designated by the ball machine control request turns to the target direction, and the method comprises the following steps:
acquiring a target video channel number corresponding to the equipment number of the target dome camera from a database according to the dome camera control request;
and sending the token and the rotation coefficient to the target video platform so that the manual ball machine rotates according to the rotation coefficient.
A video playback control apparatus applied to an electronic device, the video playback control apparatus comprising:
the platform login module is configured to login a target video platform and acquire a token;
a video pulling module configured to pull and save a plurality of video streams from the target video platform;
the event receiving module is configured to respond to the query request of the user and receive event information input by the user;
and the video sending module is configured to send one or more video streams corresponding to the event information in the plurality of video streams to a user.
Optionally, the platform login module includes:
a first login unit configured to send a login request to the target video platform;
the first receiving unit is configured to receive a secret key, service domain information and an encryption type returned by the target video platform based on the login request;
a numerical calculation unit configured to calculate a signature value according to the encryption type;
a second login unit configured to send the signature value to the target video platform;
and the second receiving unit is configured to receive the token returned by the target video platform according to the signature value.
Optionally, the video pulling module includes:
an information acquisition unit configured to acquire event information in an event queue;
a channel inquiry unit configured to inquire a video channel number according to the event information;
an address acquisition unit configured to acquire a video stream address from the video channel number according to the token;
and a video downloading unit configured to download the plurality of video streams from the video stream address.
Optionally, the method further comprises:
and the dome camera control module is configured to respond to a dome camera control request of a user, and send a dome camera control instruction to the target video platform based on the token so as to enable the controlled dome camera designated by the dome camera control request to turn to a target direction.
Optionally, the ball machine control module includes:
a channel obtaining unit configured to obtain a target video channel number corresponding to the equipment number of the target ball machine from a database according to the ball machine control request;
and the steering control unit is configured to send the token and the rotation coefficient to the target video platform so as to enable the manual ball machine to rotate according to the rotation coefficient.
An electronic device comprising at least one processor and a memory coupled to the processor, wherein:
the memory is used for storing computer programs or instructions;
the processor is configured to execute the computer program or instructions to cause the electronic device to implement the video playback control method as described above.
A storage medium for application to an electronic device, the storage medium carrying one or more computer programs executable by the electronic device to cause the electronic device to implement a video playback control method as described above.
From the above technical solution, the present application discloses a video playback control method, apparatus, electronic device, and storage medium, where the method and apparatus are applied to electronic devices, specifically, login target video platforms, and acquire a token; pulling and saving a plurality of video streams from a target video platform; responding to a query request of a user, and receiving event information input by the user; and sending one or more video streams corresponding to the event information in the plurality of video streams to the user. Through the scheme, the user can acquire the corresponding video at any time based on the corresponding front-end equipment, namely, the direct playing of the real-time bare data stream is realized, and accordingly, the accident scene can be processed in time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a video playback control method according to an embodiment of the present application;
FIG. 2 is a flow chart of another video playback control method according to an embodiment of the present application;
fig. 3 is a block diagram of a video playback control apparatus according to an embodiment of the present application;
fig. 4 is a block diagram of another video playback control device according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Example 1
Fig. 1 is a flowchart of a video playback control method according to an embodiment of the present application.
As shown in fig. 1, the video playback control method provided in this embodiment is applied to an electronic device, where the electronic device may be understood as a computer and a server with data computing capability and information processing capability, where the computer or the server is connected to a front-end device or a client that provides a playback function for a user through a data network, and where the computer or the server is connected to a target video platform storing video data to be played back through a data network, where the target video platform may be a video server of a traffic department or a third party video platform of another department or unit. The video playback control method of the present embodiment includes the steps of:
s1, logging in a target video platform to obtain a token.
The method comprises the steps of realizing login of a target video platform based on a login instruction sent by a user through front-end equipment, and obtaining a token returned by the target video platform when the login is completed, so that video resources can be obtained from the target video platform based on the token later, and video playback is realized. The specific steps of logging in the target video platform are as follows:
first, a first login is performed, that is, a login request sent by a user through a front-end device is received, and the login request is sent to a target video platform based on the login request. After receiving the login request, the target video platform returns a secret key, service domain information and an encryption type if the login request is legal, namely, the user sending the login request is a legal user.
Then, the key, the service domain information and the encryption type returned by the target video platform are received. The encryption type here refers to the encryption type of the key, and may specifically be an MD5 encryption type or an SA encryption type.
The key is then calculated according to the encryption type, which may also be referred to as signature calculation, to obtain a signature value.
And further, performing a second login, namely, retransmitting the signature value to the target video platform so as to realize the re-verification of the identity. After receiving the signature value, the target video platform generates a token corresponding to the user identity according to the corresponding information and returns the token.
And finally, receiving and storing the token returned by the target video platform.
S2, pulling and storing a plurality of video streams from the target video platform.
That is, when needed, the user pulls multiple video streams from the target video platform based on the token, so that the user can select the needed video stream from the multiple video streams to play. The method specifically realizes the pulling of a plurality of video streams by the following steps:
first, event information in an event queue. Event information includes, but is not limited to, information of the location, time, object, etc. of the event.
And then, after receiving the time information, inquiring from a corresponding database according to the specific content of the time information to obtain the video channel number corresponding to the event information.
Then, on the basis of obtaining the video channel number, the video stream address corresponding to the event information is determined based on the token.
And finally, pulling a plurality of video streams from the video stream address, and storing the pulled video streams, wherein each video stream is transcoded based on the characteristics of front-end equipment in the storage process so as to adapt to subsequent playing.
S3, receiving input event information according to a query request of a user.
The event information refers to related information of the current time, such as the place, time and vehicle information of the accident, etc., when the user needs to inquire and play back the video, the user can input a corresponding inquiry request through the front-end equipment, and input the event information while sending the inquiry request.
And S4, sending one or more video streams to the user.
The video stream corresponding to the event information input by the user is sent to the user, specifically to the front-end equipment for the user to input the query request, so that the user plays the video stream through the front-end equipment. The video stream may be one or a plurality of video streams.
As can be seen from the above technical solution, the present embodiment provides a video playback control method, which is applied to an electronic device, specifically, a login target video platform, and obtains a token; pulling and saving a plurality of video streams from a target video platform; responding to a query request of a user, and receiving event information input by the user; and sending one or more video streams corresponding to the event information in the plurality of video streams to the user. Through the scheme, the user can acquire the corresponding video at any time based on the corresponding front-end equipment, namely, the direct playing of the real-time bare data stream is realized, and accordingly, the accident scene can be processed in time.
In addition, in a specific implementation manner of this embodiment, the method further includes the following steps, as shown in fig. 2:
s5, realizing direct control of the ball machine according to the ball machine control request of the user.
When the ball machine control request sent by the user is received, a corresponding ball machine control instruction is sent to the target video platform based on the token, and the ball machine control instruction is used for controlling the steering of the controlled ball machine connected with the target video platform, so that the controlled ball machine obtains the current video required by the user. The method is realized by the following steps:
first, after receiving a user's dome camera control request, the device number of the target dome camera and the target video channel number corresponding to the device number are acquired from the database.
And then, the token and the rotation coefficient are sent to the target video platform, so that the target video platform controls the controlled ball machine to rotate according to the rotation coefficient so as to control the controlled ball machine to turn to the target direction required by a user, and the characteristics of focal length, aperture and the like of the controlled ball machine are controlled in the rotation process, before rotation or after rotation is completed.
Through the step, the user can acquire the current video, and the real-time tracking and evidence obtaining of pedestrians and vehicles are realized.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the C-language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computer may be connected to the user computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer.
Example two
Fig. 3 is a block diagram of a video playback control apparatus according to an embodiment of the present application.
As shown in fig. 3, the video playback control apparatus provided in this embodiment is applied to an electronic device. The video playback control device of the present embodiment includes a platform login module 10, a video pull module 20, an event receiving module 30, and a video transmitting module 40.
The platform login module is used for logging in the target video platform and obtaining the token.
The method comprises the steps of realizing login of a target video platform based on a login instruction sent by a user through front-end equipment, and obtaining a token returned by the target video platform when the login is completed, so that video resources can be obtained from the target video platform based on the token later, and video playback is realized. The module specifically comprises a first login unit, a first receiving unit, a numerical calculation unit, a second login unit and an information receiving unit.
The first login unit is used for performing first login, namely, on the basis of receiving a login request sent by a user through the front-end equipment, the login request is sent to the target video platform based on the login request. After receiving the login request, the target video platform returns a secret key, service domain information and an encryption type if the login request is legal, namely, the user sending the login request is a legal user.
The first receiving unit is used for receiving the key, the service domain information and the encryption type returned by the target video platform. The encryption type here refers to the encryption type of the key, and may specifically be an MD5 encryption type or an SA encryption type.
The numerical calculation unit is used for calculating the secret key according to the encryption type, and can also be called signature calculation, so as to obtain a signature value.
The second login unit is used for performing second login, namely, the signature value is sent to the target video platform again, so that identity re-verification is realized. After receiving the signature value, the target video platform generates a token corresponding to the user identity according to the corresponding information and returns the token.
The second receiving unit is used for receiving and storing the token returned by the target video platform.
The video pulling module is used for pulling and storing a plurality of video streams from the target video platform.
That is, when needed, the user pulls multiple video streams from the target video platform based on the token, so that the user can select the needed video stream from the multiple video streams to play. The module specifically comprises an information acquisition unit, a channel inquiry unit, an address acquisition unit and a video downloading unit.
The information acquisition unit is used for event information in the event queue. Event information includes, but is not limited to, information of the location, time, object, etc. of the event.
And the channel inquiry unit is used for inquiring from the corresponding database according to the specific content of the time information after receiving the time information, so as to obtain the video channel number corresponding to the event information.
The address acquisition unit is used for determining the video stream address corresponding to the event information based on the token on the basis of obtaining the video channel number.
The video downloading unit is used for pulling a plurality of video streams from the video stream address, storing the pulled video streams, and transcoding each video stream based on the characteristics of the front-end equipment in the storage process so as to adapt to subsequent playing.
The event receiving module is used for receiving input event information according to a query request of a user.
The event information refers to related information of the current time, such as the place, time and vehicle information of the accident, etc., when the user needs to inquire and play back the video, the user can input a corresponding inquiry request through the front-end equipment, and input the event information while sending the inquiry request.
The video transmission module is used for transmitting one or more video streams to the user.
The video stream corresponding to the event information input by the user is sent to the user, specifically to the front-end equipment for the user to input the query request, so that the user plays the video stream through the front-end equipment. The video stream may be one or a plurality of video streams.
As can be seen from the above technical solution, the present embodiment provides a video playback control device, which is applied to an electronic device, specifically, a login target video platform, to obtain a token; pulling and saving a plurality of video streams from a target video platform; responding to a query request of a user, and receiving event information input by the user; and sending one or more video streams corresponding to the event information in the plurality of video streams to the user. Through the scheme, the user can acquire the corresponding video at any time based on the corresponding front-end equipment, namely, the direct playing of the real-time bare data stream is realized, and accordingly, the accident scene can be processed in time.
In addition, in a specific implementation of the present embodiment, the ball machine control module 50 is further included, as shown in fig. 4:
the ball machine control module is used for realizing direct control of the ball machine according to a ball machine control request of a user.
When the ball machine control request sent by the user is received, a corresponding ball machine control instruction is sent to the target video platform based on the token, and the ball machine control instruction is used for controlling the steering of the controlled ball machine connected with the target video platform, so that the controlled ball machine obtains the current video required by the user. The module comprises a channel acquisition unit and a steering control unit.
The channel acquisition unit is used for acquiring the equipment number of the target dome camera and the target video channel number corresponding to the equipment number from the database after receiving the dome camera control request of the user.
The steering control unit is used for sending the token and the rotation coefficient to the target video platform, so that the target video platform controls the controlled dome camera to rotate according to the rotation coefficient so as to control the controlled dome camera to steer to a target direction required by a user, and controls the characteristics of focal length, aperture and the like of the controlled dome camera in the rotation process, before rotation or after rotation is completed.
Through the ball machine control module, a user can acquire a current video, and real-time tracking and evidence obtaining of pedestrians and vehicles are realized.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring at least two internet protocol addresses".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
Example III
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present application.
Referring to fig. 5, a schematic diagram of a configuration of an electronic device suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
The electronic device may include a processing means (e.g., a central processor, a graphics processor, etc.) 501, which may perform various appropriate actions and processes in accordance with programs stored in a read-only memory ROM or loaded from an input means 506 into a random access memory RAM 503. In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other by bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The electronic equipment can realize logging in a target video platform to acquire a token; pulling and saving a plurality of video streams from a target video platform; responding to a query request of a user, and receiving event information input by the user; and sending one or more video streams corresponding to the event information in the plurality of video streams to the user. Through the scheme, the user can acquire the corresponding video at any time based on the corresponding front-end equipment, namely, the direct playing of the real-time bare data stream is realized, and accordingly, the accident scene can be processed in time.
In general, the following devices may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 508 including, for example, magnetic tape, hard disk, etc.; and communication means 509. The communication means 509 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While an electronic device having various means is shown in the figures, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
Example IV
The embodiment provides a computer-readable storage medium, which is applied to the electronic device and carries one or more computer programs, and when the one or more computer programs are executed by the electronic device, the electronic device is caused to log in a target video platform to acquire a token; pulling and saving a plurality of video streams from a target video platform; responding to a query request of a user, and receiving event information input by the user; and sending one or more video streams corresponding to the event information in the plurality of video streams to the user. Through the scheme, the user can acquire the corresponding video at any time based on the corresponding front-end equipment, namely, the direct playing of the real-time bare data stream is realized, and accordingly, the accident scene can be processed in time.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has outlined rather broadly the more detailed description of the invention in order that the detailed description of the invention that follows may be better understood, and in order that the present principles and embodiments may be better understood; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (12)

1. A video playback control method applied to an electronic device, the video playback control method comprising the steps of:
logging in a target video platform to obtain a token;
pulling and saving a plurality of video streams from the target video platform;
responding to a query request of a user, and receiving event information input by the user;
and sending one or more video streams corresponding to the event information in the plurality of video streams to a user.
2. The video playback control method as recited in claim 1, wherein the login-target video platform acquires a token, comprising the steps of:
sending a login request to the target video platform;
receiving a secret key, service domain information and an encryption type returned by the target video platform based on the login request;
calculating a signature value according to the encryption type;
transmitting the signature value to the target video platform;
and receiving the token returned by the target video platform according to the signature value.
3. The video playback control method of claim 1, wherein the pulling and saving of the plurality of video streams from the target video platform comprises the steps of:
acquiring event information in an event queue;
inquiring a video channel number according to the event information;
acquiring a video stream address from the video channel number according to the token;
downloading the video streams from the video stream addresses and storing the video streams.
4. The video playback control method as recited in any one of claims 1 to 3, further comprising the step of:
and responding to a ball machine control request of a user, and sending a ball machine control instruction to the target video platform based on the token so as to enable the controlled ball machine designated by the ball machine control request to turn to a target direction.
5. The video playback control method of claim 4, wherein the sending, in response to a user's goal control request, a goal control command to the target video platform based on the token to turn the controlled goal specified by the goal control request to a target direction, comprises the steps of:
acquiring a target video channel number corresponding to the equipment number of the target dome camera from a database according to the dome camera control request;
and sending the token and the rotation coefficient to the target video platform so that the manual ball machine rotates according to the rotation coefficient.
6. A video playback control apparatus applied to an electronic device, the video playback control apparatus comprising:
the platform login module is configured to login a target video platform and acquire a token;
a video pulling module configured to pull and save a plurality of video streams from the target video platform;
the event receiving module is configured to respond to the query request of the user and receive event information input by the user;
and the video sending module is configured to send one or more video streams corresponding to the event information in the plurality of video streams to a user.
7. The video playback control device of claim 6, wherein the platform login module comprises:
a first login unit configured to send a login request to the target video platform;
the first receiving unit is configured to receive a secret key, service domain information and an encryption type returned by the target video platform based on the login request;
a numerical calculation unit configured to calculate a signature value according to the encryption type;
a second login unit configured to send the signature value to the target video platform;
and the second receiving unit is configured to receive the token returned by the target video platform according to the signature value.
8. The video playback control device of claim 6, wherein the video pulling module comprises:
an information acquisition unit configured to acquire event information in an event queue;
a channel inquiry unit configured to inquire a video channel number according to the event information;
an address acquisition unit configured to acquire a video stream address from the video channel number according to the token;
and a video downloading unit configured to download the plurality of video streams from the video stream address.
9. The video playback control device according to any one of claims 6 to 8, further comprising:
and the dome camera control module is configured to respond to a dome camera control request of a user, and send a dome camera control instruction to the target video platform based on the token so as to enable the controlled dome camera designated by the dome camera control request to turn to a target direction.
10. The video playback control device of claim 9, wherein the dome camera control module comprises:
a channel obtaining unit configured to obtain a target video channel number corresponding to the equipment number of the target ball machine from a database according to the ball machine control request;
and the steering control unit is configured to send the token and the rotation coefficient to the target video platform so as to enable the manual ball machine to rotate according to the rotation coefficient.
11. An electronic device comprising at least one processor and a memory coupled to the processor, wherein:
the memory is used for storing computer programs or instructions;
the processor is configured to execute the computer program or instructions to cause the electronic device to implement the video playback control method of any one of claims 1 to 5.
12. A storage medium for application to an electronic device, wherein the storage medium carries one or more computer programs executable by the electronic device to cause the electronic device to implement the video playback control method of any one of claims 1-5.
CN202310484464.3A 2023-04-28 2023-04-28 Video playback control method and device, electronic equipment and storage medium Pending CN116437032A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310484464.3A CN116437032A (en) 2023-04-28 2023-04-28 Video playback control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310484464.3A CN116437032A (en) 2023-04-28 2023-04-28 Video playback control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116437032A true CN116437032A (en) 2023-07-14

Family

ID=87085446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310484464.3A Pending CN116437032A (en) 2023-04-28 2023-04-28 Video playback control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116437032A (en)

Similar Documents

Publication Publication Date Title
CN109918040B (en) Voice instruction distribution method and device, electronic equipment and computer readable medium
CN110177300B (en) Program running state monitoring method and device, electronic equipment and storage medium
CN111246228B (en) Method, device, medium and electronic equipment for updating gift resources of live broadcast room
WO2022042389A1 (en) Search result display method and apparatus, readable medium, and electronic device
CN112632323A (en) Video playing method, device, equipment and medium
US10785523B2 (en) Streaming video queue management system
US10939072B1 (en) Evidence collection and attorney engagement method and system
CN110837333A (en) Method, device, terminal and storage medium for adjusting playing progress of multimedia file
WO2020220777A1 (en) Method for pushing information, device, equipment, and medium
CN108366233B (en) Network camera connecting method, device, equipment and storage medium
CN113542856B (en) Method, device, equipment and computer readable medium for reverse playing of online video
CN111225255B (en) Target video push playing method and device, electronic equipment and storage medium
CN114827750B (en) Viewing angle prediction method, device, equipment and storage medium
CN116088537A (en) Vehicle obstacle avoidance method, device, electronic equipment and computer readable medium
CN111310145A (en) User right verification method and device and electronic equipment
CN116437032A (en) Video playback control method and device, electronic equipment and storage medium
WO2022188618A1 (en) Resource preloading method, apparatus and device, and storage medium
CN114025116B (en) Video generation method, device, readable medium and electronic equipment
CN112291573B (en) Live stream pushing method and device, electronic equipment and computer readable medium
CN113727172A (en) Video cache playing method and device, electronic equipment and storage medium
CN111752625A (en) Method and device for interface mock
CN115225916B (en) Video processing method, device and equipment
CN115103023B (en) Video caching method, device, equipment and storage medium
CN113076195B (en) Object shunting method and device, readable medium and electronic equipment
CN111259174B (en) Multimedia transmission method, device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination