CN111294623B - Video playing method and device, electronic equipment and storage medium - Google Patents

Video playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111294623B
CN111294623B CN202010260032.0A CN202010260032A CN111294623B CN 111294623 B CN111294623 B CN 111294623B CN 202010260032 A CN202010260032 A CN 202010260032A CN 111294623 B CN111294623 B CN 111294623B
Authority
CN
China
Prior art keywords
target video
video
server
stored
playing
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
CN202010260032.0A
Other languages
Chinese (zh)
Other versions
CN111294623A (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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Publication of CN111294623A publication Critical patent/CN111294623A/en
Application granted granted Critical
Publication of CN111294623B publication Critical patent/CN111294623B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/27Server based end-user applications
    • H04N21/274Storing end-user multimedia data in response to end-user request, e.g. network recorder
    • H04N21/2743Video hosting of uploaded data from client
    • 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/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4667Processing of monitored end-user data, e.g. trend analysis based on the log file of viewer selections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4668Learning process for intelligent management, e.g. learning user preferences for recommending movies for recommending content, e.g. movies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present disclosure relates to a video playing method, device, electronic device and storage medium, wherein the method comprises: responding to a video uploading trigger operation of a specified target video, and uploading the target video stored in the local to a server; meanwhile, displaying the index of the local target video in a display interface; responding to the play operation of the target video triggered by the index, and sending a data acquisition request to the server; under the condition that the server stores the target video, acquiring the target video stored by the server and playing the target video; and playing the locally stored target video under the condition that the server does not store the target video. According to the method and the device, after the client uploads the video, the user does not need to wait for the server to process, and therefore the experience of the user is improved. And the video adjusted by the server is played for most users, so that the influence on the experience of most users can be avoided.

Description

Video playing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer software applications, and in particular, to a video playing method and apparatus, an electronic device, and a storage medium.
Background
For a client supporting a user to upload and release a video, the user can upload the video through the client, and then a server can process the video, for example, transcoding processing is generally required; and if the video information is extracted, interactive operation keys or video decorations and the like can be correspondingly added according to the information. And then, when the user clicks to play the video, the server sends the processed video to the client to play.
After the client uploads the video, the client needs to wait for the server to process the video, and the video is not shown in the local published video list during the processing period, however, if the processing period waits for a long time, the experience of the user is reduced.
Disclosure of Invention
The present disclosure provides a video playing method, device, electronic device and storage medium, so as to at least solve the problem of long waiting time when a user uses a client to issue a video. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a video playing method, the method including:
responding to a video uploading trigger operation of a specified target video, and uploading the target video stored in the local to a server; meanwhile, displaying the index of the local target video in a display interface;
responding to the play operation of the target video triggered by the index, and sending a data acquisition request to the server; the data acquisition request representation confirms whether the server stores the target video or not;
under the condition that the server stores the target video, acquiring the target video stored by the server and playing the target video; the target video stored by the server is obtained by processing the uploaded target video according to a preset method;
and playing the locally stored target video under the condition that the server does not store the target video.
In one possible implementation, in playing a target video stored locally, the method further includes:
adjusting the target video being played based on the target video stored by the server.
In one possible implementation, the adjusting the target video being played based on the target video stored by the server includes:
determining the time for acquiring the target video stored by the server;
sending a data acquisition request to the server based on the opportunity;
under the condition that the target video stored by the server is obtained, determining difference data between the local target video and the target video stored by the server;
adjusting the target video being played based on the difference data.
In one possible implementation manner, the determining the basis for acquiring the target video stored by the server includes at least one of:
the network connection parameters of the client and the server, the current playing parameters of the target video being played and data representing the behavior preference of the user on video playing.
In one possible implementation, the adjusting the target video being played based on the difference data includes:
acquiring the current playing position of the target video being played;
and adjusting the target video being played according to the difference data after the playing position.
In one possible implementation, the adjusting the target video being played based on the difference data further includes:
acquiring historical behavior data of a user; the historical behavior data represents the behavior preference of the user on video playing;
based on the historical behavior data, adjusting the target video being played according to the difference data.
In one possible implementation, the adjusting the target video being played based on the difference data further includes:
and storing the target video stored by the server to the local so as to play the target video stored to the local in response to the video playing triggering operation of the specified target video.
In one possible implementation, the difference data includes at least one of:
advertisements, progress bars, additional interactive operation keys, and video decoration.
According to a second aspect of the embodiments of the present disclosure, there is provided a video playback apparatus, the apparatus including: a sending module and a playing module;
the sending module is configured to execute a video uploading triggering operation responding to the specified target video and upload the locally stored target video to the server; meanwhile, displaying the index of the local target video in a display interface;
the sending module is further configured to execute sending of a data acquisition request to the server in response to a play operation of the target video triggered by the index;
the data acquisition request representation confirms whether the server stores the target video or not;
the playing module is configured to acquire and play the target video stored by the server under the condition that the server has stored the target video; the target video stored by the server is obtained by processing the uploaded target video according to a preset method;
the playing module is further configured to play the locally stored target video if the server does not store the target video.
In one possible implementation, the apparatus further includes:
and the adjusting module is configured to adjust the target video being played based on the target video stored by the server in the process of playing the target video stored locally.
In one possible implementation, the adjusting module includes:
an opportunity determination unit configured to perform determination of an opportunity to acquire a target video stored by the server;
a request sending unit configured to execute sending of a data acquisition request to the server based on the occasion;
the difference determining unit is configured to determine difference data of the local target video stored by the server when the target video stored by the server is acquired;
a video adjustment unit configured to perform adjustment of the target video being played based on the difference data.
In one possible implementation manner, the determining, by the timing determining unit, a basis for acquiring the timing of the target video stored by the server includes at least one of:
the network connection parameters of the client and the server, the current playing parameters of the target video being played and data representing the behavior preference of the user on video playing.
In one possible implementation, the video adjusting unit is specifically configured to perform:
acquiring the current playing position of the target video being played;
and adjusting the target video being played according to the difference data after the playing position.
In one possible implementation, the video adjusting unit is specifically configured to perform:
acquiring historical behavior data of a user; the historical behavior data represents the behavior preference of the user on video playing;
based on the historical behavior data, adjusting the target video being played according to the difference data.
In one possible implementation, the video adjusting unit is specifically configured to perform:
and storing the target video stored by the server to the local so as to play the target video stored to the local in response to the video playing triggering operation of the specified target video.
In one possible implementation, the difference data includes at least one of:
advertisements, progress bars, additional interactive operation keys, and video decoration.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the video playback method as described in the first aspect and any one of the possible implementations of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the video playing method according to the first aspect and any one of the possible implementations of the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising one or more instructions which, when executed by a processor of an electronic device, enable the electronic device to perform operations performed by the video playback method of any one of the first aspect and possible implementations of the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: on one hand, after the video is uploaded to the server, the preview information of the video can be displayed in the video list based on the local data, which is equivalent to that after the video is uploaded at the client, the client does not need to wait for the processing of the server, and therefore the experience of the user is improved. On the other hand, when the user plays the uploaded video for the first time, if the current server finishes processing the video, the local video data can be updated by using the video data stored in the server, and the subsequent video data can be continuously played, so that the effect of the first time and the subsequent playing of the same video is consistent, the locally stored video can be played only when the current server does not process the video, and the influence on the experience of most users can be avoided from the perspective of a user group using the client.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic flow chart diagram illustrating a video playback method in accordance with an exemplary embodiment;
FIG. 2 is another flow diagram illustrating a video playback method in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating an architecture of a video playback device in accordance with an exemplary embodiment;
FIG. 4 is a schematic diagram of another configuration of a video playback device according to an exemplary embodiment;
FIG. 5 is a schematic diagram illustrating one configuration of an adjustment module in accordance with an exemplary embodiment;
fig. 6 is a schematic diagram illustrating a structure of an electronic device according to an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
After a user uses a client to release or upload a video, the client uploads the video to a server, and then the server needs to process the video and returns the video to the client.
In the related art, after the client uploads the video to the server, the client generally waits for the server to complete the adjustment of the target video, and sends the adjusted target video to the client, and then displays the video for the user in a display interface of the client, so that the user can perform an operation of playing the video.
Therefore, before the server returns the video, the video is not displayed in the display interface of the client, so that the user cannot watch the published video, the user can watch the video after waiting for the server to process and return the video, and if the waiting time is long, the experience of the user is reduced.
In view of the problems in the prior art, embodiments of the present disclosure provide a playing method, after a user performs an operation of publishing or uploading a video, first, a client displays an index of a local video in a display interface, and then, after the user performs the playing operation on the video, the client uses a server or the local video to play according to a processing progress of the server on the video, so that the user can watch the published video without waiting, and user experience is improved.
Fig. 1 is a flowchart illustrating a video playback method according to an exemplary embodiment, and referring to fig. 1, a video playback method may include steps S11 to S13:
in step S11, in response to a video upload trigger operation that specifies a target video, uploading the target video stored locally to a server; and simultaneously, displaying the index of the local target video in the display interface.
When the user uses the client, the user can shoot and upload videos through the client, and also can browse and select local existing videos to upload through the client, namely, a target video specified in the video uploading triggering operation can be a video shot by using the client, and can also be other videos stored in client equipment (such as a mobile phone).
In addition, the video upload trigger operation may be an operation directly performed by the user, for example, the user may click a "upload video" button in the client, or click a "share" button of the local video and select sharing by the client; the video uploading trigger operation may also be a trigger operation issued based on a user operation, for example, if the user can set to publish the video at a fixed time, the video uploading trigger operation is a trigger operation between modules in the client at a predetermined uploading time.
The client responds to the video uploading triggering operation, and uploads the locally stored target video to the server aiming at the target video specified by the operation, so that the server can adjust the video after receiving the uploaded video, for example, the adjusting mode can be transcoding processing, and the transcoding scheme can be realized by adopting a related technology; for another example, the adjustment mode may also be extracting video information, and determining whether to add decoration to the video, and interactively operate keys and progress bars according to the information.
In the scheme, after the client uploads the local target video to the server, the local target video is used for displaying the index of the target video for the user, and the index can be specifically in various forms: such as a preview picture of a video, a title of the video, or keyword information of the video, and the like, correspondingly, the client may display the video index in various ways, for example, the title and preview information of the video may be displayed in a published video list of the client. Therefore, the user does not need to wait for the server to adjust the video, and the experience that the user needs to wait for a long time for uploading the video is avoided.
Since the uploaded video is already presented in the client, the user can click to play the video.
In step S12, in response to triggering the play operation of the target video through the index, sending a data acquisition request to the server; the data acquisition request representation confirms whether the server stores the target video.
It can be understood that the video playing triggering operation in the embodiments of the present description may be an operation performed by a user, such as an operation of clicking a play button; the method can also be an operation automatically generated based on a preset rule, wherein the preset rule can be that after data is uploaded successfully, a video is played, and then the successful uploading of the video can be used as a video playing triggering operation; and the embodiment of the present specification does not limit the specific form of the video playing triggering operation.
For the client side, before the target video is played for the first time, a data acquisition request is firstly sent to the server, and whether the target video is stored in the server or not is confirmed. The client can establish a play history table for the target video, determine the playing time of the target video by inquiring the play history table, and set a label in the target video, wherein the label is not set when the target video is not played, and the label is added after the target video is played for the first time. Of course, it can also be identified by the content of the tag, e.g. played or not played. It can be understood that, in the case where the number of plays can be determined, the corresponding scheme falls within the scope of the present disclosure.
For the server side, the target video is stored in the server after the target video is adjusted, and after a data acquisition request sent by the client is received, the adjusted target video can be issued to the client in response to the data acquisition request. The data acquisition request may be a request sent before the target video is played for the first time, and after the target video is played for the first time, the data acquisition request may not be sent any more.
In this specification, the client may specifically send a data acquisition request to the server in multiple ways:
in an embodiment, the client may establish a long connection with the server, and after the server completes adjustment of the target video, the server sends the adjusted whole or part of the target video to the client through the long connection.
In another embodiment, the client may first determine an opportunity to retrieve a target video stored by the server and then send a data retrieval request to the server based on the opportunity.
The specific manner of sending the data acquisition request is not limited in this specification, and those skilled in the art may implement the data acquisition request in one or more manners according to actual situations without conflict.
For embodiments in which the timing is determined and the data acquisition request is sent, in particular, the timing for acquiring the video may be determined in various ways.
In one example, the timing may be determined based on network connection parameters of the client and the server.
For example, the client and the server may be connected through a wireless network or a mobile network, for example, through a mobile network: if the current mobile network is a 3G network, determining that the current mobile network is not suitable for acquiring the target video stored by the server, namely the current mobile network is not suitable for the moment; if the current mobile network is a 4G network, determining that the current mobile network is suitable for acquiring part of target videos stored by the server, such as only acquiring video data after the current playing position; if the current mobile network is a 5G network, the current time suitable for acquiring all target videos can be determined, namely the current time is suitable; and so on. Taking the connection via the wireless network as an example, whether the current time is the appropriate time may be determined based on the current network speed, or the appropriate time may be determined based on a predetermined network speed change condition.
In another example, the timing may be determined according to the current playing parameters of the target video. For example, the timing at which the playback position is located in the first half of the target video may be determined as the appropriate timing.
In yet another example, the timing may be determined according to the viewing habits of the user. The method and the device for playing the video can acquire historical operation data of the video by the user under the condition of obtaining user authorization, determine the watching habit of the user according to the historical operation data of the user, for example, determine that when a certain user watches the video by using a client, the first 40 seconds of the video, or only the beginning and the end of the video, and the like, and determine the timing when the playing position is located at the part which the user is likely to watch as the appropriate timing.
In the embodiments of the present disclosure, a specific manner of determining the timing is not limited, and a person skilled in the art may use any method, which is exemplified or not exemplified, according to actual needs. In addition, various methods, which are exemplified or not exemplified above, may also be used in combination, for example, if the current playing position is located in the first half of the target video, the client and the server pass through a 5G network, and the viewing habit of the user is to view a complete video, the timing of currently acquiring the target video stored by the server may be determined.
Of course, it can be understood that any one or a combination of the above lists or lists can be used not only to determine the timing for acquiring the target video stored by the server, but also to determine whether the target video stored locally needs to be adjusted based on the target video stored by the server in the process of playing the target video stored locally.
For example, if the playing parameter of the target video is determined, the total duration of the video is only 10 seconds, it may be determined that only the locally stored target video is played without adjustment during the playing process; for another example, if the current network speed is determined to be normal and the user generally only watches the first 20 seconds of the video by integrating the network connection parameters, the playing parameters and the user watching habits, it may be determined that only the locally stored target video is played without adjustment in the playing process; and so on.
In step S13, when the server has stored the target video, the target video stored by the server is acquired and played; playing the locally stored target video under the condition that the server does not store the target video; and the target video stored by the server is obtained by processing the uploaded target video according to a preset method.
If the target video is stored in the server, namely the server completes the adjustment of the previously uploaded target video, the server can respond to the data acquisition request of the client and issue the adjusted target video to the client, so that the client can directly play the adjusted target video, the situation that the local target video is played for the first time and the target video stored by the server is played subsequently is avoided, and the situation that pictures are different when a user watches the same video is caused, so that confusion is caused, and the watching experience of the user is influenced.
In addition, the client can store the target video sent by the server to the local, so as to play the target video stored to the local in response to the video playing triggering operation of the specified target video.
Even if the target video is not stored in the server, i.e., the server has not completed adjusting the previously uploaded target video, the target video cannot be returned to the client. In the scheme, the target video stored locally is played for the user, so that the user can watch the target video as soon as possible, and the waiting time of the user is reduced.
In one embodiment, even if the locally stored target video is temporarily played for the user, if the server completes the adjustment of the target video during the playing process, the locally stored target video can be adjusted based on the target video stored by the server, so as to reduce the inconsistency of the first and subsequent playing effects of the same video to the maximum extent.
When the client adjusts the target video stored locally based on the target video stored in the server, a data acquisition request may be first sent to the server, and the specific manner may be as described in step S12, which is not described herein again.
If the server sends the target video to the client through the long connection, the client can adjust the locally stored target video based on the received video and then play the target video.
If the client determines the opportunity and sends a data acquisition request to the server, and if the target video stored by the server is acquired, the difference data between the local video and the target video stored by the server is further determined.
For example, the target data stored in the server may include an advertisement, a progress bar, an additional interactive operation key (such as a download, share, or report key), a video decoration (such as a filter or a style hanger), and the like added by the server in the adjustment process, and the added advertisement, progress bar, additional interactive operation key, and video decoration are difference data.
For another example, the target video uploaded by the client may be from other video platforms, and include advertisements of other video platforms at the beginning or the end, the server may delete the advertisement portion in the video during the adjustment process, and the deleted advertisement portion is the difference data.
After determining the difference data between the local target video and the target video stored by the server, the target video stored locally can be adjusted based on the difference data, so that the playing effect of the local target video is close to that of the target video stored by the server.
When the target video stored locally is adjusted based on the difference data, specifically, the current playing position of the target video may be first obtained, and then the target video stored locally may be adjusted according to the difference data after the playing position.
For example, advertisements, progress bars, additional interactive buttons, video decorations, and the like after the playing position are added to the target video stored locally.
In practical application, a certain time can be reserved for data transmission, data adjustment and the like, and difference data is added after a certain time (such as several seconds) from the playing position, so that videos before and after adjustment can be played seamlessly for a user.
When the target video stored locally is adjusted based on the difference data, specifically, historical behavior data of the user may be first obtained, the historical behavior data represents behavior preference of the user for video playing, and then the target video being played is adjusted according to the difference data based on the historical behavior data.
For example, if the user mostly skips the end-of-the-track advertisement in the historical use operation when watching the video, it can be determined that the user has no use requirement for the end-of-the-track advertisement, and the target video stored locally does not need to be adjusted according to the difference data (end-of-the-track advertisement).
In addition, when the target video stored locally is adjusted based on the difference, specifically, the target video stored by the server may be asynchronously updated to the local, that is, the target video stored by the server is saved to the local, so that the target video saved to the local is played in response to a video playing triggering operation for specifying the target video in the subsequent step.
The following describes a video playing method provided in this specification with reference to a more specific example.
Fig. 2 is a schematic diagram illustrating a video playing method in this example.
After a user shoots a video by using a certain video client, the video is automatically stored in a mobile phone of the user. If the user clicks a 'publish' button in the client interface, the client uploads the local data of the video to the server, and simultaneously, the local data is used for displaying the title of the video in a published video list, so that the user can play the video by clicking the title.
For the server side, after receiving the video, a series of adjustments can be made to the video, such as adding video decorations, progress bars, interactive buttons, floating window advertisements, and the like, and then the adjusted video is stored in the server.
When the user operates to play the video, if the client determines that the video is played for the first time, a data acquisition request is sent to the server to determine whether the adjusted video is stored in the server.
And if the adjusted video is determined to be stored in the server, playing the video stored in the server for the user, and updating the video stored in the server to the local of the mobile phone of the user so as to be played by using the locally updated video.
If the adjusted video is not stored in the server, namely the server does not adjust the video, the locally stored video can be used for playing; secondly, in the playing process, after the server finishes the adjustment of the video, the client adjusts and plays the local video based on the video in the server so as to ensure the consistency of the effect of the first playing and the subsequent playing as much as possible. Specifically, the method comprises the following steps:
the client determines the time for sending the data acquisition request to the server according to the network connection parameters, the video playing parameters and the user use requirements, and inquires whether the server completes the adjustment of the video. If the adjustment is finished, the server sends the adjusted video to the client; if not, the client will query again at the next opportunity.
When the client receives the adjusted video, the data of the video being played can be selectively adjusted according to the difference between the server video and the local video.
For example, if the difference between the server video and the local video exists only in the played portion of the video, there is no need to adjust the data of the video being played based on the difference, whereas if part or all of the difference exists in the unplayed portion of the video, the unplayed portion of the video may be adjusted based on the difference.
For another example, if the user skips or closes an advertisement inserted in the video during historical operations, no adjustment may be made in the local video for the portion of the advertisement that is in the difference.
The current playing position of the video can be determined, and the data after the position in the server video is used for replacing the data after the position in the local video.
And the complete data of the server video is asynchronously updated to the local client, so that the user is not influenced by the update of the complete data of the video when watching the video.
Fig. 3 is a block diagram of a video playback device according to an exemplary embodiment, which may include a sending module 110 and a playing module 120.
The sending module 110 is configured to execute a video uploading trigger operation responding to the specified target video, and upload the locally stored target video to the server; meanwhile, displaying the index of the local target video in a display interface;
the sending module 110 is further configured to execute sending a data obtaining request to the server in response to triggering the playing operation of the target video through the index; the data acquisition request representation confirms whether the server stores the target video or not;
the playing module 120 is configured to, in a case that the server has stored the target video, acquire the target video stored by the server and play the target video; the target video stored by the server is obtained by processing the uploaded target video according to a preset method;
the playing module 120 is further configured to play the locally stored target video if the server does not store the target video.
In one possible implementation, referring to fig. 4, the apparatus further includes:
the adjusting module 130 is configured to perform, in the process of playing the target video stored locally, adjusting the target video being played based on the target video stored by the server.
In one possible implementation, referring to fig. 5, the adjusting module 130 includes:
an occasion determination unit 131 configured to perform determination of an occasion to acquire the target video stored by the server;
a request transmitting unit 132 configured to perform transmitting a data acquisition request to the server based on the timing;
a difference determination unit 133 configured to perform, in a case where the target video stored by the server is acquired, determining difference data between the target video stored locally and the server;
a video adjusting unit 134 configured to perform adjusting the target video being played based on the difference data.
In one possible implementation manner, the determining the basis for acquiring the timing of the target video stored by the server by the timing determining unit 131 includes at least one of the following:
the network connection parameters of the client and the server, the current playing parameters of the target video being played and data representing the behavior preference of the user on video playing.
In one possible implementation, the video adjusting unit 134 is specifically configured to perform:
acquiring the current playing position of the target video being played;
and adjusting the target video being played according to the difference data after the playing position.
In one possible implementation, the video adjusting unit 134 is specifically configured to perform:
acquiring historical behavior data of a user; the historical behavior data represents the behavior preference of the user on video playing;
based on the historical behavior data, adjusting the target video being played according to the difference data.
In one possible implementation, the video adjusting unit 134 is specifically configured to perform:
and storing the target video stored by the server to the local so as to play the target video stored to the local in response to the video playing triggering operation of the specified target video.
In one possible implementation, the difference data includes at least one of:
advertisements, progress bars, additional interactive operation keys, and video decoration.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 6 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the electronic device 60 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, a server, and the like.
Referring to fig. 6, electronic device 60 may include one or more of the following components: processing component 610, memory 620, power component 630, multimedia component 640, audio component 650, input/output (I/O) interface 660, sensor component 670, and communication component 680.
The processing component 610 generally controls overall operation of the electronic device 60, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 610 may include one or more processors 611 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 610 can include one or more modules that facilitate interaction between the processing component 610 and other components. For example, the processing component 610 may include a multimedia module to facilitate interaction between the multimedia component 640 and the processing component 610.
The memory 620 is configured to store various types of data to support operations at the electronic device 60. Examples of such data include instructions for any application or method operating on the electronic device 60, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 620 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 630 provides power to the various components of the electronic device 60. Power components 630 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 60.
The multimedia component 640 includes a screen that provides an output interface between the electronic device 60 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 640 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 60 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 650 is configured to output and/or input audio signals. For example, the audio component 650 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 60 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in memory 620 or transmitted via communications component 680. In some embodiments, audio component 650 further includes a speaker for outputting audio signals.
The I/O interface 660 provides an interface between the processing component 610 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 670 includes one or more sensors for providing status assessment of various aspects of electronic device 60. For example, sensor assembly 670 may detect an open/closed status of electronic device 60, the relative positioning of components, such as a display and keypad of electronic device 60, sensor assembly 670 may also detect a change in the position of electronic device 60 or a component of electronic device 60, the presence or absence of user contact with electronic device 60, the orientation or acceleration/deceleration of electronic device 60, and a change in the temperature of electronic device 60. The sensor assembly 670 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 670 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 670 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 680 is configured to facilitate wired or wireless communication between the electronic device 60 and other devices. The electronic device 60 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 6G), or a combination thereof. In an exemplary embodiment, the communication component 680 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 680 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an embodiment of the present disclosure, the electronic device 60 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an embodiment of the present disclosure, a non-transitory computer-readable storage medium comprising instructions, such as the memory 620 comprising instructions, executable by the processor 611 of the electronic device 60 to perform the method of obtaining a viewing duration is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. In an embodiment of the present disclosure, an application program is further provided, and when the application program is executed by a processor of an electronic device, the electronic device is enabled to execute the video playing method to obtain the same technical effect.
In an embodiment of the present disclosure, a computer program product is further provided, which, when executed by a processor of an electronic device, enables the electronic device to execute the above video playing method to obtain the same technical effect.
Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A video playback method, the method comprising:
responding to a video uploading trigger operation of a specified target video, and uploading the target video stored in the local to a server; meanwhile, displaying the index of the local target video in a display interface;
responding to the play operation of the target video triggered by the index, and sending a data acquisition request to the server; the data acquisition request representation confirms whether the server stores the target video or not;
under the condition that the server stores the target video, acquiring the target video stored by the server and playing the target video; the target video stored by the server is obtained by processing the uploaded target video according to a preset method;
playing the locally stored target video under the condition that the server does not store the target video;
in the process of playing the target video stored in the local, if the server has finished processing the uploaded target video according to a preset method and has stored the processed target video, the target video being played is adjusted based on the target video stored by the server.
2. The method of claim 1, wherein the adjusting the target video being played based on the target video stored by the server comprises:
determining the time for acquiring the target video stored by the server;
sending a data acquisition request to the server based on the opportunity;
under the condition that the target video stored by the server is obtained, determining difference data between the local target video and the target video stored by the server;
adjusting the target video being played based on the difference data.
3. The method of claim 2, wherein the determining the timing for obtaining the target video stored by the server comprises at least one of:
the network connection parameters of the client and the server, the current playing parameters of the target video being played and data representing the behavior preference of the user on video playing.
4. The method of claim 2, wherein said adjusting the target video being played based on the difference data comprises:
acquiring the current playing position of the target video being played;
and adjusting the target video being played according to the difference data after the playing position.
5. The method of claim 2, wherein the adjusting the target video being played based on the difference data further comprises:
acquiring historical behavior data of a user; the historical behavior data represents the behavior preference of the user on video playing;
based on the historical behavior data, adjusting the target video being played according to the difference data.
6. The method of claim 2, wherein the adjusting the target video being played based on the difference data further comprises:
and storing the target video stored by the server to the local so as to play the target video stored to the local in response to the video playing triggering operation of the specified target video.
7. The method of claim 2, wherein the difference data comprises at least one of:
advertisements, progress bars, additional interactive operation keys, and video decoration.
8. A video playback apparatus, comprising: the device comprises an adjusting module, a sending module and a playing module;
the sending module is configured to execute a video uploading triggering operation responding to the specified target video and upload the locally stored target video to the server; meanwhile, displaying the index of the local target video in a display interface;
the sending module is further configured to execute sending of a data acquisition request to the server in response to a play operation of the target video triggered by the index; the data acquisition request representation confirms whether the server stores the target video or not;
the playing module is configured to acquire and play the target video stored by the server under the condition that the server has stored the target video; the target video stored by the server is obtained by processing the uploaded target video according to a preset method;
the playing module is further configured to play the locally stored target video if the server does not store the target video;
the adjusting module is configured to, in the process of playing the target video stored locally, adjust the target video being played based on the target video stored in the server if the server has finished processing the uploaded target video according to a predetermined method and has stored the processed target video.
9. The apparatus of claim 8, wherein the adjustment module comprises:
an opportunity determination unit configured to perform determination of an opportunity to acquire a target video stored by the server;
a request sending unit configured to execute sending of a data acquisition request to the server based on the occasion;
the difference determining unit is configured to determine difference data of the local target video stored by the server when the target video stored by the server is acquired;
a video adjustment unit configured to perform adjustment of the target video being played based on the difference data.
10. The apparatus according to claim 9, wherein the timing determining unit determines the basis for acquiring the timing of the target video stored in the server, and comprises at least one of:
the network connection parameters of the client and the server, the current playing parameters of the target video being played and data representing the behavior preference of the user on video playing.
11. The apparatus according to claim 9, wherein the video adaptation unit is specifically configured to perform:
acquiring the current playing position of the target video being played;
and adjusting the target video being played according to the difference data after the playing position.
12. The apparatus according to claim 9, wherein the video adaptation unit is specifically configured to perform:
acquiring historical behavior data of a user; the historical behavior data represents the behavior preference of the user on video playing;
based on the historical behavior data, adjusting the target video being played according to the difference data.
13. The apparatus according to claim 9, wherein the video adaptation unit is specifically configured to perform:
and storing the target video stored by the server to the local so as to play the target video stored to the local in response to the video playing triggering operation of the specified target video.
14. The apparatus of claim 9, wherein the difference data comprises at least one of:
advertisements, progress bars, additional interactive operation keys, and video decoration.
15. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the executable instructions to implement the video playback method of any of claims 1 to 7.
16. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a video playback method as claimed in any one of claims 1 to 7.
CN202010260032.0A 2019-08-29 2020-04-03 Video playing method and device, electronic equipment and storage medium Active CN111294623B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910806952.5A CN110446083A (en) 2019-08-29 2019-08-29 Video broadcasting method, device, electronic equipment and storage medium
CN2019108069525 2019-08-29

