CN109818952A - A kind of voice realized based on websocket, video partial node immediate interactive, the precisely architecture and method that counts - Google Patents

A kind of voice realized based on websocket, video partial node immediate interactive, the precisely architecture and method that counts Download PDF

Info

Publication number
CN109818952A
CN109818952A CN201910051399.9A CN201910051399A CN109818952A CN 109818952 A CN109818952 A CN 109818952A CN 201910051399 A CN201910051399 A CN 201910051399A CN 109818952 A CN109818952 A CN 109818952A
Authority
CN
China
Prior art keywords
server
client
user
media
websocket
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
CN201910051399.9A
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.)
Meidu Technology (tianjin) Co Ltd
Original Assignee
Meidu Technology (tianjin) 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 Meidu Technology (tianjin) Co Ltd filed Critical Meidu Technology (tianjin) Co Ltd
Priority to CN201910051399.9A priority Critical patent/CN109818952A/en
Publication of CN109818952A publication Critical patent/CN109818952A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of clients during playing the media resources such as audio, video, and server-side passes through the architecture and method of websocket technology and client real-time interactive, can be used for the interaction link such as audio, video inter-cut advertisement, red packet, question and answer.For this method on the basis of the long connection of websocket, client is to server-side transmitting user operation media behavior, and server-side ensures user without operation of crossing the border by data analysis, and server-side is to the corresponding interaction display of client push.It solves the problems, such as that the access of normal client end can not record user behavior and Perfect Time, avoids the rule that user is directed across triggering interaction link by dragging playing progress bar, accelerator or other technological means, improve interaction effect and validity.

Description

It is a kind of based on websocket realize voice, video partial node immediate interactive, precisely The architecture and method of statistics
Technical field:
The present invention discloses a kind of voice realized based on websocket, video partial node immediate interactive, the precisely frame that counts Structure and method belong to TCP communication technical field.
Background technique:
The interaction such as interaction pop-up advertisement, red packet, answer when playing in current audio, video field, majority is all to beat Start broadcasting when putting the page or client, front end set timing show or be played to a timing it is long by call back function when It showing, user is very easy to interact link by pushing broadcasting item or other third party's tools to skip advertisement, red packet, answer etc., Even result in direct losses.The present invention is directed to propose a kind of obtained by WebSocket technology, statistically analyze user to audio-video The behavior time of the act of operation stabs to detect the method whether user has the behavior of crossing the border, and can be very good to avoid or reduce loss.
Summary of the invention:
The purpose of the present invention is provide one kind and analyzed by websocket stroke analysis for above-mentioned background technique deficiency User ensures the timestamp of media manipulation behavior user not and can bypass the architecture and method of rule.
The present invention uses following technical scheme in order to solve the above problem:
A method of the Medias such as control audio, video are stabbed by play time based on websocket technology, include Following steps:
1, user opens when playing the front end of media resource, and front end is established this websocket with server-side and linked, and Initialize this media resource data and the Media time point data.
2, user is sent to server-side to media manipulation behavior by client, and server-side records the behavior and timestamp, and Calculate media true playing duration storage, rear to return to the behavior to client, client is received to parse after websocket message and be held Row the corresponding command.
3, when client normal play media resource, currently playing duration is transmitted to server-side by websocket, if working as When preceding playing duration reaches the interaction regular times of the media resource, then server-side issues interactive data and order to client, Client parses and shows interaction.
4, the true playing duration of client is calculated according to the timestamp that server-side records every time, verifies client terminal playing duration Whether it is consistent with the server-side record time, verification mode are as follows: Mtime and (P100time-P0time)-(zpNtime-zNtime) It is whether identical.
Wherein Mtime represents the total duration of initial media resource in step 1, and P0time represents the first play time of media Stamp, P100time represent media play ending time stamp, and zNtime indicates n-th pause play time stamp, and zpNtime indicates the N times suspend the timestamp that subsequent continued broadcasting is put.
Detailed description of the invention:
Fig. 1 is whole flow process of the user in client operation media resource.
Fig. 2 is that media resource plays triggering interacts regular process.
Specific embodiment:
In order to more detailed description it is proposed by the present invention it is a kind of based on websocket realize voice, video partial node Immediate interactive, the architecture and method precisely counted are illustrated below in conjunction with attached drawing:
Step 1) is the media such as audio, video setting interaction rule, and is stored in server-side, such as arrive in video playing Red packet interaction is popped up at 100 seconds.
Step 2), client create websocket long connection, and minute book when opening audio, the video media asset page The timestamp and media resource of secondary link are numbered, and the data such as duration, the interaction time point of the media resource are initialized.
Step 3), as shown in Figure 1, passing through when user is when client clicks the behaviors button such as " broadcasting " or " pause " For websocket to server-side current behavior, server-side receives record user behavior and server end when receiving the request after request Timestamp, and initializing playback progress is 0 second, is then returned to that client starts " to play " or " pause " etc. instructs, client End starts to play or suspend the media resources such as present video, video after receiving play instruction.
Step 4), client are returned in lasting broadcasting media by the ontimeupdate of the Media Events of HTML5 Tuning server-side sends currently playing progress, recording played progress, behavior and current service end timestamp, and amendment step 3) The playback progress of middle initialization.
Step 5) occurs client media buffering during the client terminal playing, buffers subsequent continued broadcasting and put, occurs using householder When the behaviors such as dynamic pause or actively stopping, broadcasting, current behavior is sent by accordingly adjusting back to server-side for Media Events, Server-side records behavior and current service end timestamp.
Step 6), as shown in Fig. 2, after step 2) server-side recording played progress, behavior and current service end timestamp, If current schedules trigger the interaction rule being arranged in step 1), the data stored according to server-side, analyzing user is No to there is behavior of crossing the border, if user is normal play, to client push interactive data, client shows interactive information.

