CN112468876A - Resource playing method, device and system and readable storage medium - Google Patents
Resource playing method, device and system and readable storage medium Download PDFInfo
- Publication number
- CN112468876A CN112468876A CN202011486890.3A CN202011486890A CN112468876A CN 112468876 A CN112468876 A CN 112468876A CN 202011486890 A CN202011486890 A CN 202011486890A CN 112468876 A CN112468876 A CN 112468876A
- Authority
- CN
- China
- Prior art keywords
- resource
- playing
- progress
- loading
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004590 computer program Methods 0.000 claims description 12
- 230000008569 process Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000003111 delayed effect Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 208000003028 Stuttering Diseases 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44004—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
-
- 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440263—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the spatial resolution, e.g. for displaying on a connected PDA
-
- 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/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440281—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention provides a resource playing method, a device, a system and a readable storage medium, wherein the method comprises the following steps: sending a first request to a server, wherein the first request carries a target resource identifier; under the condition of receiving a first resource, loading and playing the first resource; loading a second resource in the case that the second resource is received; when the loading progress of the second resource is matched with the playing progress of the first resource, switching to play the second resource, wherein the second resource starts to play from a first target playing progress, and the first target playing progress is the playing progress of the first resource when the playing is switched; wherein the first resource and the second resource are both associated with the target resource identifier, and the resolution of the first resource is lower than the resolution of the second resource. The method reduces the loading time of the video, so that a user does not need to wait for a long time at the initial stage of video opening.
Description
Technical Field
The present invention relates to the field of video playing technologies, and in particular, to a resource playing method, device, system, and readable storage medium.
Background
Watching video has become a way for people to relax in life. However, when a user watches a video, due to the reason that the network is unstable or the network speed is slow, it often takes a lot of time to load the video at the initial watching stage of the video, and further, the video playing has a long waiting time and the playing effect is poor.
Disclosure of Invention
The embodiment of the invention provides a resource playing method, a device, a system and a readable storage medium, which are used for solving the problem that a user can open a video for watching only by waiting for a long time at the initial stage of watching the video.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a resource playing method, including:
sending a first request to a server, wherein the first request carries a target resource identifier;
under the condition of receiving a first resource, loading and playing the first resource;
loading a second resource in the case that the second resource is received;
when the loading progress of the second resource is matched with the playing progress of the first resource, switching to play the second resource;
the second resource starts playing from a first target playing progress, and the first target playing progress is the playing progress of the first resource when playing is switched;
the first resource and the second resource are both associated with the target resource identifier, and the resolution of the first resource is lower than the resolution of the second resource.
In a second aspect, an embodiment of the present invention further provides a resource playing apparatus, including:
the request module is used for sending a first request to a server, wherein the first request carries a target resource identifier;
the first loading module is used for loading and playing the first resource;
the second loading module is used for loading the second resource;
the switching module is used for switching and playing the second resource when the loading progress of the second resource is matched with the playing progress of the first resource, wherein the second resource starts to be played from a first target playing progress, and the first target playing progress is the playing progress of the first resource when the playing is switched;
wherein the first resource and the second resource are both associated with the target resource identifier, and the resolution of the first resource is lower than the resolution of the second resource.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the above method when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method described above.
The embodiment of the invention not only reduces the loading time of the video, so that a user does not need to wait for a long time at the initial stage of video opening, but also can realize seamless switching between the first resource and the second resource in the playing process of the target resource.
Drawings
Fig. 1 is a flowchart of a resource playing method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating switching to play a second resource according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another method for switching to play a second resource according to another embodiment of the present invention;
fig. 4 is a flowchart after switching to play the second resource according to an embodiment of the present invention;
fig. 5 is another flowchart after switching to play the second resource according to the embodiment of the present invention;
fig. 6 is a schematic structural diagram of a resource playing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help the full understanding of the embodiments of the present invention. Thus, it will be apparent to those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Moreover, the use of "first," "second," and the like, herein does not denote any order, quantity, or importance, but rather the terms first, second, and the like are used to distinguish one element from another. Also, the use of the terms "a" or "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present invention. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
As shown in fig. 1 to fig. 5, an embodiment of the present invention provides a resource playing method, including the following steps:
102, loading and playing a first resource under the condition of receiving the first resource;
103, loading the second resource under the condition of receiving the second resource;
104, switching to play the second resource when the loading progress of the second resource is matched with the playing progress of the first resource, wherein the second resource starts to play from a first target playing progress, and the first target playing progress is the playing progress of the first resource when the playing is switched;
the first resource and the second resource are both associated with the target resource identifier, and the resolution of the first resource is lower than that of the second resource.
The first request may be to enable the server to send the first resource or the second resource to the playing device according to a target resource identifier carried in the first request, where the server performs transcoding operation on the target resource in advance to transcode the target resource into the first resource and the second resource with different resolutions. After transcoding the target resource is completed, the first resource and the second resource are sent to a playing device, such as a computer, a mobile phone, an iPad, and the like, capable of playing the first resource and the second resource.
In one example, the server may transcode the same target resource into two video streams of high resolution and low resolution simultaneously, and then send both video streams to the playback device. In other examples, the same target resource may be transcoded into three video streams with different resolutions, such as smooth, standard definition, and high definition, and the specific types of the video streams with different resolutions may be determined according to actual situations.
The first resource and the second resource may be video, music, or image information, and are not limited in particular. The following description will mainly take the first resource and the second resource as video resources as an example.
For the matching of the loading progress of the second resource and the playing progress of the first resource, the playing progress of the first resource and the loading progress of the second resource may be the same; the first resource and the second resource may be loaded to a set threshold respectively.
In an application scenario, a first request carrying a target resource identifier may be sent to a server, and at this time, the server transcodes a target resource into a first resource and a second resource with different resolutions, and sends the first resource and the second resource to a playing device that can play the first resource and the second resource, where a resolution of the first resource is lower than a resolution of the second resource. After the user clicks the target resource, the player starts to load the first resource and the second resource at the same time, but the first resource and the second resource load the first frame at different times because the resolutions of the first resource and the second resource are different, and here, the resolution of the first resource is lower than that of the second resource, so the first resource loads the first frame at a time shorter than that of the second resource. Assuming that it takes 150ms for the first resource to load out the first frame and 300ms for the second resource to load out the first frame, it is readily understood that loading a high resolution video can cause the user to wait for a longer video. Therefore, the playing means first plays the first asset. And when the playing progress of the first resource is matched with the loading progress of the second resource, switching to play the second resource, and starting to play the second resource from the first target playing progress, namely starting to play the second resource from the playing progress of the first resource. In this way, a switched playback from the first resource to the second resource, i.e. a switched playback from low resolution to high resolution, is achieved.
According to the resource playing method, when the playing device plays the target resource, the first resource is received and played first, when the playing progress of the first resource is matched with the loading progress of the second resource, the first resource can be switched to be played by the second resource, and the second resource can be played from the playing progress of the first resource. When the user opens the target resource and wants to play the high-resolution resource (second resource), but the user does not load the high-resolution resource successfully in time, the user can play the loaded low-resolution resource (first resource) first, and then switch the first resource to the second resource for playing when the loading progress of the second resource is matched with the playing progress of the first resource. Therefore, the loading time of the video is reduced, so that a user does not need to wait for a long time at the initial stage of starting the target resource, and the seamless switching between the first resource and the second resource can be realized in the playing process of the target resource.
Optionally, as shown in fig. 2, in an embodiment, when the loading progress of the second resource matches the playing progress of the first resource, switching to play the second resource includes:
The preset timestamp may be a same time point in a progress bar played by the first resource and the second resource.
In an example, when the playing progress of the first resource matches the loading progress of the second resource, the first resource continues to play to the preset timestamp, and the second resource also continues to load to the preset timestamp. And after the preset time stamp is loaded, switching the first resource into a second resource for playing. Through setting the preset timestamp, the time is reserved for the playing device to respond to the switching of the playing second resource, and when the first resource is switched to the playing of the second resource, the second resource plays the played content of the first resource repeatedly, namely, the repeated playing of the same content is avoided, so that the user spends extra time to watch the same content, the time of the user is wasted, and the viewing experience of the user is influenced.
Optionally, as shown in fig. 3, in another embodiment, when the loading progress of the second resource matches the playing progress of the first resource, switching to play the second resource further includes:
Therefore, when the user clicks on the target resource and wants to watch the second resource corresponding to the target resource, and the second resource cannot be loaded in time based on the problems of network speed and the like, the first resource corresponding to the target resource can be played for the user to watch. And when the second resource is loaded to the same progress as the playing progress of the first resource, the first resource is switched to the second resource to be played immediately, so that the watching requirement of the user is met, and the time for the user to watch the target resource is not delayed.
In another embodiment, the first resource may be switched to the second resource for playing when the loading progress of the second resource is greater than the playing progress of the first resource. Therefore, the probability that the playing fluency of the whole target resource is influenced due to the fact that the second resource cannot be played after being played for a period of time can be reduced after the first resource is switched to the second resource to be played, and the effect of improving the playing fluency of the target resource can be achieved.
Optionally, referring to fig. 4, in a more preferred embodiment, when the loading progress of the second resource matches the playing progress of the first resource, after the playing of the second resource is switched, the method further includes:
Based on the fact that the playing progress of the second resource is equal to the loading progress of the second resource, the network speed at the moment is gradually slowed down. If the second resource is played continuously, the playing of the second resource may be jammed and slow, and the user may wait for some time before playing the second resource. Since the resolution of the first resource is smaller than that of the second resource, the network speed is reduced, the influence on the loading speed of the first resource is smaller than that of the second resource, and at this time, the loading speed of the first resource is greater than that of the second resource. After the second resource is switched to the first resource, the loading speed of the first resource may be greater than the playing speed of the first resource. It is easily understood that, in the above case, switching the second resource to the first resource for playback can reduce the probability of stuttering or slowing down the playback of the first resource.
In a more preferred embodiment, when the loading speed of the second resource gradually becomes slow, i.e. the loading progress of the second resource is still greater than the playing progress of the second resource, the second resource is switched to the first resource for playing. Therefore, the problems of pause and slowness of playing in the playing process of the second resource can be avoided as much as possible.
Optionally, as shown in fig. 5, in an embodiment, when the loading progress of the second resource matches the playing progress of the first resource, after the playing of the second resource is switched, the method further includes:
The preset network speed threshold may be a numerical value used for determining whether to switch between the first resource and the second resource, and when the current loaded network speed is less than the preset network speed threshold, the first resource is preferentially loaded so as to switch to play the first resource. Meanwhile, the second resource is suspended or preloaded under the condition that the loading of the first resource is not influenced, so that the bandwidth is increased to the first resource, and the playing fluency of the video is ensured; when the current loading network speed is greater than the preset network speed threshold and can be maintained for a certain time (namely, the current loading network speed exceeds the preset time, such as more than 3 seconds), the second resource is continuously played, the first resource can also be loaded, when the loading progress of the second resource is equal to the playing progress of the first resource, the second resource is switched to be played, and in order to protect the smoothness of playing, the first resource and the second resource can be seamlessly switched along with the change of the loading network speed.
In one example, the user opens the target resource, and the playing device loads the first resource and the second resource at the same time, but first plays the first resource, and after the first resource is played for a period of time, switches to the second resource for playing. After the second resource is played for a period of time, because the current loading network speed is less than the preset network speed threshold value, the second resource is switched to the first resource for playing, and the first resource starts playing from a third target playing progress, wherein the third playing progress is the playing progress of the second resource. Therefore, the two resources with different resolutions can be switched along with the change of the network speed, namely when the network speed reaches a preset network speed threshold value, the second resource is played, namely the high-resolution resource is played; and when the network speed is less than the preset network speed threshold value, switching to the first resource for playing, namely playing the low-resolution resource. Of course, after the second resource is switched to the first resource for playing, if the loading network speed is greater than the preset network speed threshold, the first resource may be switched to the second resource for playing. Therefore, the flexibility of switching between different resolution resources is improved, the time for the user to view the whole target resource is not delayed, namely, the user needs to spend corresponding time on viewing the target resource, extra time is not needed to be spent on the target resource, and the fluency of the whole target resource viewing process is enhanced.
Optionally, in another embodiment, when the loading progress of the second resource matches the playing progress of the first resource, after the second resource is switched to be played, the method further includes:
under the condition that a first input is received, selecting information carried by the first input is obtained; and fixedly playing the first resource or fixedly playing the second resource.
In an application scene, a user clicks a target resource to play, a playing device loads a first resource and a second resource at the same time, and the first resource is played first. And when the loading progress of the second resource is matched with the playing progress of the first resource, switching to play the second resource. At this time, the user may select to play the second resource fixedly according to the needs of the user, or switch the second resource to the first resource for playing. Therefore, the situation that the resources with two resolutions are switched back and forth along with the change of the network speed at any time is avoided, namely in the whole playing process of the target resource, the first resource and the second resource are switched back and forth to play all the time due to the instability of the network speed, and the impression of a user is further influenced. By means of the arrangement, user selectivity is enriched, and a user can select the resolution of the target resource according to the requirement of the user.
As shown in fig. 6, an embodiment of the present invention further provides a resource playing apparatus 700, including:
a request module 601, configured to send a first request to a server, where the first request carries a target resource identifier;
a first loading module 602, configured to load and play a first resource;
a second loading module 603, configured to load a second resource;
the switching module 604 is configured to switch to play the second resource when the loading progress of the second resource matches the playing progress of the first resource, where the second resource starts to be played from a first target playing progress, and the first target playing progress is the playing progress of the first resource when the playing is switched;
the first resource and the second resource are both associated with the target resource identifier, and the resolution of the first resource is lower than that of the second resource.
Optionally, the switching module 604 includes:
and when the loading progress of the second resource reaches the preset timestamp and the playing progress of the first resource reaches the preset timestamp, switching to play the second resource.
Optionally, the switching module 604 includes:
and when the loading progress of the second resource is equal to the playing progress of the first resource, switching to play the second resource.
Optionally, the resource playing apparatus 600 further includes:
and when the playing progress of the second resource is equal to the loading progress of the second resource, switching to play the first resource, starting to play the first resource from a second target playing progress, wherein the second target playing progress is the playing progress of the second resource during switching to play.
Optionally, after the switching module 604, the resource playing apparatus 600 further includes:
and when the current loading network speed is less than the preset network speed threshold value, switching to play the first resource, starting playing the first resource from a third target playing progress, wherein the third target playing progress is the playing progress of the second resource during switching to play.
Optionally, the resource playing apparatus 600 further includes:
and under the condition of receiving the first input, fixedly playing the first resource or fixedly playing the second resource according to the selection information carried by the first input.
It should be noted that the resource playing apparatus is an apparatus corresponding to the resource playing method, and all implementation manners in the method embodiments are applicable to the embodiment of the apparatus, and the same technical effect can be achieved.
The invention also provides a resource playing system, comprising:
the server is used for transcoding the original resource to obtain a first resource and a second resource, and both the first resource and the second resource are associated with the target resource identifier;
the electronic equipment is used for sending a first request to the server, and the first request carries the target resource identifier; under the condition of receiving the first resource, loading and playing the first resource; loading the second resource under the condition of receiving the second resource; when the loading progress of the second resource is matched with the playing progress of the first resource, switching to play the second resource, wherein the second resource starts to play from a first target playing progress, and the first target playing progress is the playing progress of the first resource when the playing is switched; the first resource and the second resource are both associated with the target resource identifier, and the resolution of the first resource is lower than that of the second resource.
It should be noted that the system is a system corresponding to the resource playing method, and all implementation manners in the embodiment of the method are applicable to the embodiment of the system, and the same technical effect can be achieved.
Optionally, an embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the resource playing method when executing the computer program.
Optionally, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the resource playing method is implemented.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. A method for playing a resource, comprising:
sending a first request to a server, wherein the first request carries a target resource identifier;
under the condition of receiving a first resource, loading and playing the first resource;
loading a second resource in the case that the second resource is received;
when the loading progress of the second resource is matched with the playing progress of the first resource, switching to play the second resource;
the second resource starts playing from a first target playing progress, and the first target playing progress is the playing progress of the first resource when playing is switched; the first resource and the second resource are both associated with the target resource identifier, and the resolution of the first resource is lower than the resolution of the second resource.
2. The method according to claim 1, wherein switching to play the second resource when the loading progress of the second resource matches the playing progress of the first resource comprises:
and switching to play the second resource when the loading progress of the second resource reaches a preset timestamp and the playing progress of the first resource reaches the preset timestamp.
3. The method of claim 1, wherein switching to play the second resource when the loading progress of the second resource matches the playing progress of the first resource, further comprises:
and when the loading progress of the second resource is equal to the playing progress of the first resource, switching to play the second resource.
4. The method according to claim 1, wherein when the loading progress of the second resource matches the playing progress of the first resource, after the second resource is switched to be played, the method further comprises:
and when the playing progress of the second resource is equal to the loading progress of the second resource, switching to play the first resource, wherein the first resource starts to play from a second target playing progress, and the second target playing progress is the playing progress of the second resource when the playing is switched.
5. The method according to claim 1, wherein when the loading progress of the second resource matches the playing progress of the first resource, after the second resource is switched to be played, the method further comprises:
and when the current loading network speed is less than a preset network speed threshold value, switching to play the first resource, wherein the first resource starts to play from a third target playing progress, and the third target playing progress is the playing progress of the second resource during switching to play.
6. The method according to claim 1, wherein when the loading progress of the second resource matches the playing progress of the first resource, after the second resource is switched to be played, the method further comprises:
and under the condition of receiving the first input, fixedly playing the first resource or fixedly playing the second resource according to the selection information carried by the first input.
7. A resource playing apparatus, comprising:
the request module is used for sending a first request to a server, wherein the first request carries a target resource identifier;
the first loading module is used for loading and playing the first resource;
the second loading module is used for loading the second resource;
the switching module is used for switching and playing the second resource when the loading progress of the second resource is matched with the playing progress of the first resource, wherein the second resource starts to be played from a first target playing progress, and the first target playing progress is the playing progress of the first resource when the playing is switched;
wherein the first resource and the second resource are both associated with the target resource identifier, and the resolution of the first resource is lower than the resolution of the second resource.
8. A resource playing system, comprising:
the server is used for transcoding the original resource to obtain a first resource and a second resource, and both the first resource and the second resource are associated with the target resource identifier;
the electronic equipment is used for sending a first request to the server, and the first request carries a target resource identifier; under the condition of receiving a first resource, loading and playing the first resource; loading a second resource in the case that the second resource is received; when the loading progress of the second resource is matched with the playing progress of the first resource, switching to play the second resource, wherein the second resource starts to play from a first target playing progress, and the first target playing progress is the playing progress of the first resource when the playing is switched; wherein the first resource and the second resource are both associated with the target resource identifier, and the resolution of the first resource is lower than the resolution of the second resource.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011486890.3A CN112468876A (en) | 2020-12-16 | 2020-12-16 | Resource playing method, device and system and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011486890.3A CN112468876A (en) | 2020-12-16 | 2020-12-16 | Resource playing method, device and system and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112468876A true CN112468876A (en) | 2021-03-09 |
Family
ID=74804683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011486890.3A Pending CN112468876A (en) | 2020-12-16 | 2020-12-16 | Resource playing method, device and system and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112468876A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115357211A (en) * | 2022-10-19 | 2022-11-18 | 北京尽微致广信息技术有限公司 | Audio playing method and device |
CN115499682A (en) * | 2021-06-17 | 2022-12-20 | 海信集团控股股份有限公司 | SFU (Small form-factor Unit) architecture-based video communication method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102149005A (en) * | 2011-04-29 | 2011-08-10 | 四川长虹电器股份有限公司 | Self-adaptive method for controlling network video quality |
CN104519372A (en) * | 2014-12-19 | 2015-04-15 | 深圳市九洲电器有限公司 | Switching method and switching system for streaming media playing |
CN106131610A (en) * | 2016-06-28 | 2016-11-16 | 乐视控股(北京)有限公司 | The online broadcasting method of video, equipment and device |
CN106375836A (en) * | 2016-09-27 | 2017-02-01 | 广东小天才科技有限公司 | Video resolution switching method and device |
CN107995220A (en) * | 2017-12-25 | 2018-05-04 | 张秀娟 | A kind of method of hls switchings resolution ratio |
CN108055250A (en) * | 2017-12-01 | 2018-05-18 | 暴风集团股份有限公司 | Video play device, method and terminal |
CN110677727A (en) * | 2019-09-10 | 2020-01-10 | 北京奇艺世纪科技有限公司 | Audio and video playing method and device, electronic equipment and storage medium |
-
2020
- 2020-12-16 CN CN202011486890.3A patent/CN112468876A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102149005A (en) * | 2011-04-29 | 2011-08-10 | 四川长虹电器股份有限公司 | Self-adaptive method for controlling network video quality |
CN104519372A (en) * | 2014-12-19 | 2015-04-15 | 深圳市九洲电器有限公司 | Switching method and switching system for streaming media playing |
CN106131610A (en) * | 2016-06-28 | 2016-11-16 | 乐视控股(北京)有限公司 | The online broadcasting method of video, equipment and device |
CN106375836A (en) * | 2016-09-27 | 2017-02-01 | 广东小天才科技有限公司 | Video resolution switching method and device |
CN108055250A (en) * | 2017-12-01 | 2018-05-18 | 暴风集团股份有限公司 | Video play device, method and terminal |
CN107995220A (en) * | 2017-12-25 | 2018-05-04 | 张秀娟 | A kind of method of hls switchings resolution ratio |
CN110677727A (en) * | 2019-09-10 | 2020-01-10 | 北京奇艺世纪科技有限公司 | Audio and video playing method and device, electronic equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115499682A (en) * | 2021-06-17 | 2022-12-20 | 海信集团控股股份有限公司 | SFU (Small form-factor Unit) architecture-based video communication method and device |
CN115357211A (en) * | 2022-10-19 | 2022-11-18 | 北京尽微致广信息技术有限公司 | Audio playing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10785529B2 (en) | Anticipatory video signal reception and processing | |
KR101008764B1 (en) | Method and system for improving interactive media response systems using visual cues | |
KR102536652B1 (en) | Dynamic reduction of alternative content playback to support aligning the end of the alternative content with the end of the substitute content. | |
CN108566561B (en) | Video playing method, device and storage medium | |
US10051334B2 (en) | Apparatus and method for resuming playing of media source, and smart television | |
CN110636370B (en) | Video processing method and device, electronic equipment and readable medium | |
US8290349B2 (en) | Playback apparatus, method, and program | |
JP2020519094A (en) | Video playback method, device, and system | |
EP3697088A1 (en) | Video sending and receiving method, device, and terminal | |
CN110582012B (en) | Video switching method, video processing device and storage medium | |
CN112637661B (en) | Video stream switching method and device, computer storage medium and electronic equipment | |
JP5082152B2 (en) | Video playback device, video conversion playback system, and program | |
CN112468876A (en) | Resource playing method, device and system and readable storage medium | |
US11356739B2 (en) | Video playback method, terminal apparatus, and storage medium | |
US7751687B2 (en) | Data processing apparatus, data processing method, data processing system, program, and storage medium | |
CN114268830A (en) | Cloud director synchronization method, device, equipment and storage medium | |
JP7559156B2 (en) | Method, system, and medium for streaming video content using an adaptive buffer | |
US11589119B2 (en) | Pseudo seamless switching method, device and media for web playing different video sources | |
CN117121463A (en) | Switching between delivery of customizable content and pre-authored media content | |
CN108156515B (en) | Video playing method, smart television and computer readable storage medium | |
CN113556595B (en) | Miracast-based playback method and device | |
CN118138713B (en) | Multiparty call method, multiparty call device, electronic equipment, storage medium and product | |
KR20190001601A (en) | Methods and Apparatus for Presentation Customization and Interactivity | |
CN113132806B (en) | Playing terminal and program playing method thereof | |
US20030149977A1 (en) | Transferring large bitmap data using analog switching |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210309 |
|
RJ01 | Rejection of invention patent application after publication |