Publications (2)

Publication Number Publication Date
CN111294623A CN111294623A (en) 2020-06-16
CN111294623B true CN111294623B (en) 2022-02-08

Family

ID=68438288

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910806952.5A Pending CN110446083A (en) 2019-08-29 2019-08-29 Video broadcasting method, device, electronic equipment and storage medium
CN202010260032.0A Active CN111294623B (en) 2019-08-29 2020-04-03 Video playing method and device, electronic equipment and storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201910806952.5A Pending CN110446083A (en) 2019-08-29 2019-08-29 Video broadcasting method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (2) CN110446083A (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111263190A (en) * 2020-02-27 2020-06-09 游艺星际(北京)科技有限公司 Video processing method and device, server and storage medium
CN111581434A (en) * 2020-04-29 2020-08-25 北京达佳互联信息技术有限公司 Video service providing method, video service providing device, electronic equipment and storage medium
CN111711837B (en) * 2020-05-14 2023-01-10 北京奇艺世纪科技有限公司 Target video changing method and device, electronic equipment and computer readable medium
CN112423098B (en) * 2020-11-20 2022-11-15 北京字节跳动网络技术有限公司 Video processing method, electronic device and storage medium
CN113438520B (en) * 2021-06-29 2023-01-03 北京奇艺世纪科技有限公司 Data processing method, device and system
CN114726891A (en) * 2022-03-28 2022-07-08 慧之安信息技术股份有限公司 Video transmission reporting method based on Internet of things
CN115543635B (en) * 2022-11-28 2023-08-15 成都泰盟软件有限公司 Dynamic adjustment method and device for virtual simulation resources and computer equipment
CN115955593A (en) * 2022-12-15 2023-04-11 九识(苏州)智能科技有限公司 Monitoring video playback system and method for unmanned vehicle and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7818350B2 (en) * 2005-02-28 2010-10-19 Yahoo! Inc. System and method for creating a collaborative playlist
CN100566296C (en) * 2006-06-23 2009-12-02 腾讯科技(深圳)有限公司 In procedure of buffering network living broadcast, play method, system and the client of advertisement
CN101420452A (en) * 2008-12-05 2009-04-29 深圳市迅雷网络技术有限公司 Video file publishing method and device
US8417720B2 (en) * 2009-03-10 2013-04-09 Nokia Corporation Method and apparatus for accessing content based on user geolocation
CN102938775A (en) * 2012-09-26 2013-02-20 新浪网技术(中国)有限公司 Issuing method, system and client of video microblog
CN104320707A (en) * 2014-09-19 2015-01-28 小米科技有限责任公司 Playback method and device of network video

Also Published As

Publication number Publication date
CN110446083A (en) 2019-11-12
CN111294623A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN111294623B (en) Video playing method and device, electronic equipment and storage medium
CN106791893B (en) Video live broadcasting method and device
CN111083512A (en) Switching method and device of live broadcast room, electronic equipment and storage medium
CN113411490B (en) Multimedia work publishing method and device, electronic equipment and storage medium
CN108966025B (en) Video playing method and device and computer readable storage medium
CN109348239B (en) Live broadcast fragment processing method and device, electronic equipment and storage medium
CN109039872B (en) Real-time voice information interaction method and device, electronic equipment and storage medium
CN109151565B (en) Method and device for playing voice, electronic equipment and storage medium
US20220312080A1 (en) Method for video processing, device, server, and storage medium
CN106507166B (en) Configuration method and device for smart television boot animation
CN112104883A (en) Live broadcast room sharing method, device and system and server
CN107122430B (en) Search result display method and device
US20180007420A1 (en) Method, device and system for recording television program
CN110719530A (en) Video playing method and device, electronic equipment and storage medium
EP4093040A1 (en) Video playback method and apparatus
CN112788354A (en) Live broadcast interaction method and device, electronic equipment, storage medium and program product
US20210165820A1 (en) Method and apparatus for recalling image file, control method and apparatus for recalling image file, and mobile terminal
CN113727200A (en) Video abstract information determination method and device, electronic equipment and storage medium
CN111479158B (en) Video display method and device, electronic equipment and storage medium
CN114025180A (en) Game operation synchronization system, method, device, equipment and storage medium
CN111736746A (en) Multimedia resource processing method and device, electronic equipment and storage medium
CN114245154B (en) Method and device for displaying virtual articles in game live broadcast room and electronic equipment
CN110620956A (en) Live broadcast virtual resource notification method and device, electronic equipment and storage medium
CN113613082A (en) Video playing method and device, electronic equipment and storage medium
CN107872620B (en) Video recording method and device and computer readable storage medium

Legal Events

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