Claims (4)

1. a kind of method based on websocket technical notes audio user, vision operation behavior and time, when client is opened It establishes websocket with server-side when audio, video page to link, server-side initializes this link behavior, and records client Media buffer, broadcasting, pause, interaction, stopping on end play, close a series of behaviors such as the page, and record respective behavior Timestamp.
2. user is to client based on websocket technology by server-side Reverse Turning Control client audio and video playing pausing operation Audio, the broadcasting of video media asset, pause etc. manipulate on end, first pass through webscoket to server-side and send the operation behavior, After server-side records and analyzes, respective behavior order is sent to client, client receives order line and shows corresponding effect.
3. judge whether user behavior has the method for improper operation based on user behavior timestamp and audio frequency and video media duration, The data collected using method described in claim 1, specifically: according to media total duration, user is collected by server-side Time of the act stamp, calculate user in the total duration of client terminal playing media, and compared with media resource total duration, if two Person's time is identical, determines that user behavior is normal, otherwise determines that user exists and play item, plug-in unit or third party's method by dragging It skips interaction point or accelerates the devious conduct such as media play.
4. realizing interaction based on websocket and timestamp, data are collected using method described in claim 1, using right It is required that method judges that user behavior is normal in 3, when media play duration reaches interaction set by media resource in server-side Between when, server-side then pass through websocket to client send interactive data, client, which is given, to be shown.
CN201910051399.9A 2019-01-15 2019-01-15 A kind of voice realized based on websocket, video partial node immediate interactive, the precisely architecture and method that counts Pending CN109818952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910051399.9A CN109818952A (en) 2019-01-15 2019-01-15 A kind of voice realized based on websocket, video partial node immediate interactive, the precisely architecture and method that counts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910051399.9A CN109818952A (en) 2019-01-15 2019-01-15 A kind of voice realized based on websocket, video partial node immediate interactive, the precisely architecture and method that counts

Publications (1)

Publication Number Publication Date
CN109818952A true CN109818952A (en) 2019-05-28

Family

ID=66604576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910051399.9A Pending CN109818952A (en) 2019-01-15 2019-01-15 A kind of voice realized based on websocket, video partial node immediate interactive, the precisely architecture and method that counts

Country Status (1)

