CN110602442B - Method for realizing real-time code stream playing control in video monitoring system - Google Patents

Method for realizing real-time code stream playing control in video monitoring system Download PDF

Info

Publication number
CN110602442B
CN110602442B CN201910600545.9A CN201910600545A CN110602442B CN 110602442 B CN110602442 B CN 110602442B CN 201910600545 A CN201910600545 A CN 201910600545A CN 110602442 B CN110602442 B CN 110602442B
Authority
CN
China
Prior art keywords
video
playing
time
video object
control
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.)
Active
Application number
CN201910600545.9A
Other languages
Chinese (zh)
Other versions
CN110602442A (en
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.)
Anhui Jiaoxin Technology Co.,Ltd.
Original Assignee
Anhui Fuhuang 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 Anhui Fuhuang Technology Co ltd filed Critical Anhui Fuhuang Technology Co ltd
Priority to CN201910600545.9A priority Critical patent/CN110602442B/en
Publication of CN110602442A publication Critical patent/CN110602442A/en
Application granted granted Critical
Publication of CN110602442B publication Critical patent/CN110602442B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • 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
    • H04N21/4782Web browsing, e.g. WebTV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a method for realizing real-time code stream playing control in a video monitoring system, which belongs to the technical field of real-time code stream playing control and comprises the following steps: s1, manufacturing a video control bar; s2, normally playing; s3, playing at double speed; s4, playing control; and S5, dragging the video. A control bar is made by acquiring basic information of a live streaming video, different self-increment amounts are set in the control bar through self-increment control points, and the video transmission rate is changed; modifying the id of the local video object by logging out the video object in the browser, and enabling the back end to push the stream again; the method has the advantages that the new browser video object is generated by modifying the local video object id, and the live video stream with the start time of the dragging point and the end time of the video as the end time is realized, so that the functions of fast rewinding, fast forwarding, pausing, playing, double-speed playing and mouse dragging of the video are realized, the playing of the live video stream is conveniently adjusted manually, and the method is more convenient to use.

Description

