CN112368987A - Media playing method and playing equipment - Google Patents

Media playing method and playing equipment Download PDF

Info

Publication number
CN112368987A
CN112368987A CN201880094871.0A CN201880094871A CN112368987A CN 112368987 A CN112368987 A CN 112368987A CN 201880094871 A CN201880094871 A CN 201880094871A CN 112368987 A CN112368987 A CN 112368987A
Authority
CN
China
Prior art keywords
media data
playing
network access
access device
reserved
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.)
Granted
Application number
CN201880094871.0A
Other languages
Chinese (zh)
Other versions
CN112368987B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN112368987A publication Critical patent/CN112368987A/en
Application granted granted Critical
Publication of CN112368987B publication Critical patent/CN112368987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Abstract

The embodiment of the application discloses a media playing method and a playing device. The method may comprise: the playing device firstly caches the media data from the streaming media server through the connected first network access device, and plays the media data. Then, the reserved media data is determined from the buffered media data, and the reserved media data is not played after the connection with the first network access device is disconnected and the second network access device is not connected. And then, when the first network access equipment is disconnected, playing the first part of the cached media data. And finally, when the second network access equipment is connected, playing the second part of the cached media data, and caching the media data from the streaming media server through the second network access equipment. Thus, the speed of resuming the media playing can be improved under the condition of network disconnection and reconnection.

Description

