This application is based on and claims priority to Chinese Patent Application No. 202311398176.2 filed on Oct. 25, 2023, the entire contents of which are incorporated herein by reference for all purposes.
In today's era, streaming media services are widely used on many different devices, and cross-device streaming media playing has become a major trend.
In the related art, traditional cross-device streaming media playing technologies, such as Digital Living Network Alliance (DLNA), Wireless Display Standard (Miracast), Bluetooth audio playing, etc., mainly focus on the coupling and transmission at the device level. However, these technologies only support manual operations by users, and cannot fully meet the personalized needs of the users.
The present disclosure relates to the field of computer software technologies, and more particularly to a streaming media playing method, a streaming media playing device, and a storage medium.
Embodiments of a first aspect of the present disclosure provide a streaming media playing method, and the method includes: detecting a second media playing device meeting a first condition, in response to that a first media playing device is playing streaming media content; and transferring the streaming media content to the second media playing device for playing, in response to that the second media playing device meeting the first condition is detected.
Embodiments of a second aspect of the present disclosure provide a streaming media playing device, and the device includes: a detection unit configured to detect a second media playing device meeting a first condition, in response to that a first media playing device is playing streaming media content; and a processing unit configured to transfer the streaming media content to the second media playing device for playing, in response to that the second media playing device meeting the first condition is detected.
Embodiments of a third aspect of the present disclosure provide a streaming media playing device, including: a processor; and a memory for storing instructions executable by the processor. The processor is configured to execute the streaming media playing method according to the first aspect or any one of the embodiments of the first aspect.
Embodiments of a fourth aspect of the present disclosure provide a storage medium, an instruction is stored in the storage medium, and when the instruction in the storage medium is executed by a processor, the processor is allowed to execute the streaming media playing method according to the first aspect or any one of the embodiments of the first aspect.
It should be understood that both the forgoing general descriptions and the following detailed descriptions are illustrative and explanatory only, and are not restrictive of the present disclosure.
The drawings herein are incorporated into the specification and form a part of the specification, show embodiments that comply with the present disclosure, and are used to explain the principles of the present disclosure together with the specification.
Illustrative embodiments are described in detail here, and examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless specified or limited otherwise, the same number in different accompanying drawings indicates the same or similar elements. The embodiments described in the following illustrative examples are not representative of all embodiments consistent with the present disclosure.
In traditional cross-device streaming media playing technologies, when playing audio and video contents, if it is detected that they are transferred to a second device from a first device, users need to manually perform the flow operation, which cannot achieve personalized recommendations and highly relies on manual selections, thus limiting the user experience and the intelligent development.
Therefore, the present disclosure proposes a streaming media playing method.
Embodiments of the present disclosure illustrate the steps of the streaming media playing method.
In step S11, in response to that a first media playing device is playing streaming media content, a second media playing device meeting a first condition is detected.
In the embodiments of the present disclosure, the first media playing device may be a terminal that is playing the streaming media content. The streaming media content may be understood as audio and video. Audio and video applications are connected to an interface of the first media playing device or register a streaming media player, so that any playing behavior of the audio and video content may be recognized by the first media playing device. Based on this, the first media playing device can determine the audio and video content that is being played, i.e., the streaming media content.
In step S12, in response to that the second media playing device meeting the first condition is detected, the streaming media content is transferred to the second media playing device for playing.
In the embodiments of the present disclosure, in response to that the second media playing device is detected, the audio and video content is transferred to the second media playing device. The second media playing device is an intelligent terminal, which may be a terminal, a tablet, a laptop, a speaker, a TV, etc. Transfer may be understood as audio and video projection.
In the embodiments of the present disclosure, in response to that the condition is met, the streaming media content is transferred from the first media playing device to the second media playing device, and thus the intelligent transfer of the streaming media can be realized.
Embodiments of the present disclosure illustrate a second condition to be met before the streaming media content is transferred below.
In step S21, in response to that a first media playing device is playing streaming media content, a second media playing device meeting the second condition is detected.
In the embodiments of the present disclosure, the first media playing device is playing the streaming media content, and after it is detected the second condition is met, the streaming media content is transferred to the second media playing device for playing.
In step S22, it is determined that the second condition is met based on at least one of a device state, a spatial position relationship, and a historical behavior.
In the embodiments of the present disclosure, the second condition for determining that the transfer of audio and video playing is met includes at least one of the device state, the spatial position relationship, and the historical behavior. The device state is a playing state of the second media playing device, which may include an idle state and other states. The spatial position relationship may be understood as a spatial position relationship where the first media playing device and the second media playing device may be successfully connected.
In step S23, in response to that the second media playing device meeting the second condition is detected, the streaming media content is transferred to the second media playing device for playing.
In the embodiments of the present disclosure, it is determined that the second condition is met based on at least one of the device state, the spatial position relationship, and the historical behavior, and the streaming media content is transferred from the first media playing device to the second media playing device.
In the embodiments of the present disclosure, by determining that at least one of the conditions of streaming media transfer is met, the streaming media content is transferred from the first media playing device to the second media playing device, thus reducing the number of manual operations by the users and optimizing the user experience.
Embodiments of the present disclosure illustrate the second condition below.
In step S31a, a current playing state of the second media playing device is the idle state. In step S31b, the first media playing device and the second media playing device are located in the same spatial range. In step S31c, a behavior, that the user transfers a media file played by the first media playing device, exists in the historical behavior.
In the embodiments of the present disclosure, the user can control the first media playing device to search for the second media playing device through a local area network or Bluetooth. The local area network means that the first media playing device and the second media playing device are connected to the same local area network through the same router. Bluetooth means that the first media playing device is connected to the second media playing device based on Received Signal Strength Indicator (RSSI). After the second media playing device that can be connected is detected, it is confirmed that the second media playing device is in the idle state. The idle state may be understood as a state where the second media playing device is not playing and not being projected to when it is in a power-on state. If the second media playing device is shut down or powered off, it is not considered as a transfer object by the system.
In an example, there are a plurality of situations when the streaming media content is transferred from the first media playing device to the second media playing device. For example, if there are a plurality of second media playing devices, the first media playing device may consider the properties of the second media playing devices first. For example, if playing content to be transferred by the first media playing device is video content, the second media playing device that can be selected includes the TV and the tablet at this time. As the TV has a better viewing experience than the tablet, the TV preferentially serves as the second media playing device for transfer. If the playing content to be transferred by the first media playing device is video, and only a speaker is detected to be in the idle state, the system does not consider the second media playing device (i.e. the speaker) at this time as the transfer object because the speaker cannot play the video content.
In the embodiments of the present disclosure, the first media playing device and the second media playing device are within the same spatial range. If the first media playing device and the second media playing device are in the same local area network or within the wireless signal strength, they may be considered to be within the same spatial range, and the second media playing device within this range is considered as the transfer object.
In the embodiments of the present disclosure, the historical behavior may include the second media playing device selected last time or the number of times of the user selecting a certain second media playing device when the user transfers the media file played by the first media playing device to the second media playing device.
In an example, if there are a plurality of second media playing devices available for transfer within the same spatial range, the second media playing device for transfer by the user last time may be considered as the transfer object for transfer. Or, the number of times that the plurality of second media playing devices have been transferred to may be compared, and the second media playing device with the largest number of times of transfer may serve as the transfer object for transfer.
In step S32, in case that at least one of the above items is met, it is determined that the second condition is met.
In the embodiments of the present disclosure, the second media playing device to be transferred to may be determined based on at least one of a plurality of conditions, thus solving the problem of supporting manual operations and improving the user experience.
Embodiments of the present disclosure illustrate the first condition below.
In the embodiments of the present disclosure, in response to that the first media playing device is playing the streaming media content, the second media playing device meeting the first condition is detected to transfer the streaming media content. The first condition may include at least one of: using the same account and/or the same network as the first media playing device for data transmission, supporting adopting a secure transmission protocol with a security level higher than a level threshold to perform data transmission, or not playing the media file.
In the embodiments of the present disclosure, the first media playing device may obtain the account information of the second media playing device and compare it with its own account information to verify whether they are the same account. If they are the same account, a trust relationship may be automatically established between the first media playing device and the second media playing device without user intervention. If the first media playing device and the second media playing device are under different accounts in the same network, the second media playing device may display the verification code information, and the relevant verification code information may be input into the first media playing device, so that the establishment of the mutual trust relationship can be completed, thus realizing the data transmission.
In the embodiments of the present disclosure, it is supported that the secure transmission protocol with the security level higher than the level threshold is adopted to complete the data transmission, thus realizing a real-time and secure data exchange.
In the embodiments of the present disclosure, when it is detected that the second media playing device does not play other media files, that is, it is in the idle state, it is confirmed that the second media playing device is considered as the transfer object.
In the embodiments of the present disclosure, based on the establishment of the mutual trust relationship between the first media playing device and the second media playing device and the secure transmission protocol, the efficient data transmission between the devices is realized, laying a foundation for subsequent intelligent recommendations and personalized services.
Embodiments of the present disclosure illustrate a method before the streaming media content is transferred to the second media playing device for playing below.
In step S41, prompt information is displayed.
In the embodiments of the present disclosure, when the determination is completed based on the first condition and the second condition, and the second media playing device is confirmed for transfer, the prompt information will be displayed on the first media playing device, and the prompt information is configured to prompt the user whether to transfer the streaming media content to the second media playing device for playing.
In step S42, it is determined that an instruction of the user confirming to transfer the streaming media content to the second media playing device for playing is received.
In the embodiments of the present disclosure, if the second media playing device is confirmed to be the transfer object, the instruction of the user confirming to transfer the streaming media content to the second media playing device for playing is received.
In the embodiments of the present disclosure, when the user is asked whether to carry out the transfer, one manual operation is performed, which solves the remaining manual operation steps, thus meeting the personalized needs of the user, and improving the user experience.
Embodiments of the present disclosure illustrate the user's transfer behavior below.
In the embodiments of the present disclosure, the historical behavior of the user deciding whether to transfer the streaming media content to the second media playing device for playing based on the prompt information is saved. After the prompt information is displayed on the first media playing device, if the user chooses to transfer, the second media playing device receives the instruction to perform playing, and the streaming media content is transferred from the first media playing device to the second media playing device to continue being played.
If the user chooses not to transfer, the second media playing device will not play any streaming media content, the historical behavior of the user deciding whether to transfer the streaming media content to the second media playing device for playing based on the prompt information is saved, and this user behavior may be used for the next system decision.
In the embodiments of the present disclosure, by saving the user's historical behavior, the user experience is improved and the intelligent development is realized.
Embodiments of the present disclosure illustrate the streaming media playing method below.
In the embodiments of the present disclosure, the first media playing device is playing the streaming media, which may be audio or video, and a surrounding second media playing device is discovered based on being in the same local area network or connected to the same Bluetooth. If the first media playing device and the second media playing device use the same account, the mutual trust relationship may be directly established for data transmission. If the first media playing device and the second media playing device are devices of different accounts in the same network, the system needs to establish the mutual trust relationship through the user. Based on this, the device state, the spatial position relationship, and the historical behavior of the first media playing device and the second media playing device are judged to determine whether the streaming media content may be transferred to the second media playing device. If at least one of these items is met, the user is asked whether to transfer. If the user chooses to transfer, the streaming media content is transferred from the first media playing device to the second media playing device. If the user chooses not to transfer, this user's behavior may be used for the next decision. Through this method, the playing device and content suitable for the user are determined, thus improving the user experience and realizing the intelligent transfer.
Based on the same concept, embodiments of the present disclosure also provide a streaming media playing device 100.
It can be understood that the streaming media playing device 100 provided in the embodiments of the present disclosure includes hardware structures and/or software modules that perform corresponding functions in order to achieve the above functions. In combination with modules and algorithm steps of examples described in the embodiments of the present disclosure, the embodiments of the present disclosure may be implemented in the form of a hardware or a combination of a hardware and a computer software. Whether a certain function is executed by the hardware or the computer software driving the hardware depends on specific applications and design constraints of the technical solution. Those skilled in the art may adopt different methods for each specific application to implement the described functions, but such implementation should not be considered as beyond the scope of the technical solution in the embodiments of the present disclosure.
The detection unit 101 is configured to detect a second media playing device meeting a first condition, in response to that a first media playing device is playing streaming media content.
The processing unit 102 is configured to transfer the streaming media content to the second media playing device for playing, in response to that the second media playing device meeting the first condition is detected.
In an embodiment, before the streaming media content is transferred to the second media playing device for playing, the processing unit 102 is further configured to determine that a second condition is met based on at least one of a device state, a spatial position relationship, or a historical behavior. The device state refers to a playing state of the second media playing device, the spatial position relationship refers to a spatial position relationship between the first media playing device and the second media playing device, and the historical behavior is configured to indicate a behavior of whether the user transfers the media file played by the first media playing device.
In an embodiment, the processing unit 102 determines that the second condition is met, in response to that at least one of the followings is met: the current playing state of the second media playing device is the idle state; the first media playing device and the second media playing device are within the same spatial range; and there is the behavior of the user transferring the media file played by the first media playing device in the historical behavior.
In an embodiment, that the detection unit 101 meets the first condition includes at least one of: using the same account and/or the same network as the first media playing device for data transmission; supporting adopting a secure transmission protocol with a security level higher than a level threshold to perform data transmission; and not playing the media file.
In an embodiment, before transferring the streaming media content to the second media playing device for playing, the processing unit 102 is further configured to display prompt information and receive an instruction of the user confirming to transfer the streaming media content to the second media playing device for playing. The prompt information is configured to prompt the user whether to transfer the streaming media content to the second media playing device for playing.
In an embodiment, the processing unit 102 is further configured to save the historical behavior of the user deciding whether to transfer the streaming media content to the second media playing device for playing based on the prompt information.
With regards to the device in the above embodiments, the specific way in which each module performs the operation has been described in the embodiments of the method and will not be elaborated here.
As illustrated in
The processing component 202 typically controls the overall operation of the device 200, such as the operations associated with display, telephone call, data communication, camera operations and recording operations. The processing component 202 may include one or more processors 220 to execute instructions to complete all or part of steps of the method described above. In addition, the processing component 202 may include one or more modules, to facilitate the interaction between the processing component 202 and other components. For example, the processing component 202 may include a multimedia module, to facilitate the interaction between the multimedia component 208 and the processing component 202.
The memory 204 is configured to store all types of data to support the operation of the device 200. Examples of these data include interactions of any applications or methods operated on the device 200, contact data, phonebook data, messages, pictures, videos, etc. The memory 204 can be implemented with any types of volatile or non-volatile memory device, or a combination thereof, such as static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a disk, or an optical disk.
The power supply component 206 may provide power supply for all components of the device 200. The power supply component 206 may include a power supply management system, one or more power supplies, and other components related to generating, managing and distributing power for the device 200.
The multimedia component 208 includes a screen providing an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen can be implemented as a touch screen, to receive an input signal from the user. The touch panel includes one or more touch sensors to sense touch, sliding, and a gesture on the touch panel. The touch sensor can not only sense the boundary of a touch or sliding action, but also detect the duration and pressure associated with the touch or sliding action. In some embodiments, the multimedia component 208 includes a front camera and/or a rear camera. When the device 200 is in an operation mode, such as a shooting mode or a video mode, the front camera or the rear camera may receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and an optical zoom capability.
The audio component 210 is configured to output and/or input an audio signal. For example, the audio component 210 includes a microphone (MIC), and the microphone is configured to receive an external audio signal when the device 200 is in an operating mode, such as a call mode, a record mode and a voice recognition mode. The received audio signal may be further stored in the memory 204 or be sent via the communication component 216. In some embodiments, the audio component 210 further includes a speaker for outputting the audio signal.
The I/O interface 212 provides an interface between the processing component 202 and a peripheral interface module, and the peripheral interface module may be a keyboard, a clicking wheel, a button or the like. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 214 includes one or more sensors for providing condition assessments of various aspects for the device 200. For example, the sensor component 214 may detect the on/off state of the device 200 and the relative positioning of the component. For example, the component is a display and a keypad of the device 200. The sensor component 214 may further detect the location change of the device 200 or one component of the device 200, the presence or absence of contact between the user and the device 200, the orientation or acceleration/deceleration of the device 200, and the temperature change of the device 200. The sensor component 214 may include a proximity sensor, configured to detect the presence of nearby objects without any physical contact. The sensor component 214 may further include an optical sensor, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 214 may further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 216 is configured to facilitate wired or wireless communication between the device 200 and other devices. The device 200 may access wireless networks based on communication standards, such as Wi-Fi™, 2G or 3G, or their combination. In an illustrative embodiment, the communication component 216 receives broadcast signals or broadcast-related information from an external broadcast management system through a broadcast channel. In an illustrative embodiment, the communication component 216 also includes a near-field communication (NFC) module, to facilitate short-range communication. For example, the NFC module can be implemented based on the radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
In an illustrative embodiment, the device 200 may be implemented by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field-programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.
In an example embodiment, a non-transitory computer-readable storage medium including instructions is further provided, such as the memory 204 including instructions. The instructions may be executed by the processor 220 of the device 200 to complete the above method. For example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
The device 300 may further include one power supply component 326 configured to execute power management of the device 300, and one wired or wireless network interface 350 configured to connect the device 300 to a network, and one input/output (I/O) interface 358. The device 300 may be operated on an operating system stored in the memory 332, for example, Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
It may be understood that, “a plurality of” in the present disclosure means two or above, which is similar to other quantifiers. The phrase “and/or” describes the relationship of the associated objects, indicating that there may be three relationships. For example, A and/or B may represent three cases, namely only A alone, both A and B, and only B alone. The character “/” generally means the associated objects have a kind of “or” relationship. The singular forms “a”, “the” and “said” are also intended to include plural forms, unless the context clearly indicates otherwise.
It should be understood that, the terms “first”, “second”, etc. are configured to describe various information, but the information shall not be limited to the terms. The terms are only used to distinguish the same category of information, rather than indicating a particular order or degree of importance. Actually, the terms “first”, “second”, etc. may be completely used interchangeably. For example, subject to the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
It should be further understood that the orientation or position relationship indicated by the terms “central”, “longitudinal”, “transverse”, “front”, “rear”, “up”, “down”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inner”, and “outer”, and the like, is based on the orientation or position relationship shown in the accompanying drawings, which is only for the convenience of describing the embodiment and simplifying the description, and does not indicate or imply that the referred device or element must have a specific orientation and be constructed and operated in a specific orientation.
It should be further understood that, unless otherwise specified, the term “connection” includes direct connection without any other members between two, and also includes indirect connection with other elements between the two.
It may be further understood that, in the embodiments of the present disclosure, although operations are described in a particular order in the accompanying drawings, it should not be construed as requiring that the operations to be performed in a particular or serial order as shown, or that the operations shown to be performed in their entirety to obtain a desired result. In a certain environment, multitasking and parallel processing may be advantageous.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed here. The present disclosure is intended to cover any variations, uses, or adaptations of the solution. These variations, usages, or adaptive changes follow the general principles of the present disclosure and include common knowledge or conventional technical means in the related art not disclosed by the present disclosure.
It should be understood that the present disclosure is not limited to the precise structure as described above and shown in the accompanying drawings, but can have various modification and alternations without departing from the scope of the present disclosure. The scope of the present disclosure is only limited by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
202311398176.2 | Oct 2023 | CN | national |