Method for realizing real-time code stream playing control in video monitoring system
Technical Field
The invention relates to the technical field of real-time code stream playing control, in particular to a method for realizing real-time code stream playing control in a video monitoring system.
Background
With the rapid development of information technology and network applications, new things such as wireless networks, internet, multimedia, remote transmission, broadband communication, etc. have gradually changed our work and life style without suspicion. Research shows that the information obtained by human beings through vision accounts for about 70% of the information amount, the video information has the advantages of intuition, observability and the like, the application range of the video is wide, the functions are many, some videos are monitoring videos, and the monitoring videos are transmitted to a user monitoring picture in real time.
The monitoring video is generally real-time code stream transmission video data, the rate of the real-time code stream transmission video is related to the network rate, the video playing rate cannot be controlled, and functions such as backing, multiple playing, making playing and the like cannot be performed according to the user requirements, so that the monitoring video is inconvenient for the user to watch.
Disclosure of Invention
The invention aims to provide a method for realizing real-time code stream playing control in a video monitoring system in order to solve the problem that the progress of a video is difficult to adjust artificially due to the inconvenience of playing speed control of a real-time code stream video, and the method has the advantages of realizing the functions of fast rewinding, fast forwarding, pausing, playing, double-speed playing and mouse dragging of the video by adding a control bar.
The invention realizes the aim through the following technical scheme, and a method for realizing real-time code stream playing control in a video monitoring system comprises the following steps:
s1, manufacturing a video control bar: acquiring basic information of a video to be played from an application gateway interface, wherein the basic information comprises a video live broadcast address, start time and end time, a newly-built variable is used for storing the values of the start time and the end time converted from a Date format into a timestamp, the two timestamps are used as the start value and the end value of a control bar, and the character string values of the start time and the end time are used as default display information at two ends of the control bar;
s2, normal playing: the front end calls a self-defining method by using a setInterval timer, in the method, firstly, a currentTime of a current attribute value of a browser video object is obtained for comparing with a currentTime recorded by the local video object, wherein the currentTime is the currentTime attribute value of the browser video object in one second, if the two values are the same, the current video is not played, otherwise, the current video is played;
s3, double-speed playing: assigning a currentTime attribute value of a browser video object to a currentTime variable of a local video object, judging the playing speed of a video currently being played, setting different self-increments for self-incremented control points in a control bar, converting a control point value into a character type date format for displaying a default display format of the control point, connecting the video through a heartbeat interface by equipment, acquiring the playing time of the currently played video, assigning the control point variable to the local video object, and immediately calling the interface to notify a rear end to change the video transmission speed when receiving the change of the speed variable of the local video object;
s4, playing control: after receiving a command of pausing playing, firstly logging off a video object in a browser, modifying a local video object id, sending the command through an interface, informing a rear end to stop pushing a video stream, after receiving a command of replaying, informing the rear end of the position and the ending time of the current video played through the interface, and leading the rear end to push the stream again, and modifying the local video object id for regenerating the browser video object;
s5, video dragging: recording a dragging point, destroying a browser object, modifying a local video object id, informing a back end to re-push a live video stream with the dragging point as a starting time and the video end time as an end time, and after successfully receiving the video stream re-pushed by the back end, modifying the local video object id to generate the browser video object.
Preferably, in step S2, the setInterval timer is an interval call instruction, and the interval of the instruction calling the custom method is 1S.
Preferably, the currentTime attribute value of the browser video object in step S2 is used to record the elapsed time of the current device in video playing.
Preferably, the heartbeat interface in step S3 is to send a heartbeat signal through a heartbeat link at a timing between the main and standby machines, and the time interval is 50S.
Compared with the prior art, the invention has the beneficial effects that: a control bar is made by acquiring basic information of a live streaming video, different self-increment amounts are set in the control bar through self-increment control points, and the video transmission rate is changed; modifying the id of the local video object by logging out the video object in the browser, and enabling the back end to push the stream again; the method has the advantages that the new browser video object is generated by modifying the local video object id, and the live video stream with the start time of the dragging point and the end time of the video as the end time is realized, so that the functions of fast rewinding, fast forwarding, pausing, playing, double-speed playing and mouse dragging of the video are realized, the playing of the live video stream is conveniently adjusted manually, and the method is more convenient to use.
Detailed Description
The technical solutions in the embodiments of the present invention are clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A method for realizing real-time code stream playing control in a video monitoring system comprises the following steps:
s1, manufacturing a video control bar: acquiring basic information of a video to be played from an application gateway interface, wherein the basic information comprises a video live broadcast address, start time and end time, a newly-built variable is used for storing the values of the start time and the end time converted from a Date format into a timestamp, the two timestamps are used as the start value and the end value of a control bar, and the character string values of the start time and the end time are used as default display information at two ends of the control bar;
s2, normal playing: the front end calls a self-defining method by using a setInterval timer, in the method, firstly, a currentTime of a current attribute value of a browser video object is obtained to be compared with a currentTime recorded by the local video object (the currentTime is the currentTime attribute value of one second of the browser video object), if the two values are the same, the current video is not played, otherwise, the current video is played;
s3, double-speed playing: assigning a currentTime attribute value of a browser video object to a currentTime variable of a local video object, judging the playing speed of a video currently being played, setting different self-increments for self-incremented control points in a control bar, converting a control point value into a character type date format for displaying a default display format of the control point, connecting the video through a heartbeat interface by equipment, acquiring the playing time of the currently played video, assigning the control point variable to the local video object, and immediately calling the interface to notify a rear end to change the video transmission speed when receiving the change of the speed variable of the local video object;
s4, playing control: after receiving a command of pausing playing, firstly logging off a video object in a browser, modifying a local video object id, sending the command through an interface, informing a rear end to stop pushing a video stream, after receiving a command of replaying, informing the rear end of the position and the ending time of the current video played through the interface, and leading the rear end to push the stream again, and modifying the local video object id for regenerating the browser video object;
s5, video dragging: recording a dragging point, destroying a browser object, modifying a local video object id, informing a back end to re-push a live video stream with the dragging point as a starting time and the video end time as an end time, and after successfully receiving the video stream re-pushed by the back end, modifying the local video object id to generate the browser video object.
The setInterval timer in step S2 is an intermittent call instruction, the interval for calling the custom method is 1S, the currentTime attribute value of the browser video object in step S2 is used to record the elapsed time of the current device during video playing, the heartbeat interface in step S3 is to send a heartbeat signal through a heartbeat link at regular time between the main and standby machines, and the time interval is 50S.
The mode of adding the playing control bar is based on video.js, the playing control bar is a live stream based on rtmp protocol, the video.js is a general JS library embedded in a video player on a webpage, the video.js automatically detects the support condition of a browser on HTML5, and if the HTML5 is not supported, a Flash player is automatically used; the Rtmp protocol is used by Flash for the transmission of objects, video, audio, and is based on the TCP protocol or the polling HTTP protocol.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (4)