Media playing method and playing equipment Technical Field
The present application relates to the field of media playing technologies, and in particular, to a media playing method and a playing device.
Background
With the development of internet technology, viewing network media resources through the internet has become a life style of people. When people watch network media resources on the internet through the media player, the media player can download the data of the media resources to the buffer area of the media player while playing, when the media player is disconnected with the internet, the media player can continue to play the media data in the buffer area until the media data in the buffer area is played completely, and the media player can stop playing the media data. After the media player is disconnected from the network and reconnected, the media player needs to wait for downloading the media data into the buffer area and then starts to play the media data continuously. This can result in a poor viewing experience for the user with an excessive wait time.
Disclosure of Invention
The application provides a media playing method and playing equipment, which can improve the speed of restoring media playing under the condition of network disconnection and reconnection.
A first aspect of the present application provides a media playing method, including: first, media data is cached from a streaming server through a first network access device connected thereto, and the media data is played. Then, the reserved media data is determined from the buffered media data, and the reserved media data is not played after the connection with the first network access device is disconnected and the reserved media data is not connected to the second network access device. And then, when the first network access equipment is disconnected, playing the first part of the cached media data. Then, when the second network access equipment is connected, playing a second part of the cached media data, and caching the media data from the streaming media server through the second network access equipment; wherein the buffered media data includes the first portion of buffered media data and the second portion of buffered media data, the second portion of buffered media data including the reserved media data.
In this application, the second network access device may be the first network access device, or may be another network access device other than the first network access device.
By implementing the method of the first aspect, the playing device plays the media data from the cache edge of the streaming media server, and determines the reserved media data, the reserved media data is not played under the condition that the playing device is disconnected from the first network access device and is not connected to the second network access device, the reserved media data is played when the playing device is connected to the second network access device, and simultaneously, the IP address can be obtained at the playing time of playing the reserved media data to reconnect to the streaming media server. Therefore, the reserved media data strives for time for background acquisition of the IP address, and the user can still enjoy video or audio in the network disconnection recovery stage (the stage of acquiring the IP address). In addition, after the IP address is obtained, the playback device reconnected to the streaming server can normally obtain the media data from the streaming server. For the user, the streaming media loading efficiency in the network recovery stage is greatly improved, and the user experience is improved.
With reference to the first aspect, in a first possible implementation manner of the first aspect, after disconnecting from the first network access device, when playing the cached media data to the reserved media data, the second network access device is not connected yet, where the second part of the cached media data is equal to the reserved media data, the method further includes: the playing of the buffered media data is suspended. The playing the second part of the buffered media data when connected to the second network access device includes: the reserved media data is played when connected to the second network access device.
That is, after the connection with the first network access device is disconnected, if the playing device has not established a connection with the second network access device, the playing device stops playing when playing the cached media data to the reserved media data, so that the reserved media data can be played after the playing device re-accesses the network device, and the IP address is obtained within the time period of playing the reserved media data and the streaming media server is successfully accessed, that is, after the network is disconnected and reconnected, the reserved media data is reserved, so that the reserved media data can be played immediately after being reconnected to the access network device without waiting for the connection to be established with the streaming media server again, thereby improving user experience.
With reference to the first aspect, in a second possible implementation manner of the first aspect, when connecting to a second network access device, the reserved media data is not played yet, and the second part of the buffered media data is larger than the reserved media data. That is to say, when the playing device has not played the reserved media data, the playing device has already been connected to the second network access device, and the playing can be continuously played without pause in the process from the network interruption to the network reconnection, which improves the viewing experience of the user.
With reference to the first aspect or any one of the first to the second possible implementation manners of the first aspect, in a third possible implementation manner of the first aspect, the playing duration of the reserved media data is determined by a historical experience value of a time required to obtain an IP address, where the IP address is used for caching the media data from a streaming media server through a network access device. That is to say, the playback device may determine the playback duration of the reserved media data according to the historical experience value of the IP address obtained by the playback device. Therefore, after the network is disconnected and reconnected, the playing equipment does not need to wait for obtaining the IP address to start playing the media data, and the waiting time for users to watch the media data is reduced.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the historical experience value includes a plurality of time values required for obtaining the IP address multiple times. The reserved playing time of the media data is determined by a historical experience value of the time required for acquiring the IP address, and specifically includes: taking the average time value of a plurality of time values required by the multiple times of obtaining the IP addresses as the playing duration of the reserved media data; or, taking the maximum time value of the plurality of time values as the playing time length of the reserved media data. That is to say, the playing device may determine the playing time of the reserved media data according to the time value required for obtaining the IP address for multiple times in the historical experience value, and more accurately determine the playing time of the reserved media data, thereby reducing the probability of interruption of playing the media data after the playing device is reconnected to the second network access device.
With reference to the first aspect, in a fifth possible implementation manner of the first aspect, the connecting to the second network access device includes: and connecting to the second network access device through a wired communication connection. The playing the second part of the cached media data when the second network access device is connected to the second network access device specifically includes: and when the state of the wired network port is detected to be switched from the de-enabling state to the enabling state, playing the second part of the buffered media data. Wherein the wired network port is used for connecting to the second network access device. That is, if the playback device is connected to the second network access device by wire, the playback device may play the second portion of the buffered media data when detecting that the state of the wired port is switched from the disable state to the enable state.
With reference to the first aspect, in a sixth possible implementation manner of the first aspect, the connecting to the second network access device includes: and connecting to the second network access device through a wireless communication connection. The playing the second part of the cached media data when the second network access device is connected to the second network access device specifically includes: and when the identity authentication of the wireless communication connection with the second network access equipment is completed, playing the second part of the cached media data. That is, if the playback device is wirelessly connected to the second network access device, the playback device may play the second portion of the cached media data when the authentication of the wireless communication connection with the second network access device is completed.
In a second aspect, the present application provides a playback device, including: the device comprises a playing unit, a caching unit and a determining unit; the caching unit is used for caching the media data from the streaming media server through the connected first network access equipment. The playing unit is used for playing the media data. The determining unit is further configured to determine reserved media data from the buffered media data, where the reserved media data is not played after the playing device is disconnected from the first network access device and is not connected to the second network access device. The playing unit is further configured to play the first part of the buffered media data when the first network access device is disconnected. The playing unit is further configured to play a second part of the cached media data when the playing device is connected to the second network access device, and cache the media data from the streaming media server through the second network access device. Wherein the buffered media data includes the first portion of buffered media data and the second portion of buffered media data, the second portion of buffered media data including the reserved media data.
In this application, the second network access device may be the first network access device, or may be another network access device other than the first network access device. The playing device plays the data of the first media from the streaming media server at the time of caching, when the playing device is disconnected with the first network access device, the playing device can determine the reserved media data, and the reserved media data is reserved to the playing device to be played when the playing device is connected to the second network access device, and the IP address can be obtained by using the playing time of the reserved media data. Therefore, the time point for playing the media data can be advanced when the network is disconnected and recovered, the time for the user to wait for the media data to be played after the network is disconnected and recovered is reduced, and the user experience is improved.
With reference to the second aspect, in a first possible implementation manner of the second aspect, after the playing device is disconnected from the first network access device, when the playing unit plays the buffered media data to the reserved media data, the playing device is not connected to the second network access device, and the second part of the buffered media data is equal to the reserved media data. A playback unit further configured to: after the playing device is disconnected from the first network access device, when the playing unit plays the cached media data to the reserved media data, the playing device is not connected to the second network access device, and the playing of the reserved media data is suspended. The playing unit is further specifically configured to: and when the playing device is connected to the second network access device, playing the reserved media data. That is, after the connection with the first network access device is disconnected, if the playing device has not established a connection with the second network access device, the playing device stops playing when playing the cached media data to the reserved media data, so that the reserved media data can be played after the playing device re-accesses the network device, and the IP address is obtained within the time period of playing the reserved media data and the streaming media server is successfully accessed, that is, after the network is disconnected and reconnected, the reserved media data is reserved, so that the reserved media data can be played immediately after being reconnected to the access network device without waiting for the connection to be established with the streaming media server again, thereby improving user experience.
With reference to the second aspect, in a second possible implementation manner of the second aspect, when connecting to a second network access device, the playing unit has not played back the reserved media data, and the second part of the buffered media data is larger than the reserved media data. That is to say, when the playing device has not played the reserved media data, the playing device has already been connected to the second network access device, and the playing can be continuously played without pause in the process from the network interruption to the network reconnection, which improves the viewing experience of the user.
With reference to the second aspect or any one of the first to the second possible implementation manners of the second aspect, in a third possible implementation manner of the second aspect, the playing device further includes an obtaining unit, where the obtaining unit is configured to obtain an IP address. The playing duration of the reserved media data is determined by a historical experience value of the time required by the obtaining unit to obtain the IP address, and the IP address is used for the caching unit to cache the media data from the streaming media server through the network access device. That is to say, the playback device may determine the playback duration of the reserved media data according to the historical experience value of the IP address obtained by the playback device. Therefore, after the network is disconnected and reconnected, the playing equipment does not need to wait for obtaining the IP address to start playing the media data, and the waiting time for users to watch the media data is reduced.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the historical experience value includes a plurality of time values required for the obtaining unit to obtain the IP address multiple times. The reserved media data is determined by the historical experience value of the time required by the acquiring unit to acquire the IP address, and specifically includes: taking the average time value of a plurality of time values required by the multiple times of obtaining the IP addresses as the playing duration of the reserved media data; or, the maximum time value in the plurality of time values is taken as the playing time length of the reserved media data. That is to say, the playing device may determine the playing time of the reserved media data according to the time value required for obtaining the IP address for multiple times in the historical experience value, and more accurately determine the playing time of the reserved media data, thereby reducing the probability of interruption of playing the media data after the playing device is reconnected to the second network access device.
With reference to the second aspect, in a fifth possible implementation manner of the second aspect, the playing device is specifically configured to: and connecting to the second network access device through a wired communication connection. The playing unit is specifically configured to: and when the state of the wired network port of the playing device is switched from the disable state to the enable state, playing the second part of the cached media data. That is, if the playback device is connected to the second network access device by wire, the playback device may play the second portion of the buffered media data when detecting that the state of the wired port is switched from the disable state to the enable state.
With reference to the second aspect, in a sixth possible implementation manner of the second aspect, the playing device is specifically configured to: and connecting to the second network access device through a wireless communication connection. The playing unit is specifically configured to: and when the playing equipment and the second network access equipment finish the identity authentication of the wireless communication connection, playing the second part of the cached media data. That is, if the playback device is wirelessly connected to the second network access device, the playback device may play the second portion of the cached media data when the authentication of the wireless communication connection with the second network access device is completed.
In a third aspect, the present application provides a playback device, including: a processor and a memory; wherein the processor is configured to call the software instructions in the memory to perform the following operations: and caching the media data from the streaming media server to the memory through the connected first network access equipment to play the media data. And determining reserved media data from the cached media data, wherein the reserved media data is not played under the condition that the transceiver is disconnected from the first network access equipment and is not connected to the second network access equipment. And when the transceiver is disconnected with the first network access device, playing the first part of the cached media data. When the transceiver is connected to the second network access equipment, playing a second part of the cached media data, and caching the media data from the streaming media server through the second network access equipment; wherein the buffered media data comprises the first portion of buffered media data and the second portion of buffered media data, the second portion of buffered media data comprising the reserved media data.
In this application, the second network access device may be the first network access device, or may be another network access device other than the first network access device. The playing device plays the data of the first media from the streaming media server at the time of caching, when the playing device is disconnected with the first network access device, the playing device can determine the reserved media data, and the reserved media data is reserved to the playing device to be played when the playing device is connected to the second network access device, and the IP address can be obtained by using the playing time of the reserved media data. Therefore, the time point for playing the media data can be advanced when the network is disconnected and recovered, the time for the user to wait for the media data to be played after the network is disconnected and recovered is reduced, and the user experience is improved.
With reference to the third aspect, in a first possible implementation manner of the third aspect, after disconnecting from the first network access device, when the processor plays the buffered media data to the reserved media data, the processor is not yet connected to the second network access device, and the second part of the buffered media data is equal to the reserved media data. A processor further configured to: when the processor plays the buffered media data to the reserved media data after disconnecting from the first network access device, the processor is not connected to the second network access device, and the reserved media data is paused to be played. The processor is further specifically configured to: and playing the reserved media data when connecting to the second network access equipment. That is, after the connection with the first network access device is disconnected, if the playing device has not established a connection with the second network access device, the playing device stops playing when playing the cached media data to the reserved media data, so that after the network of the playing device is disconnected, on the premise that the media data which is not played is reserved, as much media data as possible can be played for the user to view.
With reference to the third aspect, in a second possible implementation manner of the third aspect,
when connected to a second network access device, the processor has not yet played back to the reserved media data, and the second portion of buffered media data is larger than the reserved media data. That is to say, when the playing device has not played the reserved media data, the playing device has already been connected to the second network access device, and the playing can be continuously played without pause in the process from the network interruption to the network reconnection, which improves the viewing experience of the user.
With reference to the third aspect or any one of the first to the second possible implementation manners of the third aspect, in a third possible implementation manner of the second aspect, the play duration of the reserved media data is determined by a historical experience value of a time required by the transceiver to acquire an IP address, where the IP address is used for the transceiver to cache the media data from the streaming media server through the network access device. That is to say, the playback device may determine the playback duration of the reserved media data according to the historical experience value of the IP address obtained by the playback device. Therefore, after the network is disconnected and reconnected, the playing equipment does not need to wait for obtaining the IP address to start playing the media data, and the waiting time for users to watch the media data is reduced.
With reference to the third possible implementation manner of the third aspect, in a fourth possible implementation manner of the first aspect, the historical experience value includes a plurality of time values required for obtaining the IP address multiple times. The reserved media data is determined by a historical experience value of time required for acquiring the IP address, and specifically includes: taking the average time value of a plurality of time values required by the multiple times of obtaining the IP addresses as the playing duration of the reserved media data; or, the maximum time value in the plurality of time values is taken as the playing time length of the reserved media data. That is to say, the playing device may determine the playing time of the reserved media data according to the time value required for obtaining the IP address for multiple times in the historical experience value, and more accurately determine the playing time of the reserved media data, thereby reducing the probability of interruption of playing the media data after the playing device is reconnected to the second network access device.
With reference to the third aspect, in a fifth possible implementation manner of the third aspect, the transceiver is specifically configured to: and connecting to the second network access device through a wired communication connection. The processor is specifically configured to: and when the state of the wired network port is detected to be switched from the de-enabling state to the enabling state, playing the second part of the buffered media data. That is, if the playback device is connected to the second network access device by wire, the playback device may play the second portion of the buffered media data when detecting that the state of the wired port is switched from the disable state to the enable state.
The transceiver is specifically configured to: and connecting to the second network access device through a wireless communication connection. The processor is specifically configured to: and when the identity authentication of the wireless communication connection with the second network access equipment is completed, playing the second part of the cached media data. That is, if the playback device is wirelessly connected to the second network access device, the playback device may play the second portion of the cached media data when the authentication of the wireless communication connection with the second network access device is completed.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon program instructions for implementing the method of the first aspect, or any one of its possible implementations, when the program instructions are run on a processor.
In a fifth aspect, the present application provides a computer program product characterized in that it implements the method described in the first aspect, or any one of its possible implementations, when run on a processor.
Drawings
The drawings to be used in the embodiments of the present application will be described below.
Fig. 1 is a schematic diagram of an architecture of a multimedia system referred to in the present application;
fig. 2 is a schematic flowchart of a media playing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a media playing method according to another embodiment of the present application;
fig. 4 is a schematic diagram of a display of a playing progress provided by an embodiment of the present application;
fig. 5 is a schematic diagram of a display of a playing progress provided by another embodiment of the present application;
fig. 6 is a schematic structural diagram of a playback device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a playback device according to another embodiment of the present application;
fig. 8 is a schematic diagram of information interaction of internal devices of a playback device according to an embodiment of the present application.
Detailed Description
The terms "first," "second," and the like in the description and in the claims of the present application and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises" and "comprising," as well as any variations thereof, are intended to cover a non-exclusive inclusion, such as a list of steps or elements. A method, system, article, or apparatus is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, system, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The terminology used in the description of the embodiments section of the present application is for the purpose of describing particular embodiments only,
the embodiments of the present application will be described below with reference to the drawings.
Referring to fig. 1, fig. 1 is a schematic diagram of a multimedia system architecture according to an embodiment of the present disclosure, where the multimedia system architecture 100 may include an internet 101, a streaming server 102, a network access device 103, and a playing device 104. Wherein:
the streaming media server 102 may be a widely distributed video server or a Content Delivery Network (CDN) server based on the internet 101.
The network access device 103 may be a router, may support a Dynamic Host Configuration Protocol (DHCP) function, and may be configured to dynamically allocate an IP address to the playback device 104. The network access device 103 may be in wired communication connection or wireless communication connection with the playback device 104.
The playing device 104 may be a laptop computer (laptop computer), a set-top box (STB), a Personal Computer (PC), a tablet computer (tablet computer), an interactive television (IPTV), or a Smart Handheld Device (SHD). After receiving the IP address assigned by the network device 103, the playing device 104 can access the internet 101 and download the multimedia data in the streaming server 102 in the internet 101.
A media playing method provided in the present application is described below based on the multimedia system architecture shown in fig. 1.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a media playing method according to an embodiment of the present disclosure, and as shown in fig. 2, the media playing method may include: S201-S212. The second network access device may be the first network access device, and the second network access device may also be another network access device other than the first network access device.
S201, the playing device sends an access request of the media data to the first network access device.
The media data access request may carry a source IP address and a destination IP address, where the source IP address in the media data access request is used to indicate an IP address of the playback device, and the destination IP address in the media data access request is used to indicate an IP address of a streaming media server where the media data is located. After receiving the access request of the media data sent by the playing device, the first network access device may forward the access request of the media data to the streaming media server directly according to the source IP address or forward the access request of the media data to the streaming media server through other network devices.
S202, the playing device obtains the media data forwarded by the first network access device.
After receiving the access request of the media data, the streaming media server may send the media data to the first network access device, where the media data may carry a source IP address and a destination IP address. The source IP address carried in the media data is used to indicate an IP address of the streaming media server, the destination IP address in the media data is used to indicate an IP address of the playback device, and after receiving the media data sent by the streaming media server, the first network access device can send the media data to the playback device according to the destination IP address carried in the media data, and the playback device can obtain the media data.
S203, the playing device caches and plays the media data.
The media data may be video data, audio data, etc. The playback device may support playback control functions such as start, stop, rewind, fast forward or pause of media data.
S204, the playing device determines the reserved media data from the cached media data. The reserved media data is not played after the connection with the playing device and the first network access device is disconnected and the reserved media data is not played under the condition of not being connected to the second network access device.
The reserved play-out time of the media data may be 1s, 2s, 3s or longer. Optionally, the playing time length of the reserved media data may also be determined by a historical experience value, and the historical experience value may be determined by a time value required for the playing device to acquire the IP address. In a possible implementation manner, the historical experience value may also be determined by a plurality of time values required by the playback device to acquire the IP address for multiple times, and the playback duration of the reserved media data may be an average time value or a maximum time value of the time values required to acquire the IP address for multiple times, or a time value calculated by another algorithm according to the time required to acquire the IP address for multiple times. For example, in the historical experience value, the playing device acquires the IP address 3 times in total, the time taken to acquire the IP address for the first time is 2s, the time taken to acquire the IP address for the second time is 1s, and the time taken to acquire the IP address for the third time is 3s, so that the playing device may determine the maximum time value of the times taken to acquire the IP address for the third time as the playing time length of the reserved media data, that is, determine the playing time length of the reserved media data as 3 s. The examples are merely illustrative of the present application and should not be construed as limiting. Therefore, the playing device records the time length required by obtaining the IP address each time, and then can determine the proper time length of the reserved media data according to the time length required by obtaining the IP address before under the condition that the playing device is disconnected from the network, so that the probability of interruption of playing the media data after the playing device is reconnected to the second network access device is reduced.
S205, when the playing device is disconnected with the first network access device, playing the first part of the cached media data.
The buffered media data includes a first portion of buffered media data and a second portion of buffered media data, and the second portion of buffered media data includes the reserved media data. The first part of the buffered media data may be the buffered media data played by the playing device in a period from when the playing device is disconnected from the first network access device to when the playing device is connected to the second network access device. The second portion of buffered media data may be media data that was buffered but not played by the playback device when connected to the second network access device.
The disconnection of the communication between the playing device and the first network access device may be a disconnection of a wired communication or a disconnection of a wireless communication. If the wired communication connection between the playing device and the first network access device is disconnected, the playing device may detect a state of a wired internet access on the playing device to determine whether the communication connection between the playing device and the first network access device is disconnected, and if the state of the wired internet access on the playing device is switched from enable to disable, it may be determined that the communication connection between the playing device and the first network access device is disconnected. If the playing device is in wireless communication connection with the first network access device, the playing device may periodically send an access request to the first network access device, and if the playing device does not receive a response to the access request from the first network access device, the playing device may determine that the communication connection between the playing device and the first network access device is disconnected.
S206, the playing device establishes connection with the second network access device.
The playing device may establish a wired communication connection with the second network access device, or may establish a wireless communication connection with the second network access device.
If the playing device establishes wired communication connection with the second network access device, the playing device may detect a state of the internet access of the playing device to determine whether to establish wired communication connection with the second network access device, and if the playing device detects that the state of the wired internet access of the playing device is switched from the disable state to the enable state, the playing device may determine that the playing device establishes wired communication connection with the second network access device.
If the playing device establishes the wireless communication connection with the second network access device, the playing device may detect whether the playing device and the second network access device complete the identity authentication of the wireless communication connection, and if the identity authentication is completed, the playing device may determine that the playing device and the second network access device establish the wireless communication connection. The process of establishing wireless communication between the playback device and the second network access device may be that, first, the playback device scans a wireless signal sent by the second network access device, then, the playback device may perform identity authentication with the second network access device, and finally, when the playback device completes identity authentication with the second network access device, the playback device may complete establishing communication connection with the second network access device. The method for performing identity authentication between the playback device and the second network access device may include: open-system authentication (open-system authentication), shared-key authentication (shared-key authentication), pre-shared key (PSK) authentication, and the like.
And S207, when the playing device is connected to the second network access device, the playing device plays the second part of the cached media data.
Optionally, after the playing device is disconnected from the first network access device, when the buffered media data is played to the reserved media data, the playing device is not connected to the second network access device yet, and the playing device suspends playing the buffered media data, where the second part of the buffered media data is equal to the reserved media data. That is, after the playing device is disconnected from the first network access device, if the playing device has not been connected to the second network access device, the playing device stops playing when playing the cached media data to the reserved media data, so that after the playing device is disconnected from the network, on the premise that the media data which is not played is reserved, as much media data as possible can be played for the user to view.
Optionally, when the network access device is connected to the second network access device, the playing device has not played the reserved media data, the second part of cached media data is larger than the reserved media data, and the playing device may continue to cache and play the media data normally without interruption of playing due to the fact that no cached data is available. That is to say, when the playing device has not played the reserved media data, the playing device has already been connected to the second network access device, and the playing can be continuously played without pause in the process from the network interruption to the network reconnection, which improves the viewing experience of the user.
And S208, under the condition that the playing equipment is connected to the second network access equipment, the playing equipment sends a request for acquiring the IP address to the second network access equipment.
S209, the playing device acquires the IP address distributed to the playing device by the second network access device.
The playback device may acquire the IP address based on a Dynamic Host Configuration Protocol (DHCP) mechanism. Therefore, the DHCP client is a playing device, and the DHCP server may be the second network access device, or another device connected to a local area network or a wireless local area network where the second network access device is located.
Taking the DHCP server as the second network access device as an example, the process of acquiring the IP address by the playback device will be specifically described below. The following examples are merely illustrative of the present application and should not be construed as limiting.
Firstly, the playing device sends a request for acquiring an IP address to the second network access device, where the request for acquiring the IP address may be DHCP discovery information, and the playing device sends the DHCP discovery information in a broadcast manner through the second network access device to find the DHCP server. Then, the second network access device serving as the DHCP server may receive the DHCP discovery information, and the second network access device selects one IP address from the IP addresses that have not been allocated yet and allocates the selected IP address to the playback device, that is, the playback device may receive DHCP offer information sent by the second network access device, where the DHCP offer information includes the IP address allocated to the playback device. If there are multiple DHCP servers, the playback device may only accept the first DHCP offer received. Then, after the playback device receives the DHCP offer information sent by the second network access device, the playback device may broadcast DHCP request information including an IP address requested from the DHCP server selected by the playback device. Finally, after the second network access device receives the DHCP request information sent by the playback device, the second network access device may send DHCP acknowledgement information to the playback device, where the acknowledgement information includes an IP address allocated to the playback device by the second network access device.
Optionally, the second network access device and the first network access device may be in the same local area network or wireless local area network. That is, the playback device reconnects to the lan or the wireless lan before the playback device is disconnected from the first network access device, and at this time, the playback device may directly broadcast the DHCP request information including the IP address previously assigned to the playback device without sending the DHCP discovery information again. After the second network access device receives the DHCP request information with the IP address previously allocated to the playback device, the second network access device sends a DHCP acknowledge information to the playback device, so that the playback device continues to use the IP address allocated last time. If the IP address allocated to the playing device last time cannot be allocated to the playing device for use, the second network access device may send DHCP negative information to the playing device, where the DHCP negative information is used to instruct the playing device to send the DHCP discovery information to obtain a new IP address.
Under the condition that the playing device is connected to the second network access device, the playing device may execute step S207 to play the cached but unplayed media data, and simultaneously execute step S208 in parallel, under the condition that the playing device is connected to the second network access device, the playing device sends a request for acquiring an IP address to the second network access device, and S209 the playing device acquires the IP address allocated to the playing device by the second network access device. Therefore, after the first network access device is disconnected, the execution time is provided for the playing device to acquire the IP address through the reserved time, and the time for waiting for the playing device to recover playing is reduced.
S210, the playing device sends an access request of the media data to the second network access device.
The media data access request may carry a source IP address and a destination IP address, where the source IP address in the media data access request is used to indicate an IP address of the playback device, and the destination IP address in the media data access request is used to indicate an IP address of a streaming media server where the media data is located. After receiving the access request of the media data sent by the playing device, the second network access device may forward the access request of the media data to the streaming media server directly according to the source IP address or forward the access request of the media data to the streaming media server through other network devices.
S211, the playing device obtains the media data forwarded by the second network access device.
After receiving the access request of the media data, the streaming media server may send the media data to the second network access device, where the media data may carry a source IP address and a destination IP address. The source IP address carried in the media data is used to indicate an IP address of the streaming media server, the destination IP address in the media data is used to indicate an IP address of the playback device, and after receiving the media data sent by the streaming media server, the second network access device can send the media data to the playback device according to the destination IP address carried in the media data, and the playback device can obtain the media data.
S212, the playing device continues to cache and play the media data.
The playing device may continue to cache and play the media data at the position where the caching was paused when the playing device is disconnected from the first network access device. For example, when the playback device is disconnected from the first network access device, the playback device caches 30 minutes and 20 seconds of a segment of video, and after the playback device acquires the media data forwarded by the second network access device, the playback device may continue to cache the video from 30 minutes and 20 seconds of the video. The examples are merely illustrative of the present application and should not be construed as limiting.
In the embodiment of the application, the playing device plays the data of the first media from the upper cache of the streaming media server, when the playing device is disconnected from the first network access device, the playing device can determine the reserved media data, and the reserved media data is left to be played when the playing device is connected to the second network access device, and the IP address can be obtained by using the playing time of the reserved media data. Therefore, the time point for playing the media data can be advanced when the network is disconnected and recovered, the time for the user to wait for the media data to be played after the network is disconnected and recovered is reduced, and the user experience is improved.
One possible scenario is specifically described below based on the embodiment shown in fig. 2 described above. The playing device determines the reserved media data when the playing device is disconnected from the first network access device, and if the playing device plays the media data to the reserved media data and the playing device is not connected with the second network device, the playing device can pause playing the media data.
Referring to fig. 3, fig. 3 is a schematic flowchart of a media playing method according to an embodiment of the present application, and as shown in fig. 3, the media playing method may include: S301-S313.
S301, the playing device sends an access request of the media data to the first network access device.
Specifically, reference may be made to step S201 in the embodiment of fig. 2, which is not described herein again.
S302, the playing device obtains the media data forwarded by the first network access device.
Specifically, reference may be made to step S202 in the embodiment of fig. 2, which is not described herein again.
S303, the playing device caches and plays the media data.
Specifically, reference may be made to step S203 in the embodiment of fig. 2, which is not described herein again.
S304, the playing device determines the reserved media data from the cached media data. The reserved media data is not played after the connection with the playing device and the first network access device is disconnected and the reserved media data is not played under the condition of not being connected to the second network access device.
Specifically, reference may be made to step S204 in the embodiment of fig. 2, which is not described herein again.
S305, when the playing device is disconnected with the first network access device, playing the first part of the cached media data.
The buffered media data includes a first portion of buffered media data and a second portion of buffered media data, and the second portion of buffered media data includes the reserved media data. The first part of the buffered media data may be the buffered media data played by the playing device in a period from when the playing device is disconnected from the first network access device to when the playing device is connected to the second network access device. The second portion of buffered media data may be media data that was buffered but not played by the playback device when connected to the second network access device.
S306, when the playing device plays the reserved media data, the playing device is not connected to the second network access device, and the playing device pauses playing the cached media data.
For example, when the playing device is disconnected from the first network access device, the progress of the playing device playing the media data is 28 minutes and 40 seconds of the total duration of the media data, and the playing device determines that the reserved time period of the media data is a time period from 30 minutes and 18 seconds to 30 minutes and 20 seconds of the total duration of the media data. The playing device continues to play the media data to 30 minutes and 18 seconds of the total duration of the media data, and if the playing device is not connected to the second network access device, the playing device may pause playing at 30 minutes and 18 seconds of the total duration of the media data. The examples are merely illustrative of the present application and should not be construed as limiting.
S307, the playing device establishes connection with the second network access device.
The playing device may establish a wired communication connection with the second network access device, or may establish a wireless communication connection with the second network access device.
If the playing device establishes wired communication connection with the second network access device, the playing device may detect a state of the internet access of the playing device to determine whether to establish wired communication connection with the second network access device, and if the playing device detects that the state of the wired internet access of the playing device is switched from the disable state to the enable state, the playing device may determine that the playing device establishes wired communication connection with the second network access device.
If the playing device establishes the wireless communication connection with the second network access device, the playing device may detect whether the playing device and the second network access device complete the identity authentication of the wireless communication connection, and if the identity authentication is completed, the playing device may determine that the playing device and the second network access device establish the wireless communication connection. The process of establishing wireless communication between the playback device and the second network access device may be that, first, the playback device scans a wireless signal sent by the second network access device, then, the playback device may perform identity authentication with the second network access device, and finally, when the playback device completes identity authentication with the second network access device, the playback device may complete establishing communication connection with the second network access device. The method for authenticating the identity between the playback device and the second network access device may include: open system identity authentication, shared key authentication, pre-shared key authentication, and the like.
S308, when the playing device is connected to the second network access device, the playing device plays the second part of the cached media data.
The second portion of buffered media data may be reserved media data. Under the condition that the playback device is connected to the second network access device, the playback device may continue playing the reserved media data from a location point where the playback device paused playing the media data under the condition that the playback device is not connected to the second network access device. For example, when the playback device is disconnected from the first network access device, the playback device determines that the reserved time period of the media data is a time period from 30 minutes 18 seconds to 30 minutes 20 seconds of the total duration of the media data, and after the playback device is connected to the second network access device, the playback device may continue playing the video from 30 minutes 18 seconds of the total duration of the media data. The examples are merely illustrative of the present application and should not be construed as limiting.
S309, under the condition that the playing device is connected to the second network access device, the playing device sends a request for acquiring the IP address to the second network access device.
Specifically, reference may be made to step S208 in the embodiment of fig. 2, which is not described herein again.
S310, the playing device acquires the IP address distributed to the playing device by the second network access device.
Specifically, reference may be made to step S209 in the embodiment of fig. 2, which is not described herein again.
S311, the playing device sends the access request of the media data to the second network access device.
Specifically, reference may be made to step S210 in the embodiment of fig. 2, which is not described herein again.
And S312, the playing device acquires the media data forwarded by the second network access device.
Specifically, reference may be made to step S211 in the embodiment of fig. 2, which is not described herein again.
S313, the playing device continues to cache and play the media data.
Specifically, reference may be made to step S212 in the embodiment of fig. 2, which is not described herein again.
In the embodiment of the application, the playing device plays the media data from the streaming media server while caching, the playing device can determine the reserved media data, and after the playing device is disconnected from the first network access device, if the playing device has not been connected with the second network access device, the playing device stops playing when playing the cached media data to the reserved media data, so that the reserved media data can be played after the playing device is reconnected to the network device, and the IP address is obtained within the time period of playing the reserved media data and the streaming media server is successfully accessed, that is, after the network is disconnected and reconnected, the media data is reserved, so that the reserved media data can be played immediately after being reconnected to the access network device without waiting for establishing connection with the streaming media server again, and user experience is improved.
Based on the embodiment shown in fig. 3, with reference to fig. 4, it is specifically described that when the playing device plays the reserved media data, the playing device is not connected to the second network access device, and then the playing device suspends playing the media data. Fig. 4 is a schematic diagram of a display progress in this embodiment of the application.
As shown in fig. 4, the display of the playing progress of the media data is divided into four stages:
the first stage is a stage of buffering and playing media data before the playing device is disconnected with the first network access device. In the first stage, the playback device normally accesses the streaming server, so that the playback device can play back the media data while buffering.
The second stage is that the playing device is disconnected with the first network access device, and the playing is suspended but the media data is not cached when the playing device plays the reserved media data. After the playing device is disconnected from the first network access device, the playing device suspends the caching of the media data, but after the playing device determines the reserved media data, the playing device can continue to play the media data until the starting time point of the reserved media data is reached, and then the playing is suspended.
The third stage is that the playing device is connected with the second network access device and continues to play the reserved media data. In the third phase, the playing device may continue to play the reserved media data in case of detecting the connection with the second network access device.
The fourth stage is that after the playing device accesses the streaming media server, the playing device caches and plays the stream. When the playing device accesses the streaming media server, the media data can be acquired, so that the playing device can continue to cache the media data from the end time point of the reserved media data while playing the media data.
In a possible case, after the playing device is disconnected from the first network access device, and has not played to the starting time point of the reserved media data, the playing device has connected to the second network access device, and the playing device can continuously and uninterruptedly play the media data. Therefore, the playing device can continuously play the media data under the condition of rapidly recovering reconnection after the network is disconnected, and the user experience is improved. This possibility is explained in detail below with reference to fig. 5.
As shown in fig. 5, the display of the playing progress of the media data is divided into four stages:
the first stage is a stage of buffering and playing media data before the playing device is disconnected with the first network access device. In the first stage, the playback device normally accesses the streaming server, so that the playback device can play back the media data while buffering.
The second stage is the stage from the disconnection of the playing device with the first network access device to the connection of the playing device with the second network access device. After the playing device is disconnected from the first network access device, the playing device can continue to play the media data after determining the reserved media data.
The third phase is the phase that the playing device plays from the connection with the second network access device to the playing device to the starting time point of the reserved media data. In the third phase, the playback device can play back the media data continuously.
The fourth stage is that the playing device accesses the streaming media server from the starting time point of playing to the reserved media data to the playing device. In the fourth stage, the playing device may also continuously play the reserved media data, and after the playing device accesses the streaming media server, the playing device may continue to play the media data while caching.
Referring to fig. 6, fig. 6 shows a schematic structural diagram of a playing device 600 provided in the present application. The playback device 600 may be the playback device 104 in the multimedia system architecture of fig. 1. As shown in fig. 6, the playback device 600 may include: a buffer unit 610, a play unit 620 and a determination unit 630. Wherein the content of the first and second substances,
a caching unit 610 operable to cache media data from a streaming server through a first network access device connected thereto;
a playing unit 620 operable to play the media data;
a determining unit 630, configured to determine reserved media data from the cached media data, where the reserved media data is not played after the playing device 600 is disconnected from the first network access device and is not connected to the second network access device;
a playing unit 620, further configured to play a first part of the cached media data when the first network access device is disconnected;
a playing unit 620, further configured to play a second part of the cached media data when the playing device 600 is connected to the second network access device, and cache the media data from the streaming media server through the second network access device; wherein the cached media data comprises the first portion of cached media data and the second portion of cached media data, the second portion of cached media data comprising the reserved media data.
In this application, the second network access device may be the first network access device, or may be another network access device other than the first network access device. By playing the data of the first media while caching the data from the streaming media server, when the playing device 600 is disconnected from the first network access device, the playing device 600 may determine the reserved media data, leave the reserved media data to the playing device to play when the playing device is connected to the second network access device, and obtain the IP address by using the playing time of the reserved media data. Therefore, the time point for playing the media data can be advanced when the network is disconnected and recovered, the time for the user to wait for the media data to be played after the network is disconnected and recovered is reduced, and the user experience is improved.
In some optional embodiments, after the playing device 600 is disconnected from the first network access device, when the playing unit 620 plays the buffered media data to the reserved media data, the playing device 600 is not connected to the second network access device yet, and the second part of the buffered media data is equal to the reserved media data. At this time, the playing unit 620 may further be configured to: pausing the playing of the reserved media data. The playing unit 620 may be specifically configured to: when the playback device 600 is connected to the second network access device, the reserved media data is played back. That is, after the connection with the first network access device is disconnected, if the playing device has not established a connection with the second network access device, the playing device stops playing when playing the cached media data to the reserved media data, so that after the network of the playing device is disconnected, on the premise that the media data which is not played is reserved, as much media data as possible can be played for the user to view.
In some optional embodiments, the playing unit 620 does not play to the reserved media data yet when connected to the second network access device, and the second portion of the buffered media data is larger than the reserved media data. That is to say, when the playing device has not played the reserved media data, the playing device has already been connected to the second network access device, and the playing can be continuously played without pause in the process from the network interruption to the network reconnection, which improves the viewing experience of the user.
In some optional embodiments, the playback device 600 further comprises an obtaining unit 640. The playing duration of the reserved media data is determined by the historical experience value of the time required by the obtaining unit 640 to obtain the IP address, where the IP address is used by the caching unit 630 to cache the media data from the streaming media server through the network access device. That is, the playing duration of the reserved media data can be determined according to the historical experience value of the IP address obtained by the playing device. Therefore, after the network is disconnected and reconnected, the media data can be played without waiting for the IP address to be acquired, and the waiting time for users to watch the media data is reduced.
In some alternative embodiments, the historical experience value may include a plurality of time values required for the obtaining unit 640 to obtain the IP address a plurality of times. The aforementioned reserved media data is determined by the historical experience value of the time required by the acquiring unit 640 to acquire the IP address, and specifically may include: taking the average time value of a plurality of time values required by the multiple times of obtaining the IP addresses as the playing duration of the reserved media data; or, taking the maximum time value in the plurality of time values as the playing time length of the reserved media data. That is to say, the playing device may determine the playing time of the reserved media data according to the time value required for obtaining the IP address for multiple times in the historical experience value, and more accurately determine the playing time of the reserved media data, thereby reducing the probability of interruption of playing the media data after the playing device is reconnected to the second network access device.
In some alternative embodiments, the playback device 600 may be specifically configured to connect to the second network access device via a wired communication connection. The playing unit 620 may be specifically configured to: when the state of the wired network port of the playing device 600 is switched from the disable state to the enable state, the second part of the buffered media data is played. That is, if the playback device is connected to the second network access device by wire, the playback device may play the second portion of the buffered media data when detecting that the state of the wired port is switched from the disable state to the enable state.
In some optional embodiments, the playback device 600 may be specifically configured to: connecting to the second network access device through a wireless communication connection. The playing unit 620 may be specifically configured to: when the playing device 600 and the second network access device complete the identity authentication of the wireless communication connection, the second part of the cached media data is played. That is, if the playback device is wirelessly connected to the second network access device, the playback device may play the second portion of the cached media data when the authentication of the wireless communication connection with the second network access device is completed.
It can be understood that specific implementation of each functional unit included in the playback device 600 may specifically refer to the foregoing method embodiment in fig. 2 or fig. 3, and details are not described here again.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a playing device 700 provided in the present application. As shown in fig. 7, the playback device 700 may include: processor 710, transceiver 720, memory 730, output circuit 740, bus 750. The processor 710, transceiver 720, memory 730, and output circuit 740 are connected to each other via a bus 750. Optionally, the playing device 700 may further include a display screen and an audio circuit, where the display screen and the audio circuit may be connected to the output circuit, the display screen is used to display a dynamic or static picture when the playing device plays the media data, and the audio circuit is used to output an audio of the media data when the playing device plays the media data. In an alternative case, the playing device 700 may be a playing chip, in which case the playing device may include a processor, a memory, a part of interface circuit, and the like.
The processor invokes software instructions in the memory to perform the steps of one or more of the methods of the foregoing method embodiments.
Processor 710 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP. The processor 1001 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
The transceiver 720 may include a baseband processing unit, a digital-to-analog conversion unit, and a radio frequency channel module. The baseband processing unit may include a Digital Signal Processor (DSP), a Micro Control Unit (MCU), a transcoder and sub multiplexer (TCSM) (for performing multiplexing, demultiplexing, and transcoding functions), and other units. The baseband processing unit may be used to synthesize a baseband signal to be transmitted or decode a received baseband signal. The digital-to-analog conversion is used to perform digital-to-analog conversion on a baseband signal to be transmitted or a received baseband signal. The radio frequency channel module may include a Transmitter (TX) and a Receiver (RX). The Transmitter (TX) may be configured to transmit a signal output by the playback device 700. A Receiver (RX) may be used to receive process signals received by the antenna. The antenna may be coupled to the transceiver 720 to perform a transmission process of the signal output by the playback device 700 and a reception process of the signal received by the playback device 700.
Memory 730 is coupled to processor 710 for storing various software programs and/or sets of instructions. Memory 730 may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory). The memory may also comprise a combination of memories of the kind described above. The memory 730 may cache media data and may also store an operating system. Memory 730 may also store network communication programs that may be used to communicate with one or more additional devices, one or more terminal devices, and one or more communication devices.
The transceiver 720 may be configured to obtain media data from a streaming server through a first network access device connected thereto. And a memory 730, operable to cache the media data. A processor 710 operable to play the media data. The transceiver 720 may be further configured to detect that the communication connection between the playback device 700 and the first network access device is disconnected.
The processor 710 may be further configured to determine reserved media data from the buffered media data, where the reserved media data is not played after the transceiver 720 is disconnected from the first network access device and is not connected to the second network access device.
The processor 710 is further configured to play the first portion of the buffered media data when the transceiver 720 is disconnected from the first network access device.
A processor 710, further operable to play the second portion of the buffered media data when the transceiver 720 is connected to the second network access device, and the processor 710 buffers the media data from the streaming media server through the second network access device; wherein the cached media data comprises the first part of cached media data and a second part of cached media data, and the second part of cached media data comprises reserved media data.
In the embodiment of the application, the playing device plays the media data from the streaming media server while caching, when the playing device is disconnected from the first network access device, the playing device can determine the reserved media data, when the playing device plays the reserved media data, the playing device stops playing when the playing device is not connected to the second network access device, and when the playing device is connected to the second network access device, the reserved media data is played again. And can acquire an IP address using the reserved play time of the media data. Therefore, when the network is disconnected and recovered, the waiting time for acquiring the IP address is saved, the playing of the media data is rapidly recovered, and the user experience is improved.
Based on the schematic structural diagram of the playback device 700 shown in fig. 7, the following describes in detail the collaboration relationship of information interaction among the devices inside the playback device 700. Referring to fig. 8, fig. 8 is a schematic diagram illustrating information interaction of an internal device of a playback device according to an embodiment of the present application.
1-2. the transceiver 720 accesses to the streaming media server through the connected first network access device and obtains the media data in the streaming media server.
3-8. first, the transceiver 720 may notify the processor 710 of the acquisition of the media data, and then the processor 710 may instruct the memory 730 to cache the media data after receiving the notification message. The memory 730 then caches the media data obtained by the transceiver 720. While the memory 730 buffers the media data, the processor 710 may play the buffered media data and instruct the output circuit 740 to output pictures and sounds in the media data.
9-16. first, the transceiver 720, upon detecting a disconnection from the first network access device, may notify the processor 710 that the playback device 700 has been disconnected from the first network access device. The processor 710 may then instruct the memory to suspend buffering the media data and determine reserved media data, which is to be played only if the playing device 700 is connected to the second network access device. At the initial point in time when the processor 710 plays the media data of the media data value reservation, without receiving a notification from the transceiver 720 to connect to the second network access device, the processor 710 pauses playing the media data and instructs the output circuit to display a still frame picture at the time of the pause.
17-23. first, the transceiver 720, on condition that it is connected to the second network access device, may notify the processor 710 that a connection has been established with the second network access device. The processor 710 may then continue to play the buffered but unplayed media data and instruct the output circuit to output a display and sound of the media data. The transceiver 720 may proceed with the process of acquiring an IP address through the second network access device while the processor 710 continues to play the buffered but unplayed media data.
24-28, after obtaining the IP address, the transceiver 720 may access the streaming server and continue to obtain media data from the streaming server. The transceiver 720 may notify the processor 710 of the acquisition of the media data. Processor 710, upon receiving the notification message, may then instruct memory 730 to cache the media data. While the memory 730 buffers the media data, the processor 710 continues to play the buffered media data and instructs the output circuit 740 to output pictures and sounds in the media data.
Fig. 8 illustrates only one embodiment of the present application exemplarily from an internal device of the playing device 700, and regarding other embodiments of the present application, the adaptive adjustment process may be performed, and a part of the content that is not described in detail may refer to the embodiment described in fig. 2, which is not described herein again.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
In summary, the embodiment of the present invention can support flexible bandwidth transmission, and can better adapt to a multi-bandwidth scenario supported by a next generation new air interface technology.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.