Country Link
CN (1) CN109818952A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602534A (en) * 2019-09-23 2019-12-20 咪咕文化科技有限公司 Information processing method and device and computer readable storage medium
CN114125566A (en) * 2021-12-29 2022-03-01 阿里巴巴(中国)有限公司 Interaction method and system and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572524A (en) * 2010-12-29 2012-07-11 中国移动通信集团公司 Media playing and interaction method, device, server and system
US20170126776A1 (en) * 2015-10-30 2017-05-04 Evren BINGOL Providing audio data for a remote desktop protocol in a standards-based web browser
CN106791944A (en) * 2015-11-23 2017-05-31 北大方正集团有限公司 Multi-screen interaction method, multi-screen interactive device and Multi-screen interaction system
CN106851329A (en) * 2017-03-13 2017-06-13 深圳市网心科技有限公司 A kind of intelligent living broadcast interactive method and system based on connection long
CN106899872A (en) * 2017-03-10 2017-06-27 深圳市合互联技术有限责任公司 A kind of information displaying method of real-time interactive
US20170289214A1 (en) * 2016-04-04 2017-10-05 Hanwha Techwin Co., Ltd. Method and apparatus for playing media stream on web browser
CN107249145A (en) * 2017-05-05 2017-10-13 中广热点云科技有限公司 A kind of method of pushing video

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572524A (en) * 2010-12-29 2012-07-11 中国移动通信集团公司 Media playing and interaction method, device, server and system
US20170126776A1 (en) * 2015-10-30 2017-05-04 Evren BINGOL Providing audio data for a remote desktop protocol in a standards-based web browser
CN106791944A (en) * 2015-11-23 2017-05-31 北大方正集团有限公司 Multi-screen interaction method, multi-screen interactive device and Multi-screen interaction system
US20170289214A1 (en) * 2016-04-04 2017-10-05 Hanwha Techwin Co., Ltd. Method and apparatus for playing media stream on web browser
CN107277612A (en) * 2016-04-05 2017-10-20 韩华泰科株式会社 Method and apparatus for playing Media Stream in web browser
CN106899872A (en) * 2017-03-10 2017-06-27 深圳市合互联技术有限责任公司 A kind of information displaying method of real-time interactive
CN106851329A (en) * 2017-03-13 2017-06-13 深圳市网心科技有限公司 A kind of intelligent living broadcast interactive method and system based on connection long
CN107249145A (en) * 2017-05-05 2017-10-13 中广热点云科技有限公司 A kind of method of pushing video

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602534A (en) * 2019-09-23 2019-12-20 咪咕文化科技有限公司 Information processing method and device and computer readable storage medium
CN114125566A (en) * 2021-12-29 2022-03-01 阿里巴巴(中国)有限公司 Interaction method and system and electronic equipment
CN114125566B (en) * 2021-12-29 2024-03-08 阿里巴巴(中国)有限公司 Interaction method, interaction system and electronic equipment

Similar Documents

Publication Publication Date Title
CN108182607A (en) The advertisement monitoring system and method uploaded based on terminal sectional drawing
JP2008537368A (en) Method and apparatus for real-time interaction with a large number of viewers during a live program
JP5301425B2 (en) Group content presentation and system and method for organizing group communications during group content presentation
US20090183220A1 (en) Method and apparatus for providing collaborative viewing of a media stream
US7085842B2 (en) Line navigation conferencing system
JP3836030B2 (en) Method and system for calculating viewing status index of streaming delivery content
US20060259357A1 (en) Intelligent dynamic market data collection and advertising delivery system
US20090274437A1 (en) Embedding data in media metadata tracks during playback
US20130042262A1 (en) Platform-independent interactivity with media broadcasts
CN105009599A (en) Automatic identification of a notable moment
CN111277854A (en) Display method and device of virtual live broadcast room, electronic equipment and storage medium
CN109005422A (en) Video comments processing method and processing device
CN104468623A (en) Information display method based on online live broadcast, related device and related system
KR20090082402A (en) System and method for regulating overlapping media messages
CN1980373A (en) Composition type interacting video-performance system
CN109818952A (en) A kind of voice realized based on websocket, video partial node immediate interactive, the precisely architecture and method that counts
Branch et al. Modeling interactive behaviour of a video based multimedia system
CN102364952A (en) Method for processing audio and video synchronization in simultaneous playing of a plurality of paths of audio and video
US20150208020A1 (en) Voiceover system and method
CN109714622B (en) Video data processing method and device and electronic equipment
CN101170691A (en) A method, system and STB for monitoring IPTV service quality
CN106303621A (en) The insertion method of a kind of video ads and device
US20220188877A1 (en) Methods and systems for video game live streaming
CN112351295A (en) Live broadcast playback synchronization method for online education
CN106682953A (en) Advertisement pushing method and 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190528