1. A method for realizing real-time code stream playing control in a video monitoring system is characterized in that: the method comprises the following steps:
s1, manufacturing a video control bar: acquiring basic information of a video to be played from an application gateway interface, wherein the basic information comprises a video live broadcast address, start time and end time, a newly-built variable is used for storing the values of the start time and the end time converted from a Date format into a timestamp, the two timestamps are used as the start value and the end value of a control bar, and the character string values of the start time and the end time are used as default display information at two ends of the control bar;
s2, normal playing: the front end calls a self-defining method by using a setInterval timer, in the method, firstly, a currentTime of a current attribute value of a browser video object is obtained for comparing with a currentTime recorded by the local video object, wherein the currentTime is the currentTime attribute value of the browser video object in one second, if the two values are the same, the current video is not played, otherwise, the current video is played;
s3, double-speed playing: assigning a currentTime attribute value of a browser video object to a currentTime variable of a local video object, judging the playing speed of a video currently being played, setting different self-increments for self-incremented control points in a control bar, converting a control point value into a character type date format for displaying a default display format of the control point, connecting the video through a heartbeat interface by equipment, acquiring the playing time of the currently played video, assigning the control point variable to the local video object, and immediately calling the interface to notify a rear end to change the video transmission speed when receiving the change of the speed variable of the local video object;
s4, playing control: after receiving a command of pausing playing, firstly logging off a video object in a browser, modifying a local video object id, sending the command through an interface, informing a rear end to stop pushing a video stream, after receiving a command of replaying, informing the rear end of the position and the ending time of the current video played through the interface, and leading the rear end to push the stream again, and modifying the local video object id for regenerating the browser video object;
s5, video dragging: recording a dragging point, destroying a browser object, modifying a local video object id, informing a back end to re-push a live video stream with the dragging point as a starting time and the video end time as an end time, and after successfully receiving the video stream re-pushed by the back end, modifying the local video object id to generate the browser video object.
2. The method for implementing real-time code stream playing control in a video monitoring system according to claim 1, wherein: the setInterval timer in step S2 is an intermittent call instruction, and the interval of calling the custom method by the instruction is 1S.
3. The method for implementing real-time code stream playing control in a video monitoring system according to claim 1, wherein: the currentTime attribute value of the browser video object in step S2 is used to record the elapsed time of the current device in video playing.
4. The method for implementing real-time code stream playing control in a video monitoring system according to claim 1, wherein: the heartbeat interface in step S3 is to send a heartbeat signal through a heartbeat link at a timing between the main and standby machines, and the time interval is 50S.
CN201910600545.9A 2019-07-04 2019-07-04 Method for realizing real-time code stream playing control in video monitoring system Active CN110602442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910600545.9A CN110602442B (en) 2019-07-04 2019-07-04 Method for realizing real-time code stream playing control in video monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910600545.9A CN110602442B (en) 2019-07-04 2019-07-04 Method for realizing real-time code stream playing control in video monitoring system

Publications (2)

Publication Number Publication Date
CN110602442A CN110602442A (en) 2019-12-20
CN110602442B true CN110602442B (en) 2021-06-04

Family

ID=68852741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910600545.9A Active CN110602442B (en) 2019-07-04 2019-07-04 Method for realizing real-time code stream playing control in video monitoring system

Country Status (1)