Claims (16)

  1. A media playing method, comprising:
    caching media data from a streaming media server through a first network access device connected to the streaming media server, and playing the media data;
    determining reserved media data from the cached media data, wherein the reserved media data is not played under the condition that the reserved media data is disconnected from the first network access device and is not connected to a second network access device;
    when the first network access equipment is disconnected, playing a first part of cached media data;
    when the second network access equipment is connected, playing a second part of the cached media data, and caching the media data from the streaming media server through the second network access equipment; wherein the cached media data comprises the first portion of cached media data and the second portion of cached media data, the second portion of cached media data comprising the reserved media data.
  2. The method of claim 1, wherein after disconnecting from the first network access device, when playing the buffered media data to the reserved media data, the second network access device is not yet connected, and the second portion of buffered media data is equal to the reserved media data, the method further comprising:
    pausing the playing of the cached media data;
    playing a second portion of the buffered media data when connected to the second network access device, comprising:
    playing the reserved media data when connected to the second network access device.
  3. The method of claim 1, wherein the second portion of buffered media data is larger than the reserved media data when connected to the second network access device and has not yet been played to the reserved media data.
  4. The method of any of claims 1 to 3, wherein the playing duration of the reserved media data is determined by a historical experience value of the time required to obtain an IP address used for caching the media data from the streaming media server through the network access device.
  5. The method of claim 4, wherein the historical experience value comprises a plurality of time values required for obtaining the IP address for a plurality of times;
    the playing duration of the reserved media data is determined by a historical experience value of the time required for acquiring the IP address, and the method specifically comprises the following steps:
    taking the average time value of a plurality of time values required by the multiple times of obtaining the IP addresses as the playing duration of the reserved media data; or the like, or, alternatively,
    and taking the maximum time value in the plurality of time values as the playing time length of the reserved media data.
  6. The method of claim 1, wherein the connecting to the second network access device comprises: connecting to the second network access device over a wired communication connection;
    when the network access device is connected to the second network access device, playing the second part of the cached media data specifically includes:
    when the state of the wired network port is detected to be switched from the de-enabling state to the enabling state, playing the second part of cached media data; the wired network port is used for connecting to the second network access equipment.
  7. The method of claim 1, wherein the connecting to the second network access device comprises: connecting to the second network access device over a wireless communication connection;
    when the network access device is connected to the second network access device, playing the second part of the cached media data specifically includes:
    and when the identity authentication of the wireless communication connection with the second network access equipment is completed, playing the second part of the cached media data.
  8. A playback device, comprising:
    the caching unit is used for caching media data from a streaming media server through a first network access device connected to the caching unit;
    a playing unit for playing the media data;
    a determining unit, configured to determine reserved media data from the cached media data, where the reserved media data is not played after being disconnected from the first network access device and not being connected to a second network access device;
    the playing unit is further configured to play a first part of the cached media data when the first network access device is disconnected from the first network access device;
    the playing unit is further configured to play a second part of the cached media data when the streaming media server is connected to the second network access device, and cache the media data from the streaming media server through the second network access device; wherein the cached media data comprises the first portion of cached media data and the second portion of cached media data, the second portion of cached media data comprising the reserved media data.
  9. The playback device of claim 8, wherein after the playback device is disconnected from the first network access device, when the playback unit plays back the buffered media data to the reserved media data, the playback device is not yet connected to the second network access device, and the second portion of the buffered media data is equal to the reserved media data;
    the playing unit is further configured to:
    after the playing device is disconnected from the first network access device, when the media module plays the cached media data to the reserved media data, the playing device is not connected to the second network access device, and the reserved media data is paused to be played;
    the playing unit is further specifically configured to:
    and when the playing device is connected to the second network access device, playing the reserved media data.
  10. The playback device of claim 8, wherein the playback unit has not played back to the reserved media data when connected to the second network access device, and wherein the second portion of buffered media data is larger than the reserved media data.
  11. The playback device according to any one of claims 8 to 10, further comprising: an acquisition unit configured to acquire an IP address; the playing time of the reserved media data is determined by a historical experience value of the time required by the obtaining unit to obtain the IP address, and the IP address is used for caching the media data from the streaming media server through network access equipment by the caching unit.
  12. The playback device according to claim 11, wherein the historical experience value includes a plurality of time values required for the acquisition unit to acquire the IP address a plurality of times;
    the reserved media data is determined by the historical experience value of the time required by the obtaining unit to obtain the IP address, and specifically includes:
    taking the average time value of a plurality of time values required by the multiple times of obtaining the IP addresses as the playing duration of the reserved media data; or the like, or, alternatively,
    and taking the maximum time value in the plurality of time values as the playing time length of the reserved media data.
  13. The playback device of claim 8, wherein the playback device is connected to the second network access device via a wired communication connection;
    the playing unit is specifically configured to:
    and when the state of the wired network port of the playing equipment is switched from the disable state to the enable state, playing the second part of the cached media data.
  14. The playback device of claim 8, wherein the playback device is connected to the second network access device via a wireless communication connection;
    the playing unit is specifically configured to:
    and when the playing equipment and the second network access equipment finish the identity authentication of the wireless communication connection, playing the second part of the cached media data.
  15. A playback device, characterized in that the playback device comprises a processor and a memory; wherein the content of the first and second substances,
    the processor to invoke software instructions in the memory to perform the method of any of claims 1-7.
  16. A computer-readable storage medium, characterized in that it stores program instructions which, when run on a processor, implement the method of any one of claims 1 to 7.
