WO2017201938A1 - 一种轮询控制方法、装置及系统 - Google Patents
一种轮询控制方法、装置及系统 Download PDFInfo
- Publication number
- WO2017201938A1 WO2017201938A1 PCT/CN2016/100751 CN2016100751W WO2017201938A1 WO 2017201938 A1 WO2017201938 A1 WO 2017201938A1 CN 2016100751 W CN2016100751 W CN 2016100751W WO 2017201938 A1 WO2017201938 A1 WO 2017201938A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- polling
- service
- target
- trigger condition
- playing state
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/812—Monomedia components thereof involving advertisement data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
Definitions
- the embodiments of the present invention relate to the field of network video playback technologies, and in particular, to a polling control method, apparatus, and system.
- the client In the process of the user playing the video, the client needs to poll whether it needs to perform a certain service according to a certain frequency (polling refers to whether the client repeatedly asks whether a certain service needs to be performed), and the frequency is generally not changeable.
- the inventor of the present application found in the process of studying the present application that if the polling frequency is too low, the command of the video service cannot be executed in time, and if the polling frequency is too high, the client performance is additionally lost. For example, during video playback, when an advertisement is placed at a specified time on the video timeline, the client needs to perform polling according to a certain frequency during the video playing process, and check whether the current playing time is the advertising time, and if so, start Play the ad and continue to poll the execute ad break command while the ad is playing. If the polling frequency is too low, it will cause the video service command to be executed in time, causing the advertisement to lag. If the polling frequency is too high, it will cause additional loss of client performance. How to control the polling frequency has become a technical problem to be solved.
- the embodiment of the present application provides a polling control method, apparatus, and system using the following technical solutions.
- the first technical solution adopted by the embodiment of the present application is: a polling control method, where the method includes:
- the target polling service is polled according to a polling frequency corresponding to the polling trigger condition.
- the first technical solution adopted by the embodiment of the present application further includes: when the polling triggering conditions of the target polling service are different, the polling frequency corresponding to the polling triggering condition is also different.
- the first technical solution adopted by the embodiment of the present application further includes: the polling triggering condition of the target polling service is an advertisement playing state and a non-advertising playing state.
- the first technical solution adopted by the embodiment of the present application further includes: the target polling service is a service for playing an advertisement.
- the first technical solution adopted by the embodiment of the present application further includes: a polling trigger condition of the target polling service is a full-screen playing state and a non-full-screen playing state.
- the first technical solution adopted by the embodiment of the present application further includes: the target polling service is a service for comment update.
- the second technical solution adopted by the embodiment of the present application is: a polling control device, where the device includes: a polling setting module, a playing state judging module, and a polling module;
- the polling setting module is configured to set a polling trigger condition of the target polling service and a polling frequency corresponding to the polling triggering condition;
- the playing state determining module is configured to determine, during the video playing, whether the polling trigger condition of the target polling service is met;
- the polling module is configured to poll the target polling service according to a polling frequency corresponding to the polling trigger condition.
- the second technical solution adopted by the embodiment of the present application further includes: when the playing status determining module determines that the polling triggering condition of the target polling service is different, the polling setting module sets the corresponding to the polling triggering condition.
- the polling frequency is also different.
- the second technical solution adopted by the embodiment of the present application further includes: the polling trigger condition corresponding to the target polling service set by the polling setting module is an advertisement playing state and a non-advertising playing state.
- the second technical solution adopted by the embodiment of the present application further includes: the target polling service polled by the polling module is a service for playing an advertisement.
- the second technical solution adopted by the embodiment of the present application further includes: the polling trigger condition corresponding to the target polling service set by the polling setting module is a full-screen playing state and a non-full-screen playing state.
- the second technical solution adopted by the embodiment of the present application further includes: the target polling service polled by the polling module is a service for comment update.
- the third technical solution adopted by the embodiment of the present application is: a polling control system, including a client and a server, where the client includes: a polling setting module, a playing state judging module, and a polling module;
- the polling setting module is configured to set a polling trigger condition of the target polling service and a polling frequency corresponding to the polling triggering condition;
- the playing state determining module is configured to determine, during the video playing, whether the polling trigger condition of the target polling service is met;
- the polling module is configured to poll the target polling service according to a polling frequency corresponding to the polling trigger condition
- the server is configured to provide the client with the interstitial content of the target polling service.
- an electronic device including:
- At least one processor and,
- the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
- the target polling service is polled according to a polling frequency corresponding to the polling trigger condition.
- the fourth technical solution adopted by the embodiment of the present application further includes: when the polling triggering conditions of the target polling service are different, the polling frequency corresponding to the polling triggering condition is also different.
- the fourth technical solution adopted by the embodiment of the present application further includes: the polling triggering condition of the target polling service is an advertisement playing state and a non-advertising playing state.
- the fourth technical solution adopted by the embodiment of the present application further includes: the target polling service is a service for playing an advertisement.
- the fourth technical solution adopted by the embodiment of the present application further includes: the polling trigger condition of the target polling service is a full-screen playing state and a non-full-screen playing state.
- the fourth technical solution adopted by the embodiment of the present application further includes: the target polling service is a service for comment update.
- the fifth technical solution adopted by the embodiment of the present application is: a non-transitory computer readable storage medium, where the non-transitory computer readable storage medium stores computer executable instructions for:
- the target polling service is polled according to a polling frequency corresponding to the polling trigger condition.
- the fifth technical solution adopted by the embodiment of the present application further includes: when the polling triggering conditions of the target polling service are different, the polling frequency corresponding to the polling triggering condition is also different.
- the fifth technical solution adopted by the embodiment of the present application further includes: the polling triggering condition of the target polling service is an advertisement playing state and a non-advertising playing state.
- the fifth technical solution adopted by the embodiment of the present application further includes: the target polling service is a service for playing an advertisement.
- the fifth technical solution adopted by the embodiment of the present application further includes: the polling trigger condition of the target polling service is a full-screen playing state and a non-full-screen playing state.
- the fifth technical solution adopted by the embodiment of the present application further includes: the target polling service is a service for comment update.
- a sixth technical solution adopted by the embodiment of the present application further includes: a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions When the program instructions are executed by a computer, the computer is caused to perform the method described in any one of the first technical solutions adopted by the embodiments of the present application.
- the embodiment of the present application has the following advantages: the embodiment of the present application sets the polling frequency of the target polling service and the polling trigger condition of the target polling service when the polling of the target polling service is satisfied.
- the trigger condition is met, the target polling service is polled according to the polling frequency corresponding to the polling trigger condition, so that the polling frequency can be effectively controlled according to actual needs, thereby avoiding extra loss of the client performance and improving the user's video playing experience.
- Figure 1 shows the steps of the method of the first embodiment of the present application.
- Figure 3 is a diagram showing the steps of the method of the third embodiment of the present application.
- Figure 4 is a schematic illustration of the apparatus of the first and second embodiments of the present application.
- FIG. 5 is a schematic diagram of a device according to a third embodiment of the present application.
- FIG. 6 is a schematic diagram of a system according to a fourth embodiment of the present application.
- FIG. 7 is a schematic diagram of a system implementation according to a fourth embodiment of the present application.
- FIG. 8 is a schematic structural diagram of hardware of an electronic device according to a fifth embodiment of the present application.
- the polling control method of the first embodiment of the present application is performed on a client, and includes the following steps:
- Step S1 setting the polling trigger condition of the target polling service and the polling frequency of the target polling service.
- polling refers to the client repeatedly asking whether a service needs to be performed.
- the target polling service described in step S1 refers to a certain service that needs to be performed, such as a service for advertising broadcast, a service for comment update, and the like.
- the polling frequency refers to the number of times the client polls a target polling service per unit time.
- the polling frequency corresponding to the polling trigger condition is also different.
- Step S2 During the video playing process, it is determined whether the polling trigger condition of the target polling service is satisfied.
- Step S3 If the polling trigger condition of the target polling service is satisfied, the target polling service is polled according to a polling frequency corresponding to the polling trigger condition.
- step S3 during the video playing process, when the polling trigger condition of the target polling service obtained by the client meets the preset, the polling of the target polling service is started, until the polling of the target polling service Condition changes.
- the client plays the corresponding interstitial content.
- the interstitial content refers to the content inserted by a certain service during the video playing process.
- the interstitial content of the service of the advertisement playing during the video playing process is an advertisement
- the interstitial content of the service of the comment update in the video playing process is a user comment.
- the client can implement multiple polls depending on the target polling service. For example, polling of the ad serving service, polling of the comment update service.
- the method according to the first embodiment of the present application sets the polling frequency of the target polling service and the polling trigger condition of the target polling service, and when the polling trigger condition of the target polling service is satisfied, the triggering condition according to the polling
- the corresponding polling frequency polls the target polling service, so that the polling frequency can be effectively controlled according to actual needs, avoiding extra loss of client performance and improving the user's video playing experience.
- the polling control method of the second embodiment of the present application is executed on the client, and includes the following steps:
- Step S10 setting a polling trigger condition of the target polling service to an advertisement playing state and a non-advertising playing state, and setting a polling frequency corresponding to the polling triggering condition.
- polling refers to a service in which the client repeatedly asks whether or not advertisement play is required.
- the target polling service described in step S10 refers to a service that needs to be played.
- the polling frequency refers to the number of times the client polls the target polling service per unit time.
- the polling frequency corresponding to the polling trigger condition is also different.
- the polling trigger condition of the target polling service is an advertisement playing state and a non-advertising playing state.
- the target polling service is a service for advertisement playing.
- Step S20 During the video playing process, it is determined whether the polling trigger condition of the target polling service is satisfied.
- the polling trigger condition is the ad playing state, then when the video plays into the ad play state In the state, the client polls the target polling service at a certain frequency. If the polling trigger condition is a non-advertising play state, when the video play enters the non-ad play state, the client polls the target polling service at a certain frequency.
- Step S30 If the polling trigger condition of the target polling service is satisfied, the target polling service is polled according to the polling frequency corresponding to the polling trigger condition.
- step S30 during the video playing process, when the polling trigger condition of the target polling service obtained by the client meets the preset, the polling of the target polling service is started until the polling trigger condition of the target polling service is changed.
- the target polling service is a service for the advertisement to play
- the polling trigger condition of the target polling service is the advertisement playing state and the non-advertising playing state
- the change of the polling triggering condition refers to the switching of the advertisement playing state to the non-advertising playing state.
- the non-ad play state switches to the ad play state.
- the time when the polling trigger condition is changed is synchronized with the presentation time of the interstitial content.
- the interstitial content refers to an advertisement. Therefore, during the polling process, if the presentation time of the interstitial content (that is, the time when the polling trigger condition is changed) is entered, the client starts to play the advertisement. If the advertisement playing state is switched to the non-advertising playing state, the client polls the target polling service (the service of the advertisement playing) according to the polling frequency corresponding to the non-advertising playing state.
- the method according to the second embodiment of the present application polls the target polling service according to a polling frequency corresponding to a polling trigger condition by setting a polling frequency of a target polling service and a polling trigger condition, so that The polling frequency is effectively controlled according to actual needs.
- the time when the polling trigger condition is changed is synchronized with the display time of the interstitial content, so that the advertisement insertion is timely in the video playing process.
- the polling control method of the third embodiment of the present application is implemented on a client, and includes the following contents:
- Step S100 setting a polling trigger condition of the target polling service to a full-screen playing state and a non-full-screen playing state, setting a polling frequency corresponding to the polling triggering condition, and setting an insertion content presentation time.
- polling refers to the client repeatedly asking whether it is necessary to make a comment.
- New service refers to a service that needs to be updated by the comment, that is, the client requests the network side to download the user comment.
- In-stream content presentation time refers to when the client displays user comments on its interface.
- the polling frequency refers to the number of times the client polls the target polling service per unit time.
- the client can display more user comments in the full-screen playing state than the non-full-screen playing state, so that the polling frequency corresponding to the full-screen playing state can be set lower than the non-full screen.
- the polling frequency corresponding to the playback status Since the polling trigger condition of the target polling service is greatly affected by the user operation, that is, the user can switch between the full-screen playing state and the non-full-screen playing state at any time according to his own needs, so the polling trigger condition changes time and The presentation time of in-stream content is difficult to synchronize. In order to improve the fluency of playing user comments, it is necessary to separately set the insertion time of the inserted content.
- the polling frequency of the target polling service can be set on the client according to actual needs, and the polling trigger condition of the target polling service is the current video playing state.
- the polling frequency corresponding to the polling trigger condition is also different.
- the polling trigger condition of the target polling service is a full-screen playing state and a non-full-screen playing state.
- the target polling service is a service that reviews updates.
- Step S200 During the video playing process, it is determined whether the polling trigger condition of the target polling service is satisfied.
- Step S300 If the polling trigger condition of the target polling service is satisfied, the target polling service is polled according to a polling frequency corresponding to the polling trigger condition.
- Step S400 During the video playing process, it is determined whether the set insertion time of the inserted content is reached, and if the set time of the inserted content is reached, the inserted content is played in the currently played video.
- the interstitial content played by the client is a user comment (a text symbol, an emoticon, etc. displayed on the video interface during video playback), but is not limited to user comments.
- the method according to the third embodiment of the present application sets a polling trigger condition of the target polling service, and Polling triggering conditions correspond to the polling frequency and the insertion content display time, so that the polling frequency can be effectively controlled according to actual needs.
- the client polls the target polling service according to the polling frequency corresponding to the polling trigger condition, that is, continuously polls whether the user comment needs to be updated, and the client inserts according to the setting.
- Content presentation time plays user reviews, which helps to improve the user experience of viewing user reviews.
- the first embodiment of the present application is a polling control apparatus, including a polling setting module 101, a playing state judging module 102, and a polling module 103.
- the polling setting module 101 is configured to set a polling trigger condition of the target polling service and a polling frequency of the target polling service;
- the playing state determining module 102 is configured to determine whether the target polling service is satisfied. Polling trigger condition; the polling module 103 polls the target polling service according to a polling frequency corresponding to a polling trigger condition.
- the playback status determination module 102 obtains the polling trigger condition of the target polling service according to the preset, the polling frequency execution instruction under the polling trigger condition is issued to the polling module 103.
- the polling module 103 then performs a polling frequency corresponding to the polling trigger condition until the polling trigger condition of the target polling service changes.
- the device sets the polling trigger condition of the target polling service and the polling frequency corresponding to the polling triggering condition by the polling setting module 101, and when the playing state determining module 102 determines that the target polling is satisfied
- the polling module 103 polls the target polling service according to the polling frequency corresponding to the polling triggering condition, so that the polling frequency can be effectively controlled according to actual needs, thereby improving the user experience.
- the second embodiment of the present application is a polling control apparatus, including a polling setting module 101, a playing state judging module 102, and a polling module 103.
- the polling setting module 101 is configured to set a polling trigger condition of the target polling service and a polling frequency of the target polling service;
- the playing state determining module 102 is configured to determine whether the target polling is satisfied.
- the polling trigger condition of the service; the polling module 103 polls the target polling service according to a polling frequency corresponding to the polling trigger condition.
- the polling trigger condition set by the polling setting module 101 is an advertisement playing state and a non-advertising playing state.
- the playback status determination module 102 obtains the polling trigger condition of the target polling service according to the preset, the polling frequency execution instruction under the polling trigger condition is issued to the polling module 103.
- the polling module 103 then performs a polling frequency corresponding to the polling trigger condition until the polling trigger condition of the target polling service changes.
- the polling device can be operated as follows:
- the polling setting module 101 sets the polling
- the triggering condition is a non-advertising playing state and an advertisement playing state
- the polling frequency of the non-advertising playing state is set to 1 time/second by the polling setting module 101
- the polling setting state is set by the polling setting module 101.
- the frequency is 10 times/second.
- the play status determination module 102 When the play status determination module 102 obtains the polling trigger condition as the non-advertising play status, the play status determination module 102 issues a polling frequency execution instruction to the polling module 103 under the polling trigger condition.
- the polling module 103 performs a polling frequency of 1 time/second until the polling trigger condition changes. If the polling condition is the advertisement playing state, it is judged that the playing of the video enters the playing time of the advertisement, and the polling module 103 performs the polling frequency of 10 times/second until the polling trigger condition is changed. At the same time, the advertising content is played.
- the device sets the polling trigger condition of the target polling service to the advertisement playing state and the non-advertising playing state through the polling setting module 101, and sets the polling frequency corresponding to the polling triggering condition.
- the play status determining module 102 determines whether the polling trigger condition of the target polling service is satisfied, and polls the target polling service according to the polling frequency corresponding to the polling trigger condition by the polling module 103, so that The effective control of the polling frequency is implemented, so that the advertisement insertion is timely in the video playing process, and the extra loss of the client performance is avoided.
- the third embodiment of the present application is a polling control apparatus, including a polling setting module 101, a playing state judging module 102, and a polling module 103.
- the polling setting module 101 is configured to set a polling trigger condition of the target polling service and a polling frequency corresponding to the polling triggering condition;
- the playing state determining module 102 is configured to determine whether the target polling is satisfied.
- the polling trigger condition of the service; the polling module 103 polls the target polling service according to a polling frequency corresponding to the polling trigger condition.
- the device further includes a presentation time setting module 104, configured to set a presentation time of the inserted content.
- a presentation time setting module 104 configured to set a presentation time of the inserted content.
- the device further includes a time judging module 105, configured to determine, during the video playing process, whether the display time of the set interstitial content is reached, and if the set time of the inserted interstitial content is reached, play in the currently playing video. Insert content.
- a time judging module 105 configured to determine, during the video playing process, whether the display time of the set interstitial content is reached, and if the set time of the inserted interstitial content is reached, play in the currently playing video. Insert content.
- the polling trigger condition set by the polling setting module 101 is a full-screen playing state and a non-full-screen playing state.
- the polling device When the inserted content of the play is a user comment, the polling device operates as follows:
- the presentation time setting module 104 sets the presentation time of the interstitial content (for example, the video duration is 10 minutes, the interstitial content presentation time is the 1st minute, the 4th minute, the 7th minute, the 9th minute); the polling setting is performed.
- the module 101 sets the polling trigger condition to the full-screen playing state and the non-full-screen playing state; the polling setting module 101 sets the polling frequency of the full-screen playing state to 1 time/minute; and is set by the polling setting module 101.
- the polling frequency of the non-full-screen playback state is 1 time/10 seconds.
- the play status determination module 102 When the play status determination module 102 obtains the polling trigger condition provided by the client 100 as the non-full-screen play status, the play status determination module 102 issues a polling frequency execution instruction under the polling trigger condition to the polling module 103.
- the polling module 103 performs a polling frequency of 1/10th until the polling trigger condition changes.
- the time judging module 105 judges whether the corresponding interstitial content presentation time is reached during the video playing, and if so, plays the user comment. If the polling trigger condition is the full-screen playing state, the polling module 103 performs the polling frequency of 1 time/minute until the polling trigger condition changes. At the same time, the time judging module 105 determines whether the corresponding interstitial content display time is reached during the video playing process, if Yes, the user comment is played.
- the device sets the presentation time of the inserted content by the presentation time setting module 104, and determines whether the display time of the set insertion content is reached by the time determination module 105, which is beneficial for polling the target.
- User comments are played smoothly when the service is polled (ie, when polling if user comments are to be updated).
- FIG. 6 it is a schematic diagram of a polling control system according to a fourth embodiment of the present application.
- the polling control system includes a polling trigger condition for playing video and interstitial content, setting a target polling service, setting a polling frequency corresponding to a polling trigger condition, and setting a client 100 for an interstitial content presentation time. Also included is a server 200 for providing video, advertisements, and user reviews (interstitial content) to the client 100. The client 100 and the server 200 exchange data through the network.
- the client 100 includes a polling setting module 101, a playing state judging module 102, and a polling module 103.
- the polling setting module 101 is configured to set a polling trigger condition of the target polling service and a polling frequency corresponding to the polling triggering condition;
- the playing state determining module 102 is configured to determine whether the target polling is satisfied.
- the polling module 103 is configured to poll the target polling service according to a polling frequency corresponding to the polling trigger condition.
- the client 100 further includes a presentation time setting module 104, configured to set a presentation time of the inserted content.
- a presentation time setting module 104 configured to set a presentation time of the inserted content.
- the client 100 further includes a time judging module 105, and the time judging module 105 is configured to determine, during the video playing process, whether the set time of the inserted interstitial content is reached, if the set interstitial content is reached. Show time, play the in-stream content in the currently playing video.
- the polling frequency of the target polling service can be set by the polling setting module 101 and/or the server 200 of the client 100.
- the polling trigger condition of the target polling service can be set by the polling setting module 101 and/or the server 200 of the client 100.
- the presentation time of the interstitial content can be set by the presentation time setting module 104 and/or the server 200 of the client 100.
- Client 100 is playing During the video, the video proceeds from the screen A to the screen B after a certain time T, and the client 100 polls the target polling service according to the set polling trigger condition, the polling frequency, and the interstitial content presentation time, that is, the video.
- the polling trigger condition is satisfied during the playback of the client 100, the client 100 judges at a certain time (polling frequency) whether it is necessary to update the user comment.
- the polling system operates as follows:
- the presentation time setting module 104 sets the presentation time of the insertion content (for example, the video duration is 10 minutes, and the insertion content presentation time is the 1st minute, the 4th minute, the 7th minute, the 9th minute.
- the setting of the polling trigger by the polling setting module 101 is a full-screen playing state and a non-full-screen playing state; the polling setting module 101 sets the polling frequency of the full-screen playing state to 1 time/minute; The inquiry setting module 101 sets the polling frequency of the non-full-screen playback state to 1 time/10 seconds.
- the playing state judging module 102 When the playing state judging module 102 obtains the polling condition provided by the client 100 as the non-full-screen playing state, the playing state judging module 102 issues a polling frequency execution command under the polling condition to the polling module 103.
- the polling module 103 performs a polling frequency of 1/10th until the polling trigger condition changes.
- the time judging module 105 judges whether the corresponding interstitial content presentation time is reached during the video playing, and if so, the client 100 plays the user comment. If the polling condition provided by the client 100 is the full-screen playing state, the polling module 103 performs a polling frequency of 1 time/minute until the polling trigger condition changes. At the same time, the time judging module 105 judges whether the corresponding interstitial content presentation time is reached during the video playing, and if so, the client 100 plays the user comment.
- the insertion time, the polling frequency, and the polling trigger condition may be set by the client 100, and the display time, the polling frequency, and the round of the inserted content may also be set by the server 200.
- the trigger condition is queried, so that the management of the polling can be implemented remotely, and the management efficiency of the entire system is improved.
- FIG. 8 is a schematic diagram showing the hardware structure of an electronic device according to a fifth embodiment of the present application.
- the electronic device according to the fifth embodiment of the present application includes: one or more processors 610 and a memory 620. Take a processor 610 as an example.
- the device may also include an input device 630 and an output device 640.
- the processor 610, the memory 620, the input device 630, and the output device 640 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
- the memory 620 is a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules.
- the processor 610 executes various functional applications and data processing of the electronic device by running non-transitory software programs, instructions, and modules stored in the memory 620, that is, the processing method of the above method embodiments.
- the memory 620 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data or the like.
- memory 620 can include high speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
- memory 620 can optionally include memory remotely located relative to processor 610, which can be connected to the processing device over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- Input device 630 can receive input digital or character information and generate a signal input.
- the output device 640 can include a display device such as a display screen.
- the one or more modules are stored in the memory 620 and, when executed by the one or more processors 610, perform:
- the polling frequency corresponding to the polling triggering condition is also different.
- the polling trigger condition of the target polling service is an advertisement playing state and a non-advertising playing state.
- the target polling service is a service for advertisement playing.
- the polling trigger condition of the target polling service is a full-screen playing state and a non-full-screen playing state.
- the target polling service is a service that reviews updates.
- the electronic device of the fifth embodiment of the present application exists in various forms including, but not limited to:
- Mobile communication devices These devices are characterized by mobile communication functions and are mainly aimed at providing voice and data communication.
- Such terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
- Ultra-mobile PC devices These devices belong to the category of personal computers, have computing and processing functions, and generally have mobile Internet access.
- Such terminals include: PDAs, MIDs, and UMPC devices, such as the iPad.
- Portable entertainment devices These devices can display and play multimedia content. Such devices include: audio, video players (such as iPod), handheld game consoles, e-books, and smart toys and portable car navigation devices.
- the server A device that provides computing services.
- the server consists of a processor, hard disk, memory, system bus, etc.
- the server is similar to a general-purpose computer architecture, but because of the need to provide highly reliable services, processing power, stability, and reliability. Security, scalability, manageability and other aspects are high.
- the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- a sixth embodiment of the present application discloses a non-transitory (non-volatile) computer storage medium storing computer-executable instructions for performing the above-described embodiments of any of the method embodiments. method.
- the computer executable instructions are used to set a polling trigger condition of the target polling service and a polling frequency of the target polling service. During the video playback, it is determined whether the polling trigger condition of the target polling service is satisfied. If the polling trigger condition of the target polling service is satisfied, the target polling service is polled according to a polling frequency corresponding to the polling trigger condition.
- the polling frequency corresponding to the polling triggering condition is also different.
- the polling trigger condition of the target polling service is an advertisement playing state and a non-advertising playing state.
- the target polling service is a service for advertisement playing.
- the polling trigger condition of the target polling service is a full-screen playing state and a non-full-screen playing state.
- the target polling service is a service that reviews updates.
- a seventh embodiment of the present application discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer
- the computer is caused to perform any of the methods described in the first/second/third embodiment of the present application.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请实施例公开了一种轮询控制方法、装置及系统,涉及网络视频播放技术领域,用于控制轮询频率。所述方法包括:设定目标轮询服务的轮询触发条件和与所述轮询触发条件对应的轮询频率;在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件;如果满足所述目标轮询服务的轮询触发条件,根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。本申请实施例可以根据实际需要来设定轮询频率,从而提升了用户的使用体验。
Description
交叉引用
本申请基于申请号为CN201610365028.4、申请日为2016年05月27日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
本申请实施例涉及网络视频播放技术领域,尤其涉及一种轮询控制方法、装置及系统。
在用户播放视频的过程中,客户端需要按照一定的频率轮询是否需要进行某项服务(轮询指的是客户端反复询问是否需要进行某项服务),这个频率一般是不可变化的。
本申请的发明人在研究本申请的过程中发现,如果轮询频率过低就会造成不能及时执行视频服务的命令,轮询频率过高则会导致客户端性能额外损耗。例如,在视频播放过程中,有广告投放在视频时间轴的指定时刻,那么在视频播放过程中客户端需要按照一定的频率执行轮询,检查当前播放时间是否为广告投放时间,如果是则开始播放广告,并在播放广告过程中持续轮询执行广告插播命令。如果轮询频率过低就会造成不能及时执行视频服务的命令,导致广告播放滞后。而如果轮询频率过高则会导致客户端性能额外损耗。如何控制轮询频率成为亟待解决的技术问题。
发明内容
为了控制轮询频率,本申请实施例提供一种轮询控制方法、装置及系统采用了以下的技术方案。
本申请实施例采取的第一技术方案为:一种轮询控制方法,所述方法包括:
设定目标轮询服务的轮询触发条件和与所述轮询触发条件对应的轮询频率;
在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件;
如果满足所述目标轮询服务的轮询触发条件,根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。
本申请实施例采取的第一技术方案还包括:当所述目标轮询服务的轮询触发条件不同时,与所述轮询触发条件对应的轮询频率也不同。
本申请实施例采取的第一技术方案还包括:所述目标轮询服务的轮询触发条件为广告播放状态和非广告播放状态。
本申请实施例采取的第一技术方案还包括:所述目标轮询服务为广告播放的服务。
本申请实施例采取的第一技术方案还包括:所述目标轮询服务的轮询触发条件为全屏播放状态和非全屏播放状态。
本申请实施例采取的第一技术方案还包括:所述目标轮询服务为评论更新的服务。
本申请实施例采取的第二技术方案为:一种轮询控制装置,所述装置包括:轮询设定模块、播放状态判断模块和轮询模块;
所述轮询设定模块用于设定目标轮询服务的轮询触发条件和与所述轮询触发条件对应的轮询频率;
所述播放状态判断模块用于在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件;
如果满足所述目标轮询服务的轮询触发条件,所述轮询模块用于根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。
本申请实施例采取的第二技术方案还包括:当所述播放状态判断模块判断出目标轮询服务的轮询触发条件不同时,所述轮询设定模块设定的与轮询触发条件对应的轮询频率也不同。
本申请实施例采取的第二技术方案还包括:所述轮询设定模块设定的与目标轮询服务相对应的轮询触发条件为广告播放状态和非广告播放状态。
本申请实施例采取的第二技术方案还包括:所述轮询模块轮询的目标轮询服务为广告播放的服务。
本申请实施例采取的第二技术方案还包括:所述轮询设定模块设定的与目标轮询服务相对应的轮询触发条件为全屏播放状态和非全屏播放状态。
本申请实施例采取的第二技术方案还包括:所述轮询模块轮询的目标轮询服务为评论更新的服务。
本申请实施例采取的第三技术方案为:一种轮询控制系统,包括客户端和服务器,所述客户端包括:轮询设定模块、播放状态判断模块和轮询模块;
所述轮询设定模块用于设定目标轮询服务的轮询触发条件和与所述轮询触发条件对应的轮询频率;
所述播放状态判断模块用于在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件;
如果满足所述目标轮询服务的轮询触发条件,所述轮询模块用于根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务;
所述服务器用于向所述客户端提供所述目标轮询服务的插播内容。
本申请实施例采取的第四技术方案为:一种电子设备,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:
设定目标轮询服务的轮询触发条件和与所述轮询触发条件对应的轮询频率;
在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件;
如果满足所述目标轮询服务的轮询触发条件,根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。
本申请实施例采取的第四技术方案还包括:当所述目标轮询服务的轮询触发条件不同时,与所述轮询触发条件对应的轮询频率也不同。
本申请实施例采取的第四技术方案还包括:所述目标轮询服务的轮询触发条件为广告播放状态和非广告播放状态。
本申请实施例采取的第四技术方案还包括:所述目标轮询服务为广告播放的服务。
本申请实施例采取的第四技术方案还包括:所述目标轮询服务的轮询触发条件为全屏播放状态和非全屏播放状态。
本申请实施例采取的第四技术方案还包括:所述目标轮询服务为评论更新的服务。
本申请实施例采取的第五技术方案为:一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于:
设定目标轮询服务的轮询触发条件和与所述轮询触发条件对应的轮询频率;
在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件;
如果满足所述目标轮询服务的轮询触发条件,根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。
本申请实施例采取的第五技术方案还包括:当所述目标轮询服务的轮询触发条件不同时,与所述轮询触发条件对应的轮询频率也不同。
本申请实施例采取的第五技术方案还包括:所述目标轮询服务的轮询触发条件为广告播放状态和非广告播放状态。
本申请实施例采取的第五技术方案还包括:所述目标轮询服务为广告播放的服务。
本申请实施例采取的第五技术方案还包括:所述目标轮询服务的轮询触发条件为全屏播放状态和非全屏播放状态。
本申请实施例采取的第五技术方案还包括:所述目标轮询服务为评论更新的服务。
本申请实施例采取的第六技术方案还包括:一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行本申请实施例采取的第一技术方案中任一种所述的方法。
与现有技术相比,本申请实施例有以下优点:本申请实施例通过设定目标轮询服务的轮询频率以及目标轮询服务的轮询触发条件,当满足目标轮询服务的轮询触发条件时,按照与轮询触发条件对应的轮询频率对目标轮询服务进行轮询,这样可以根据实际需要对轮询频率进行有效管控,避免客户端性能额外损耗,提升用户的视频播放体验。
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。
图1为本申请第一实施例所述方法的各步骤。
图2为本申请第二实施例所述方法的各步骤。
图3为本申请第三实施例所述方法的各步骤。
图4为本申请第一和第二实施例所述装置的示意图。
图5为本申请第三实施例所述装置的示意图。
图6为本申请第四实施例所述系统的示意图。
图7为本申请第四实施例所述系统实施的示意图。
图8为本申请第五实施例所述电子设备的硬件结构示意图。
为了便于理解本申请,下面将参照相关附图对本申请进行更全面的描述。附图中给出了本申请的较佳实施例。但是,本申请可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使对本申请的公开内容的理解更加透彻全面。
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。
参考图1,是本申请第一实施例所述方法的流程图。本申请第一实施例的轮询控制方法,该方法在客户端执行,包括以下步骤:
步骤S1:设定目标轮询服务的轮询触发条件和目标轮询服务的轮询频率。
在本申请第一实施例中,轮询指的是客户端反复询问是否需要进行某项服务。步骤S1所述的目标轮询服务,指的是需要进行的某项服务,例如广告播放的服务、评论更新的服务等。轮询频率指的是单位时间内客户端轮询某一目标轮询服务的次数。
当所述目标轮询服务的轮询触发条件不同时,与所述轮询触发条件对应的轮询频率也不同。
步骤S2:在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件。
步骤S3:如果满足所述目标轮询服务的轮询触发条件,根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。
对于步骤S3,在视频播放过程中,客户端获得的目标轮询服务的轮询触发条件符合预设时,开始实施目标轮询服务的轮询,直到目标轮询服务的轮询触
发条件改变。在轮询过程中,如果进入到插播内容的展示时间,客户端播放相应的插播内容。插播内容指的是,某项服务在视频播放过程中插播的内容,例如,广告播放的服务在视频播放过程中的插播内容为广告,评论更新的服务在视频播放过程中的插播内容为用户评论。在视频播放过程中,客户端可以根据目标轮询服务的不同实施多种轮询。例如,广告播放服务的轮询、评论更新服务的轮询。
本申请第一实施例所述方法通过设定目标轮询服务的轮询频率以及目标轮询服务的轮询触发条件,当满足目标轮询服务的轮询触发条件时,按照与轮询触发条件对应的轮询频率对目标轮询服务进行轮询,这样可以根据实际需要对轮询频率进行有效管控,避免客户端性能额外损耗,提升用户的视频播放体验。
参考图2,是本申请第二实施例所述方法的流程图。本申请第二实施例的轮询控制方法,该方法在客户端执行,包括以下步骤:
步骤S10:设定目标轮询服务的轮询触发条件为广告播放状态和非广告播放状态,设定与轮询触发条件对应的轮询频率。
在本申请第二实施例中,轮询指的是客户端反复询问是否需要进行广告播放的服务。步骤S10所述的目标轮询服务,指的是需要进行的广告播放的服务。轮询频率指的是单位时间内客户端轮询目标轮询服务的次数。
当所述目标轮询服务的轮询触发条件不同时,与所述轮询触发条件对应的轮询频率也不同。
在本申请第二实施例中,所述目标轮询服务的轮询触发条件为广告播放状态和非广告播放状态。
在本申请第二实施例中,所述目标轮询服务为广告播放的服务。
步骤S20:在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件。
例如,轮询触发条件是广告播放状态,那么当视频播放进入到广告播放状
态时,客户端以一定的频率轮询所述目标轮询服务。如果轮询触发条件是非广告播放状态,那么当视频播放进入到非广告播放状态时,客户端以一定的频率轮询所述目标轮询服务。
步骤S30:如果满足所述目标轮询服务的轮询触发条件,根据与轮询触发条件对应的轮询频率轮询所述目标轮询服务。
对于步骤S30,在视频播放过程中,客户端获得的目标轮询服务的轮询触发条件符合预设时,开始实施目标轮询服务的轮询,直到目标轮询服务的轮询触发条件改变。当目标轮询服务为广告播放的服务,目标轮询服务的轮询触发条件为广告播放状态和非广告播放状态,此时轮询触发条件的改变指的是广告播放状态向非广告播放状态切换,或者非广告播放状态向广告播放状态切换。如果是非广告播放状态向广告播放状态切换,则轮询触发条件改变的时间与插播内容的展示时间同步。在本申请第二实施例中,插播内容指的是广告。因此,在轮询过程中,如果进入到插播内容的展示时间(也即轮询触发条件改变的时间),客户端开始播放广告。如果是广告播放状态向非广告播放状态切换,客户端根据与非广告播放状态对应的轮询频率轮询所述目标轮询服务(广告播放的服务)。
本申请第二实施例所述的方法通过设定目标轮询服务的轮询频率以及的轮询触发条件,根据与轮询触发条件对应的轮询频率轮询所述目标轮询服务,这样可以根据实际需要对轮询频率进行有效管控。同时,轮询触发条件改变的时间与插播内容的展示时间同步,使得视频播放过程中广告插播及时。
参考图3,是本申请第三实施例所述方法的流程图。本申请第三实施例的轮询控制方法,该方法在客户端执行,包括以下内容:
步骤S100:设定目标轮询服务的轮询触发条件为全屏播放状态和非全屏播放状态,设定与轮询触发条件对应的轮询频率,设定插播内容展示时间。
在本申请第三实施例中,轮询指的是客户端反复询问是否需要进行评论更
新的服务。步骤S100所述的目标轮询服务,指的是需要进行的评论更新的服务,即客户端向网络侧请求下载用户评论。插播内容展示时间指的是客户端在其界面展示用户评论的时间。轮询频率指的是单位时间内客户端轮询目标轮询服务的次数。
在本申请第三实施例中,与非全屏播放状态相比,客户端在全屏播放状态下能够展示更多的用户评论,因而可以设定与全屏播放状态对应的轮询频率低于与非全屏播放状态对应的轮询频率。由于目标轮询服务的轮询触发条件受用户操作的影响较大,即用户可根据自身的需要,随时在全屏播放状态和非全屏播放状态之间进行切换,所以轮询触发条件改变的时间与插播内容的展示时间难以同步。为了提高播放用户评论的流畅性,需要单独设定插播内容展示时间。
目标轮询服务的轮询频率可以根据实际需要在客户端设定,目标轮询服务的轮询触发条件为当前视频播放状态。
当所述目标轮询服务的轮询触发条件不同时,与所述轮询触发条件对应的轮询频率也不同。
在本申请第三实施例中,所述目标轮询服务的轮询触发条件为全屏播放状态和非全屏播放状态。
在本申请第三实施例中,所述目标轮询服务为评论更新的服务。
步骤S200:在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件。
步骤S300:如果满足所述目标轮询服务的轮询触发条件,根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。
步骤S400:在视频播放过程中,判断是否到达设定的插播内容展示时间,如果到达设定的插播内容的展示时间,在当前播放视频中播放插播内容。
在本申请第三实施例中,通过客户端播放的插播内容是用户评论(在视频播放过程中,展示在视频界面的文字符号、表情符号等),但不限于用户评论。
本申请第三实施例所述的方法通过设定目标轮询服务的轮询触发条件、与
轮询触发条件对应的轮询频率以及插播内容展示时间,这样可以根据实际需要对轮询频率进行有效管控。这一方法可在视频播放过程中,客户端根据与轮询触发条件对应的轮询频率轮询所述目标轮询服务,也即不断轮询是否需要更新用户评论,客户端根据设定的插播内容展示时间播放用户评论,这有利于提升用户观看用户评论的体验。
参考图4,是本申请第一实施例所述装置的示意图。本申请第一实施例为一种轮询控制装置,包括轮询设定模块101、播放状态判断模块102和轮询模块103。所述轮询设定模块101用于设定目标轮询服务的轮询触发条件和目标轮询服务的轮询频率;所述播放状态判断模块102用于判断是否满足所述目标轮询服务的轮询触发条件;所述轮询模块103根据与轮询触发条件对应的轮询频率轮询所述目标轮询服务。
当播放状态判断模块102获得目标轮询服务的轮询触发条件符合预设时,向轮询模块103发出该轮询触发条件下的轮询频率执行指令。然后轮询模块103执行与轮询触发条件相对应的轮询频率,直到目标轮询服务的轮询触发条件改变。
本申请第一实施例所述装置通过轮询设定模块101设定目标轮询服务的轮询触发条件以及与轮询触发条件对应的轮询频率,当播放状态判断模块102判断满足目标轮询的轮询触发条件时,轮询模块103按照与轮询触发条件对应的轮询频率对目标轮询服务进行轮询,这样可以根据实际需要对轮询频率进行有效管控,提升用户的使用体验。
参考图4,是本申请第二实施例所述装置的示意图。本申请第二实施例为一种轮询控制装置,包括轮询设定模块101、播放状态判断模块102和轮询模块103。所述轮询设定模块101用于设定目标轮询服务的轮询触发条件和目标轮询服务的轮询频率;所述播放状态判断模块102用于判断是否满足所述目标轮询
服务的轮询触发条件;所述轮询模块103根据与轮询触发条件对应的轮询频率轮询所述目标轮询服务。
所述轮询设定模块101设定的轮询触发条件为广告播放状态和非广告播放状态。
当播放状态判断模块102获得目标轮询服务的轮询触发条件符合预设时,向轮询模块103发出该轮询触发条件下的轮询频率执行指令。然后轮询模块103执行与轮询触发条件相对应的轮询频率,直到目标轮询服务的轮询触发条件改变。
当播放的插播内容是广告,该轮询装置的运行过程可以如下:
将广告的展示时间设定在整个视频播放时间的二分之一处(例如,整个视频时常为30分钟,广告的展示时间为第15分钟时);通过轮询设定模块101设定轮询触发条件为非广告播放状态和广告播放状态;通过轮询设定模块101设定非广告播放状态的轮询频率为1次/秒;通过轮询设定模块101设定广告播放状态的轮询频率为10次/秒。
当播放状态判断模块102获得轮询触发条件为非广告播放状态,播放状态判断模块102向轮询模块103发出该轮询触发条件下的轮询频率执行指令。轮询模块103执行1次/秒的轮询频率,直到轮询触发条件改变。如果轮询条件为广告播放状态,判断得出视频的播放进入到广告的播放时间,轮询模块103执行10次/秒的轮询频率,直到轮询触发条件改变。与此同时,播放广告内容。
本申请第二实施例所述的装置通过轮询设定模块101设定目标轮询服务的轮询触发条件为广告播放状态和非广告播放状态,设定与轮询触发条件对应的轮询频率,通过播放状态判断模块102判断是否满足所述目标轮询服务的轮询触发条件,和通过轮询模块103根据与轮询触发条件对应的轮询频率轮询所述目标轮询服务,如此可以实施对轮询频率的有效管控,使得视频播放过程中广告插播及时,而又避免了客户端性能的额外损耗。
参考图5,是本申请第三实施例所述装置的示意图。本申请第三实施例为一种轮询控制装置,包括轮询设定模块101、播放状态判断模块102和轮询模块103。所述轮询设定模块101用于设定目标轮询服务的轮询触发条件和与轮询触发条件对应的轮询频率;所述播放状态判断模块102用于判断是否满足所述目标轮询服务的轮询触发条件;所述轮询模块103根据与轮询触发条件对应的轮询频率轮询所述目标轮询服务。
可选的,该装置还包括展示时间设定模块104,用于设定插播内容的展示时间。
可选的,该装置还包括时间判断模块105,用于在视频播放过程中,判断是否到达设定的插播内容的展示时间,如果到达设定的插播内容的展示时间,在当前播放视频中播放插播内容。
所述轮询设定模块101设定的轮询触发条件为全屏播放状态和非全屏播放状态。
当播放的插播内容是用户评论,该轮询装置的运行过程如下:
通过展示时间设定模块104设定插播内容的展示时间(例如,视频时长为10分钟,插播内容展示时间为第1分钟、第4分钟、第7分钟、第9分钟);通过轮询设定模块101设定轮询触发的条件为全屏播放状态和非全屏播放状态;通过轮询设定模块101设定全屏播放状态的轮询频率为1次/分钟;通过轮询设定模块101设定非全屏播放状态的轮询频率为1次/10秒。
当播放状态判断模块102获得客户端100提供的轮询触发条件为非全屏播放状态,播放状态判断模块102向轮询模块103发出该轮询触发条件下的轮询频率执行指令。轮询模块103执行1次/10秒的轮询频率,直到轮询触发条件改变。与此同时,时间判断模块105判断视频播放过程中是否到达相应的插播内容展示时间,如果是则播放用户评论。如果轮询触发条件为全屏播放状态,轮询模块103执行1次/分钟的轮询频率,直到轮询触发条件改变。与此同时,时间判断模块105判断视频播放过程中是否到达相应的插播内容展示时间,如果
是则播放用户评论。
本申请第三实施例所述的装置通过展示时间设定模块104设定插播内容的展示时间,通过时间判断模块105判断是否到达设定的插播内容的展示时间,有利于在轮询所述目标轮询服务时(即轮询是否要更新用户评论时)顺利播放用户评论。
参考图6,是本申请第四实施例所述轮询控制系统的示意图。所述轮询控制系统包括用于播放视频和插播内容、设定目标轮询服务的轮询触发条件、设定与轮询触发条件对应的轮询频率以及设定插播内容展示时间的客户端100,还包括用于向客户端100提供视频、广告和用户评论(插播内容)的服务器200。客户端100和服务器200通过网络交换数据。
所述客户端100包括轮询设定模块101、播放状态判断模块102和轮询模块103。所述轮询设定模块101用于设定目标轮询服务的轮询触发条件和与轮询触发条件对应的轮询频率;所述播放状态判断模块102用于判断是否满足所述目标轮询服务的轮询触发条件;所述轮询模块103用于根据与轮询触发条件对应的轮询频率轮询所述目标轮询服务。
可选的,所述客户端100还包括展示时间设定模块104,用于设定插播内容的展示时间。
可选的,所述客户端100还包括时间判断模块105,所述时间判断模块105用于在视频播放过程中,判断是否到达设定的插播内容的展示时间,如果到达设定的插播内容的展示时间,在当前播放视频中播放插播内容。
目标轮询服务的轮询频率可以通过客户端100的轮询设定模块101和/或服务器200设定。目标轮询服务的轮询触发条件可以通过客户端100的轮询设定模块101和/或服务器200设定。插播内容的展示时间可以通过客户端100的展示时间设定模块104和/或服务器200设定。
参考图7,为本申请第四实施例所述系统实施的示意图。客户端100在播放
视频的过程中,视频经过一定的时间T从画面A进行到画面B,客户端100根据设定的轮询触发条件、轮询频率和插播内容展示时间轮询所述目标轮询服务,即视频在客户端100的播放过程中满足轮询触发条件时,客户端100每隔一定时间判断一次(轮询频率)是否需要更新用户评论。
当客户端100展示的插播内容是用户评论,该轮询系统的运行过程如下:
参考图6和图7,通过展示时间设定模块104设定插播内容的展示时间(例如,视频时长为10分钟,插播内容展示时间为第1分钟、第4分钟、第7分钟、第9分钟);通过轮询设定模块101设定轮询触发的条件为全屏播放状态和非全屏播放状态;通过轮询设定模块101设定全屏播放状态的轮询频率为1次/分钟;通过轮询设定模块101设定非全屏播放状态的轮询频率为1次/10秒。
当播放状态判断模块102获得客户端100提供的轮询条件为非全屏播放状态,播放状态判断模块102向轮询模块103发出该轮询条件下的轮询频率执行指令。轮询模块103执行1次/10秒的轮询频率,直到轮询触发条件改变。与此同时,时间判断模块105判断视频播放过程中是否到达相应的插播内容展示时间,如果是则客户端100播放用户评论。如果客户端100提供的轮询条件为全屏播放状态,轮询模块103执行1次/分钟的轮询频率,直到轮询触发条件改变。与此同时,时间判断模块105判断视频播放过程中是否到达相应的插播内容展示时间,如果是则客户端100播放用户评论。
本申请实施例所述的系统,可以通过客户端100来设定插播内容展示时间、轮询频率以及轮询触发条件,还可以通过服务器200来设定插播内容的展示时间、轮询频率以及轮询触发条件,因而可以在远程实施对轮询的管控,提升整个系统的管理效率。
参考图8,为本申请第五实施例所述电子设备的硬件结构示意图。本申请第五实施例所述电子设备包括:一个或多个处理器610以及存储器620。以一个处理器610为例。该设备还可以包括:输入装置630和输出装置640。
处理器610、存储器620、输入装置630和输出装置640可以通过总线或者其他方式连接,图6中以通过总线连接为例。
存储器620作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块。处理器610通过运行存储在存储器620中的非暂态软件程序、指令以及模块,从而执行电子设备的各种功能应用以及数据处理,即实现上述方法实施例的处理方法。
存储器620可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储数据等。此外,存储器620可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器620可选包括相对于处理器610远程设置的存储器,这些远程存储器可以通过网络连接至处理装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置630可接收输入的数字或字符信息,以及产生信号输入。输出装置640可包括显示屏等显示设备。
所述一个或者多个模块存储在所述存储器620中,当被所述一个或者多个处理器610执行时,执行:
设定目标轮询服务的轮询触发条件和目标轮询服务的轮询频率。在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件。如果满足所述目标轮询服务的轮询触发条件,根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。
在一种可能的实现方式中,当所述目标轮询服务的轮询触发条件不同时,与所述轮询触发条件对应的轮询频率也不同。
在一种可能的实现方式中,所述目标轮询服务的轮询触发条件为广告播放状态和非广告播放状态。
在一种可能的实现方式中,所述目标轮询服务为广告播放的服务。
在一种可能的实现方式中,所述目标轮询服务的轮询触发条件为全屏播放状态和非全屏播放状态。
在一种可能的实现方式中,所述目标轮询服务为评论更新的服务。
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例提供的方法。
本申请第五实施例的电子设备以多种形式存在,包括但不限于:
移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。
超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。
便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。
服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。
其他具有数据交互功能的电子装置。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。
本申请第六实施例公开一种非暂态(非易失性)计算机存储介质,所述计算机存储介质存储有计算机可执行指令,所述计算机可执行指令用于执行上述任意方法实施例中的方法。
所述计算机可执行指令用于设定目标轮询服务的轮询触发条件和目标轮询服务的轮询频率。在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件。如果满足所述目标轮询服务的轮询触发条件,根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。
在一种可能的实现方式中,当所述目标轮询服务的轮询触发条件不同时,与所述轮询触发条件对应的轮询频率也不同。
在一种可能的实现方式中,所述目标轮询服务的轮询触发条件为广告播放状态和非广告播放状态。
在一种可能的实现方式中,所述目标轮询服务为广告播放的服务。
在一种可能的实现方式中,所述目标轮询服务的轮询触发条件为全屏播放状态和非全屏播放状态。
在一种可能的实现方式中,所述目标轮询服务为评论更新的服务。
本申请第七实施例公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行本申请第一/二/三实施例所述的任意一种方法。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介
质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。
上述实施例为本申请较佳的实施方式,但本申请的实施方式并不受上述实施例的限制,其他的任何未背离本申请的精神实质与原理下所作的改变、修饰、替代、组合、简化,均应为等效的置换方式,都包含在本申请的保护范围之内。
Claims (26)
- 一种轮询控制方法,其特征在于,所述方法包括:设定目标轮询服务的轮询触发条件和与所述轮询触发条件对应的轮询频率;在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件;如果满足所述目标轮询服务的轮询触发条件,根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。
- 根据权利要求1所述的轮询控制方法,其特征在于,当所述目标轮询服务的轮询触发条件不同时,与所述轮询触发条件对应的轮询频率也不同。
- 根据权利要求1或2所述的轮询控制方法,其特征在于,所述目标轮询服务的轮询触发条件为广告播放状态和非广告播放状态。
- 根据权利要求3所述的轮询控制方法,其特征在于,所述目标轮询服务为广告播放的服务。
- 根据权利要求1或2所述的轮询控制方法,其特征在于,所述目标轮询服务的轮询触发条件为全屏播放状态和非全屏播放状态。
- 根据权利要求5所述的轮询控制方法,其特征在于,所述目标轮询服务为评论更新的服务。
- 一种轮询控制装置,其特征在于,所述装置包括:轮询设定模块、播放状态判断模块和轮询模块;所述轮询设定模块用于设定目标轮询服务的轮询触发条件和与所述轮询触发条件对应的轮询频率;所述播放状态判断模块用于在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件;如果满足所述目标轮询服务的轮询触发条件,所述轮询模块用于根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。
- 根据权利要求7所述的轮询控制装置,其特征在于,当所述播放状态判 断模块判断出目标轮询服务的轮询触发条件不同时,所述轮询设定模块设定的与轮询触发条件对应的轮询频率也不同。
- 根据权利要求7或8所述的轮询控制装置,其特征在于,所述轮询设定模块设定的与目标轮询服务相对应的轮询触发条件为广告播放状态和非广告播放状态。
- 根据权利要求9所述的轮询控制装置,其特征在于:所述轮询模块轮询的目标轮询服务为广告播放的服务。
- 根据权利要求7或8所述的轮询控制装置,其特征在于,所述轮询设定模块设定的与目标轮询服务相对应的轮询触发条件为全屏播放状态和非全屏播放状态。
- 根据权利要求11所述的轮询控制装置,其特征在于,所述轮询模块轮询的目标轮询服务为评论更新的服务。
- 一种轮询控制系统,其特征在于,包括客户端和服务器,所述客户端包括轮询设定模块、播放状态判断模块和轮询模块;所述轮询设定模块用于设定目标轮询服务的轮询触发条件和与所述轮询触发条件对应的轮询频率;所述播放状态判断模块用于在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件;如果满足所述目标轮询服务的轮询触发条件,所述轮询模块用于根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务;所述服务器用于向所述客户端提供所述目标轮询服务的插播内容。
- 一种电子设备,其特征在于,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:设定目标轮询服务的轮询触发条件和与所述轮询触发条件对应的轮询频率;在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件;如果满足所述目标轮询服务的轮询触发条件,根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。
- 根据权利要求14所述的电子设备,其特征在于,当所述目标轮询服务的轮询触发条件不同时,与所述轮询触发条件对应的轮询频率也不同。
- 根据权利要求14或15所述的电子设备,其特征在于,所述目标轮询服务的轮询触发条件为广告播放状态和非广告播放状态。
- 根据权利要求16所述的电子设备,其特征在于,所述目标轮询服务为广告播放的服务。
- 根据权利要求14或15所述的电子设备,其特征在于,所述目标轮询服务的轮询触发条件为全屏播放状态和非全屏播放状态。
- 根据权利要求18所述的电子设备,其特征在于,所述目标轮询服务为评论更新的服务。
- 一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于:设定目标轮询服务的轮询触发条件和与所述轮询触发条件对应的轮询频率;在视频播放过程中,判断是否满足所述目标轮询服务的轮询触发条件;如果满足所述目标轮询服务的轮询触发条件,根据与所述轮询触发条件对应的轮询频率轮询所述目标轮询服务。
- 根据权利要求20所述的非暂态计算机可读存储介质,其特征在于,当所述目标轮询服务的轮询触发条件不同时,与所述轮询触发条件对应的轮询频率也不同。
- 根据权利要求20或21所述的非暂态计算机可读存储介质,其特征在于,所述目标轮询服务的轮询触发条件为广告播放状态和非广告播放状态。
- 根据权利要求22所述的电子设备,其特征在于,所述目标轮询服务为 广告播放的服务。
- 根据权利要求20或21所述的非暂态计算机可读存储介质,其特征在于,所述目标轮询服务的轮询触发条件为全屏播放状态和非全屏播放状态。
- 根据权利要求24所述的非暂态计算机可读存储介质,其特征在于,所述目标轮询服务为评论更新的服务。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1-6中任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610365028.4A CN105872853A (zh) | 2016-05-27 | 2016-05-27 | 一种轮询控制方法、装置及系统 |
| CN201610365028.4 | 2016-05-27 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017201938A1 true WO2017201938A1 (zh) | 2017-11-30 |
Family
ID=56642393
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/100751 Ceased WO2017201938A1 (zh) | 2016-05-27 | 2016-09-29 | 一种轮询控制方法、装置及系统 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105872853A (zh) |
| WO (1) | WO2017201938A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111343152A (zh) * | 2020-02-07 | 2020-06-26 | 北京达佳互联信息技术有限公司 | 数据处理方法、装置及电子设备、存储介质 |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105872853A (zh) * | 2016-05-27 | 2016-08-17 | 乐视控股(北京)有限公司 | 一种轮询控制方法、装置及系统 |
| CN109729410B (zh) * | 2018-12-29 | 2022-03-04 | 北京字节跳动网络技术有限公司 | 一种直播间交互事件处理方法、装置、设备及存储介质 |
| CN112399231B (zh) * | 2019-08-19 | 2023-10-24 | 上海哔哩哔哩科技有限公司 | 播放方法 |
| CN112996045B (zh) * | 2021-02-04 | 2022-11-29 | 深圳市吉祥腾达科技有限公司 | 一种mesh多频组网路径的维链包转发方法与系统 |
| CN116546164A (zh) * | 2023-04-07 | 2023-08-04 | 特斯联科技集团有限公司 | 视频监控轮询切换方法、装置、设备及介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1921408A (zh) * | 2005-08-26 | 2007-02-28 | 英业达股份有限公司 | 基于客户请求服务频率以实时调整心跳频率的方法及系统 |
| CN102638482A (zh) * | 2011-02-15 | 2012-08-15 | 上海亿动信息技术有限公司 | 一种在移动设备中控制广告播放的控制方法及装置 |
| CN105451034A (zh) * | 2015-12-04 | 2016-03-30 | 合一网络技术(北京)有限公司 | 一种广告播放控制方法及系统 |
| CN105872853A (zh) * | 2016-05-27 | 2016-08-17 | 乐视控股(北京)有限公司 | 一种轮询控制方法、装置及系统 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090006180A1 (en) * | 2007-06-27 | 2009-01-01 | Tapio Hameen-Anttila | Multiple application advertising |
| JP5441631B2 (ja) * | 2009-11-13 | 2014-03-12 | キヤノン株式会社 | イベント取得制御方法、イベント取得装置、及び、サービス実行装置 |
| US8766805B2 (en) * | 2011-11-28 | 2014-07-01 | Motorola Mobility Llc | Smart adaptive device for alerting user of scheduled tasks prior to falling asleep |
| US9197913B2 (en) * | 2012-03-29 | 2015-11-24 | Sony Corporation | System and method to improve user experience with streaming content |
| CN104660482A (zh) * | 2013-11-20 | 2015-05-27 | 中兴通讯股份有限公司 | 一种社交网络信息推送方法及装置 |
| CN105337800B (zh) * | 2015-10-30 | 2019-02-22 | 小米科技有限责任公司 | 轮询频率调整方法及装置 |
-
2016
- 2016-05-27 CN CN201610365028.4A patent/CN105872853A/zh active Pending
- 2016-09-29 WO PCT/CN2016/100751 patent/WO2017201938A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1921408A (zh) * | 2005-08-26 | 2007-02-28 | 英业达股份有限公司 | 基于客户请求服务频率以实时调整心跳频率的方法及系统 |
| CN102638482A (zh) * | 2011-02-15 | 2012-08-15 | 上海亿动信息技术有限公司 | 一种在移动设备中控制广告播放的控制方法及装置 |
| CN105451034A (zh) * | 2015-12-04 | 2016-03-30 | 合一网络技术(北京)有限公司 | 一种广告播放控制方法及系统 |
| CN105872853A (zh) * | 2016-05-27 | 2016-08-17 | 乐视控股(北京)有限公司 | 一种轮询控制方法、装置及系统 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111343152A (zh) * | 2020-02-07 | 2020-06-26 | 北京达佳互联信息技术有限公司 | 数据处理方法、装置及电子设备、存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105872853A (zh) | 2016-08-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017201938A1 (zh) | 一种轮询控制方法、装置及系统 | |
| CN114727146B (zh) | 信息处理方法、装置、设备及存储介质 | |
| US10750223B2 (en) | System, method, and device for displaying content item | |
| CN109640129B (zh) | 视频推荐方法、装置,客户端设备、服务器及存储介质 | |
| JP6001757B1 (ja) | デジタルコンテンツを配信するシステム、方法、及びプログラム | |
| WO2017181598A1 (zh) | 视频播放方法及装置 | |
| WO2017173793A1 (zh) | 一种视频投屏方法及装置 | |
| US20170163702A1 (en) | Android platform-based multimedia processing method and electronic device | |
| WO2018000624A1 (zh) | 视频播放控制方法及装置 | |
| CN102568073B (zh) | 一种由可控设备实现的方法 | |
| CN104243463A (zh) | 一种展示虚拟物品的方法和装置 | |
| US20170168705A1 (en) | Method and electronic device for adjusting video progress | |
| CN107803029B (zh) | 显示处理方法及相关产品 | |
| WO2017181652A1 (zh) | 一种动态节目单生成方法及系统 | |
| WO2017181597A1 (zh) | 视频播放方法及装置 | |
| EP4610820A1 (en) | Interaction method and apparatus, and electronic device, storage medium and program product | |
| CN113411652A (zh) | 媒体资源播放方法和装置、存储介质及电子设备 | |
| US20170195710A1 (en) | Method and electronic device for preview play | |
| US10231005B2 (en) | Operation instructing method and apparatus for remote controller of intelligent television | |
| WO2017156984A1 (zh) | 一种移动终端的视频更新推送方法以及客户端 | |
| CN105554424A (zh) | 在应用中进行视频播放的方法和装置 | |
| CN104066011A (zh) | 智能电视的界面切换的控制方法和控制装置 | |
| CN105657545A (zh) | 视频播放的方法及装置 | |
| CN110377319B (zh) | 一种应用程序的升级方法、装置、电子设备和存储介质 | |
| CN110267088B (zh) | 视频播放的控制方法、装置、电子设备、及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16902923 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16902923 Country of ref document: EP Kind code of ref document: A1 |