Country Link
CN (1) CN110602442B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115623252B (en) * 2022-12-16 2023-03-10 深圳市永兴元科技股份有限公司 Method, device and storage medium for controlling restarting and stream pushing of automatic detection of online examination

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202919A (en) * 2007-11-06 2008-06-18 深圳市同洲电子股份有限公司 Digital television receiver and intermediate part
CN103458282A (en) * 2012-06-05 2013-12-18 腾讯科技(深圳)有限公司 Video live broadcast method and live broadcast device
CN104105004A (en) * 2014-07-23 2014-10-15 上海天脉聚源文化传媒有限公司 Method and device for processing live broadcast stream
CN109660764A (en) * 2018-12-24 2019-04-19 武汉长江通信智联技术有限公司 The monitoring method of vehicle real-time video based on HTML5, apparatus and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9241103B2 (en) * 2013-03-15 2016-01-19 Voke Inc. Apparatus and method for playback of multiple panoramic videos with control codes
US11089349B2 (en) * 2017-01-20 2021-08-10 Hanwha Techwin Co., Ltd. Apparatus and method for playing back and seeking media in web browser
US10992724B2 (en) * 2017-01-20 2021-04-27 Hanwha Techwin Co., Ltd. Media playback apparatus and method including delay prevention system
CN108260014A (en) * 2018-04-12 2018-07-06 腾讯科技(上海)有限公司 A kind of video broadcasting method and terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202919A (en) * 2007-11-06 2008-06-18 深圳市同洲电子股份有限公司 Digital television receiver and intermediate part
CN103458282A (en) * 2012-06-05 2013-12-18 腾讯科技(深圳)有限公司 Video live broadcast method and live broadcast device
CN104105004A (en) * 2014-07-23 2014-10-15 上海天脉聚源文化传媒有限公司 Method and device for processing live broadcast stream
CN109660764A (en) * 2018-12-24 2019-04-19 武汉长江通信智联技术有限公司 The monitoring method of vehicle real-time video based on HTML5, apparatus and system

Also Published As

Publication number Publication date
CN110602442A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
CN104125429B (en) The adjusting method and device of video data transmission
CN106686438B (en) method, device and system for synchronously playing audio images across equipment
CN106792073B (en) Method, playback equipment and the system that the audio, video data of striding equipment is played simultaneously
CN110324643B (en) Video recording method and system
CN111010614A (en) Method, device, server and medium for displaying live caption
CN105227930B (en) Video inspection method and device in a kind of video monitoring system
CN104702563B (en) The acquisition methods and device of streaming media playing duration
CN110267053A (en) Live broadcasting method, apparatus and system
CN104967904B (en) The method and device of terminal video recording and playback
JP2015531564A (en) Playback synchronization in media title viewing group
CN105656616B (en) Method, apparatus, transmitting terminal and the receiving end of more data synchronization between devices
JP2008236321A (en) Content delivery system, and server apparatus and receiving apparatus used in content delivery system
US20160307605A1 (en) Method, device, and system of synchronously playing media file
CN106993212B (en) Method and device for playing multiple paths of videos in browser window
US10574978B1 (en) System and method for diagnosing QOE in real time communication
CN109120974A (en) A kind of method and device that audio-visual synchronization plays
JP5140952B2 (en) Content distribution system, content distribution server, content reproduction terminal, program, and content distribution method
CN109714622A (en) A kind of video data handling procedure, device and electronic equipment
TW201249185A (en) Method for dynamic adaptation of the reception bitrate and associated receiver
CN109089131A (en) A kind of record screen live broadcasting method, device, equipment and storage medium based on IOS system
WO2010017390A4 (en) Method and apparatus for scheduling interactive content in a broadcast communication system
CN104683866A (en) Playing processing method for received streaming video
CN110446113A (en) The method for playing back ppt and video flowing
CN110602442B (en) Method for realizing real-time code stream playing control in video monitoring system
US20120117265A1 (en) Method and communication system for implementing stream services, and relevant device

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
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 230051 block a, Fuhuang new vision, No. 77, Wutaishan Road, Luogang street, Baohe District, Hefei City, Anhui Province

Patentee after: Anhui Jiaoxin Technology Co.,Ltd.

Address before: 230000 9 building, science and technology investment building, 669 Changjiang West Road, Hefei, Anhui

Patentee before: ANHUI FUHUANG TECHNOLOGY Co.,Ltd.