CN201880094871.0A 2018-06-30 2018-06-30 Media playing method and playing equipment Active CN112368987B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/093931 WO2020000493A1 (en) 2018-06-30 2018-06-30 Media playing method and media playing device

Publications (2)

Publication Number Publication Date
CN112368987A true CN112368987A (en) 2021-02-12
CN112368987B CN112368987B (en) 2021-12-28

Family

ID=68985851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880094871.0A Active CN112368987B (en) 2018-06-30 2018-06-30 Media playing method and playing equipment

Country Status (2)

Country Link
CN (1) CN112368987B (en)
WO (1) WO2020000493A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179505A (en) * 2021-03-10 2021-07-27 歌尔科技有限公司 Bluetooth playing device restart reconnection method, Bluetooth playing device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120022954A1 (en) * 2009-10-13 2012-01-26 Google Inc. Cloud based media player and offline media access
CN104244063A (en) * 2014-09-04 2014-12-24 广东欧珀移动通信有限公司 Conversion method and device of multiple playing devices
CN105898595A (en) * 2016-05-31 2016-08-24 乐视控股(北京)有限公司 Media playing method, media playing device and television
CN106412664A (en) * 2016-10-08 2017-02-15 广东欧珀移动通信有限公司 Multimedia synchronous play method, device and system, and terminal
CN107707969A (en) * 2017-09-04 2018-02-16 深圳市屯奇尔科技有限公司 Video broadcasting method, device and terminal device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140099976A (en) * 2013-02-04 2014-08-14 삼성전자주식회사 Method and system for transmitting wirelessly video in portable terminal
CN105100685A (en) * 2014-05-06 2015-11-25 中兴通讯股份有限公司 Wireless video processing method and device, media server, and monitoring terminal and system
CN106375822B (en) * 2016-10-08 2017-11-17 广东欧珀移动通信有限公司 A kind of multimedia synchronous plays method, apparatus, system and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120022954A1 (en) * 2009-10-13 2012-01-26 Google Inc. Cloud based media player and offline media access
CN104244063A (en) * 2014-09-04 2014-12-24 广东欧珀移动通信有限公司 Conversion method and device of multiple playing devices
CN105898595A (en) * 2016-05-31 2016-08-24 乐视控股(北京)有限公司 Media playing method, media playing device and television
CN106412664A (en) * 2016-10-08 2017-02-15 广东欧珀移动通信有限公司 Multimedia synchronous play method, device and system, and terminal
CN107707969A (en) * 2017-09-04 2018-02-16 深圳市屯奇尔科技有限公司 Video broadcasting method, device and terminal device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113179505A (en) * 2021-03-10 2021-07-27 歌尔科技有限公司 Bluetooth playing device restart reconnection method, Bluetooth playing device and electronic equipment

Also Published As

Publication number Publication date
CN112368987B (en) 2021-12-28
WO2020000493A1 (en) 2020-01-02

Similar Documents

Publication Publication Date Title
US9912421B2 (en) Broadcast seeding for peer-to-peer networks
US10764623B2 (en) Method and system for media adaption
US8719373B2 (en) Dynamically optimizing delivery of multimedia content over a network
US9485467B2 (en) Information processing system and information processing devices
KR101657914B1 (en) Method and terminal for sharing media stream
EP3089466A1 (en) Method and device for same-screen interaction
WO2015130149A1 (en) Method and device for displaying application data in wireless communication system
CN113141524B (en) Resource transmission method, device, terminal and storage medium
CN113395606A (en) URL screen projection method and device
US11652864B2 (en) Method and apparatus for transmitting resources and non-transitory storage medium
US20150086184A1 (en) Reception apparatus and reception method
US9497245B2 (en) Apparatus and method for live streaming between mobile communication terminals
US20220095020A1 (en) Method for switching a bit rate, and electronic device
JP4533020B2 (en) Multimedia content providing system, home content server, and viewing device
CN112368987B (en) Media playing method and playing equipment
US10708330B2 (en) Multimedia resource management method, cloud server and electronic apparatus
JP5552171B2 (en) Live media stream time shift
JP6530820B2 (en) Multimedia information reproducing method and system, collecting device, standard server
JP6957768B2 (en) Methods, systems, and programs for presenting media content
CN112272319A (en) Audio and video data transmission method and device, storage medium and electronic equipment
KR20180020483A (en) Method for expanding screen based on Multi Device
US10104422B2 (en) Multimedia playing control method, apparatus for the same and system
KR101207511B1 (en) Mobile terminal device for transmitting enormous volume service data to peripheral equipment and method thereof
WO2022199484A1 (en) Media playback method and apparatus and electronic device
WO2015196651A1 (en) Data sharing method, device and system, and 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