Screen projection method and terminal

By receiving and decoding the video stream and text information, and superimposing the display on the target device, it solves the problem that the existing technology cannot synchronize the screen projection of the video and the barrage, realizes the simultaneous projection of the video stream and the barrage, and improves the user experience. Interactive experience and entertainment.

CN113835649BActive Publication Date: 2024-09-10PETAL CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010514417.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-08
Publication Date
2024-09-10
Estimated Expiration
2040-06-08

AI Technical Summary

Technical Problem

Existing screencasting protocols cannot push video-related bullet screens or subtitles while streaming videos, resulting in limited user interaction experience across multiple devices.

Method used

By receiving and decoding the video stream and text information, sending the download address of the video stream and barrage/subtitles to the target device, and superimposing the display on the display, realizing simultaneous projection of the video stream and barrage/subtitles, and supporting text adjustment. Information display parameters to enhance user interaction experience.

Benefits of technology

It achieves simultaneous projection of video streams and barrages/subtitles, enhances users’ interactive experience and entertainment across multiple devices, and meets users’ needs for real-time comments and interactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113835649B
    Figure CN113835649B
Patent Text Reader

Abstract

A screen projection method and terminal. The screen projection method is used for a source device having a display screen and a speaker, and the screen projection method includes: receiving first data from a server and decoding it, and displaying the decoded first data through the display screen, and / or outputting the decoded first data through the speaker; receiving text information from a server and parsing it, and displaying the parsed text information through the display screen, wherein the text information is associated with the first data; detecting a first operation of screen projection on a target device; and in response to the first operation, sending a download address of the first data and a download address of the text information to the target device. The method realizes screen projection of the text information and the first data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a screen projection method and terminal. Background Art

[0002] With the development of smart terminals, such as mobile phones, tablet computers, smart wearables, smart TVs, smart homes, etc., it is becoming more and more common for users to connect multiple terminal devices by wire or wirelessly, and to share local data or multimedia data between terminal devices. The operation of connecting and sharing multiple devices is becoming more and more convenient. Screen mirroring, multi-screen interaction, streaming media push, etc. are currently the more mainstream wireless screen projection methods, which are mainly supported by technologies or protocols such as Airplay, Miracast, WiDi, and DLNA. Support streaming mode, that is, support only streaming video content instead of mirroring the entire display interface, such as Airplay and DLNA. Among them, Airplay is Apple's air playback technology in iOS, and the full name of DLNA is Digital Living Network Alliance (DIGITAL LIVING NETWORK ALLIANCE), which realizes the interconnection of wireless networks and wired networks including personal computers, consumer appliances, and mobile devices, and provides a method to obtain content on one device and play content on another device.

[0003] Specifically, Airplay and DLNA can push the streaming media of video applications (such as iQiyi, Youku, Youtube, etc.) accessed on smartphones to large screens, such as smart TVs, to provide users with a smooth streaming media push experience. Therefore, devices that support Airplay or DLNA can discover other devices that support the same protocol in the same local area network and initiate video screen projection. At the same time, some screen projection applications can also realize streaming media push between two smart devices through the above protocols or private protocols. For example, when the screen projection application is pre-installed on both smartphones and smart TVs, users can scan the QR code on the smart TV to cast the screen. Casting the screen through the screen projection application does not require the two devices to be in the same local area network. At the same time, the development of streaming media applications has further promoted users' demand for entertainment and participation in various streaming media. For example, when users watch TV series or variety shows on iQiyi, they can experience the "bullet screen" function. Bullet screen refers to the commentary subtitles that pop up when watching videos on the Internet. Users can view the bullet screen of the video while watching the video, and can also post comments to form bullet screens simultaneously. Unlike traditional comments on videos, barrages will only appear at a specific point in time in the video. Therefore, barrages sent at the same time basically have the same theme, providing users with an experience of real-time interaction with other users when participating in comments.

[0004] The method of screen casting through the above-mentioned screen casting protocols, such as Airplay and DLNA, or screen casting applications, cannot push the barrage corresponding to the video while streaming the video. Therefore, it is necessary to provide a streaming screen casting method that can cast video and barrage at the same time. Summary of the invention

[0005] The present application provides a screen projection method, an electronic device and a terminal for screen projection, which realizes the projection of text information and improves the user's screen projection experience.

[0006] In a first aspect, the present application provides a screen projection method for a source device having a display screen and a speaker, characterized in that the method includes: receiving first data from a server and decoding it, and displaying the decoded first data through the display screen, and / or outputting the decoded first data through the speaker; receiving text information from the server and parsing it, and displaying the parsed text information through the display screen, wherein the text information is associated with the first data; detecting a first operation of projecting the screen to a target device; and in response to the first operation, sending a download address of the first data and a download address of the text information to the target device.

[0007] According to the first aspect, in a first implementation of the first aspect, the first data is a video stream, and the text information is a bullet screen or a subtitle, wherein displaying the parsed text information on the display screen includes: superimposing and displaying the bullet screen or the subtitle on the video stream displayed on the display screen, wherein the superimposed and displayed bullet screen or the subtitle is temporally associated with the video stream. Through this screen projection method, the download address of the video stream and the bullet screen / subtitle can be sent to the target device, thereby realizing simultaneous screen projection of the video stream and the bullet screen / subtitle.

[0008] According to the first aspect, in a second implementation of the first aspect, the method further includes: sending display parameters of the text information to the target device, wherein the display parameters include at least one of a font, a font size, a color, a transparency, an animation speed, and a display area displayed by the text information. By sending the display parameters of the text information to the target device, the parameters set by the user on the source device side can be applied to the target device side.

[0009] According to the first aspect, in a third implementation of the first aspect, the method further includes: sending a first text message to the target device, wherein the first text message is associated with the first data. After the device projects the screen to the target device, the user can also send text messages to the source device to enhance the user's interactive experience.

[0010] According to the first aspect, in a fourth implementation of the first aspect, the method further includes: detecting a second operation of terminating screen projection on the target device; and receiving display parameters of the text information from the target device, wherein the display parameters include at least one of the font, font size, color, transparency, animation speed, and display area of ​​the text information display. When the screen projection is terminated, the parameters set by the user on the target device can be applied to the source device, thereby continuing the user's settings for displaying the text information on the target device.

[0011] In a second aspect, the present application provides a screen projection method for a source device having a first display screen and a first speaker, characterized in that the method includes: receiving first data from a server and decoding it, and displaying the decoded first data through the first display screen, and / or outputting the decoded first data through the first speaker; in response to a first operation of projecting the first data, sending a download address of the first data to a target device; and in response to a second operation of projecting text information, sending a download address of the text information to the target device, wherein the text information is associated with the first data.

[0012] According to the second aspect, in a first implementation of the second aspect, the first data is a video stream, the text information is a bullet screen or subtitle, and the method further includes: through the download address of the first data, the target device downloads the first part of the video stream, and displays the first part of the video stream through the second display screen of the target device; through the download address of the text information, the target device downloads the bullet screen or subtitle, and superimposes and displays the first part of the bullet screen or subtitle on the second display screen, wherein the superimposed first part of the bullet screen or subtitle is temporally associated with the first part of the video stream. Through this screen projection method, the download addresses of the video stream and the bullet screen / subtitle can be sent to the target device, thereby realizing the simultaneous screen projection of the video stream and the bullet screen / subtitle.

[0013] According to the second aspect, in a second implementation of the second aspect, the method further includes: sending display parameters of the text information to the target device, wherein the display parameters include at least one of a font, a font size, a color, a transparency, an animation speed, and a display area displayed by the text information. By sending the display parameters of the text information to the target device, the parameters set by the user on the source device side can be applied to the target device side.

[0014] According to the second aspect, in a third implementation of the second aspect, the method further includes: sending a first text message to the target device, wherein the first text message is associated with the first data. After the device projects the screen to the target device, the user can also send text messages to the source device to enhance the user's interactive experience.

[0015] According to the second aspect, in a fourth implementation of the second aspect, the method further includes: detecting a third operation of terminating screen projection on the target device; and receiving display parameters of the text information from the target device, wherein the display parameters include at least one of the font, font size, color, transparency, animation speed, and display area of ​​the text information display. When the screen projection is terminated, the parameters set by the user on the target device can be applied to the source device, thereby continuing the user's settings for displaying the text information on the target device.

[0016] In a third aspect, the present application provides a screen projection method for projecting a screen on a target device having a display screen and a speaker, characterized in that the method includes: receiving a download address of first data; requesting download of the first data from a server through the download address of the first data, and displaying the first data through the display screen, and / or outputting the first data through the speaker; receiving a download address of text information, wherein the text information is associated with the first data; and requesting download of the text information from the server through the download address of the text information, and displaying the text information through the display screen.

[0017] According to the third aspect, in a first implementation of the third aspect, the first data is a video stream, and the text information is a bullet screen or a subtitle, wherein displaying the text information through the display screen includes: displaying the bullet screen or the subtitle superimposed on the video stream displayed on the display screen, wherein the superimposed bullet screen or the subtitle is temporally associated with the displayed video stream. Through this screen projection method, the download address of the video stream and the bullet screen / subtitle can be received from the source device, thereby realizing the simultaneous screen projection of the video stream and the bullet screen / subtitle.

[0018] According to the third aspect, in a second implementation of the third aspect, the method further includes: receiving display parameters of the text information, and displaying the text information on the display screen according to the display parameters, wherein the display parameters include at least one of the font, font size, color, transparency, animation speed, and display area of ​​the text information display. By receiving the display parameters of the text information from the source device, the parameters set by the user on the source device side can be applied to the target device side.

[0019] According to the third aspect, in a third implementation of the third aspect, the method further includes: detecting a first operation of sending a first text message; and in response to the first operation, superimposing and displaying the first text message on the display screen, wherein the first text message is associated with the first data. After the screen is projected, the user can also send text messages through the target device, thereby enhancing the user's interactive experience.

[0020] According to the third aspect, in a fourth implementation of the third aspect, the method further includes: detecting a second operation of setting display parameters of the text information; and in response to the second operation, displaying the text information on the display screen according to the set display parameters, wherein the display parameters include at least one of the font, font size, color, transparency, animation speed, and display area of ​​the text information display. After screen projection, the user can also set the display parameters of the text information through the target device, thereby enhancing the user's interactive experience.

[0021] According to a fourth implementation of the third aspect, in a fifth implementation of the second aspect, the method further includes: receiving a request from the source device to terminate screen projection; and sending the set display parameters to the source device. When screen projection is terminated, the parameters set by the user on the target device can be sent to the source device, so that the setting of the user to display the text information on the target device can be continued on the source device.

[0022] In a fourth aspect, the present application provides a terminal, including a display screen, a memory, and a processor, wherein the memory stores one or more programs, and is characterized in that when the processor executes the one or more programs, the terminal implements the method described in any of the above implementations. By implementing the method described in any of the above implementations, the terminal can implement screen projection of bullet screens or subtitles and superimpose them on the projected video, which can enhance the user's screen projection experience.

[0023] In a fifth aspect, the present application provides a computer-readable storage medium, comprising instructions, characterized in that when the instructions are executed on an electronic device, the electronic device executes the method described in any of the above implementations.

[0024] In a sixth aspect, the present application provides an electronic device for screen projection, having a display screen, the electronic device comprising: a communication module for receiving first data and text information from a server, wherein the text information is associated with the first data; a decoding and parsing unit for decoding the first data and parsing the text information; a display unit for displaying the decoded first data and the parsed text information, wherein the text information is displayed superimposed on the first data; and a detection unit for detecting a first operation of screen projection on a target device; wherein, in response to the detected first operation, the communication module sends a download address of the first data and a download address of the text information to the target device. The electronic device implements screen projection of text information, which can improve the user's screen projection experience.

[0025] According to the sixth aspect, in a first implementation manner of the sixth aspect, the first data is a video stream, and the text information is a barrage or subtitle, wherein the barrage or subtitle is temporally associated with the video stream.

[0026] According to the sixth aspect, in a second implementation of the sixth aspect, the electronic device further includes: a text control unit, configured to, when detecting a second operation of sending a first text message, notify the communication module to send a first text message to the target device, wherein the first text message is associated with the first data. Sending the text message edited by the user through the text control unit can provide the user with a real-time interactive experience.

[0027] In a seventh aspect, the present application provides an electronic device for screen projection, the electronic device comprising: a communication module, for further receiving a download address of first data and a download address of text information from a source device when receiving a screen projection request from a source device, wherein the text information is associated with the first data, and requesting and receiving the first data and the text information from a server through the download address of the first data and the download address of the text information; and a display unit, for displaying the first data and displaying the text information superimposed on the first data. The electronic device can simultaneously project and display the first data and the text information associated therewith, thereby improving the user's screen projection experience.

[0028] According to the seventh aspect, in a first implementation method of the seventh aspect, the first data is a video stream, and the text information is barrage or subtitles, wherein the display unit superimposes and displays the barrage or subtitles on the video stream, and the superimposed barrage or subtitles are temporally associated with the video stream.

[0029] According to the seventh aspect, in a second implementation of the seventh aspect, the text control unit is configured to, when detecting a first operation of sending a first text message, notify the display unit to overlay and display the first text message on the first data, wherein the first text message is associated with the first data. Sending the text message edited by the user through the text control unit can provide the user with a real-time interactive experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1A A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0031] Figure 1B A software structure block diagram of an electronic device provided in an embodiment of the present application;

[0032] Figure 2 A schematic diagram of a network architecture provided for an embodiment of the present application;

[0033] Figure 3 A schematic diagram of a scenario of a screen projection method provided in an embodiment of the present application;

[0034] Figure 4 A schematic diagram of a module architecture of a smart terminal provided in an embodiment of the present application;

[0035] Figure 5 A message sequence diagram of a screen projection method provided in an embodiment of the present application;

[0036] Figure 6 A message sequence diagram of a screen projection method provided in an embodiment of the present application;

[0037] Figure 7 A message sequence diagram of a screen projection method provided in an embodiment of the present application;

[0038] Figure 8 A message sequence diagram of a screen projection method provided in an embodiment of the present application;

[0039] Fig. 9 A flow chart of a screen projection method provided in an embodiment of the present application;

[0040] Fig.10 A flow chart of a screen projection method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0042] It should be noted that the descriptions such as "first" and "second" in the embodiments of the present application are used to distinguish different messages, devices, modules, applications, etc., and do not represent the order of precedence, nor do they limit the "first" and "second" to different types. The descriptions such as "first" and "second" also do not limit the quantity. For example, the "first application" can be one "first application" or multiple "first applications".

[0043] The term "A and / or B" in the embodiments of the present application is only a description of the association relationship of the associated objects, indicating that there may be three relationships, such as A alone, A and B at the same time, and B alone. In addition, the character " / " in the embodiments of the present application generally indicates that the associated objects before and after are in an "or" relationship.

[0044] The method provided in the embodiment of the present application can be applied to Figure 1A In the electronic device 100 shown. Figure 1A A schematic structural diagram of an electronic device 100 is shown.

[0045] The electronic device 100, such as a smart terminal, may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0046] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0047] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0048] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0049] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0050] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0051] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0052] The I2S interface can be used for audio communication. The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. The UART interface is a universal serial data bus used for asynchronous communication.

[0053] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0054] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0055] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0056] The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0057] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0058] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0059] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0060] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0061] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0062] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0063] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0064] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0065] The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element.

[0066] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0067] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0068] NPU is a neural-network (NN) computing processor. It can quickly process input information by drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, and can also continuously self-learn.

[0069] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0070] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0071] In some embodiments of the present application, the internal memory is also used to store the translation application and cache all images generated during the operation of the translation application. After the user exits the translation application, all the cached images can be automatically deleted.

[0072] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0073] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0074] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0075] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0076] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals.

[0077] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0078] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0079] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation. The magnetic sensor 180D includes a Hall sensor. The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focus. The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense the brightness of ambient light. The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc. The temperature sensor 180J is used to detect temperature.

[0080] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0081] The bone conduction sensor 180M can obtain a vibration signal. The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The electronic device 100 can receive a key input and generate a key signal input related to the user settings and function control of the electronic device 100. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, etc.

[0082] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0083] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.

[0084] Figure 1B Embodiment of the present invention Figure 1A A software structure block diagram of the electronic device 100 is shown.

[0085] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0086] The application layer can include a series of application packages.

[0087] like Figure 1B As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0088] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0089] like Figure 1B As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0090] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0091] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0092] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0093] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0094] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0095] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0096] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0097] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0098] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0099] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0100] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0101] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0102] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0103] A 2D graphics engine is a drawing engine for 2D drawings.

[0104] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0105] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.

[0106] when Figure 1A The touch sensor 180K in receives the touch operation, and the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into raw input events (including touch coordinates, timestamp of touch operation and other information). The raw input events are stored in the kernel layer. The application framework layer obtains the raw input events from the kernel layer and identifies the controls corresponding to the input events. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. Figure 1A The camera 193 shown captures still images or video.

[0107] In some embodiments, the above-mentioned display can be displayed through a display screen, the display screen has a display function, and the display screen may have a touch function or may not have a touch function. Operations on a touch display screen may be implemented through virtual buttons, which may be implemented by clicking on the touch screen. Operations on a non-touch display screen may be implemented through physical buttons.

[0108] Figure 2A schematic diagram of a network architecture 200 provided in an embodiment of the present application is shown. In one embodiment, the electronic device 100, such as a smart terminal such as a smart phone and a smart TV, can be used to work in conjunction with the network architecture 200. As shown, at least one network 202 is provided. In the context of the present network architecture 200, the network 202 can take any form, including but not limited to a telecommunications network, a local area network (LAN), a wireless network, and a wide area network (WAN) such as the Internet, a peer-to-peer network, and a wired network. Although only one network is shown, it should be understood that two or more similar or different networks 202 may be provided.

[0109] A plurality of devices are connected to the network 202. For example, a server computer 212 and an end-user computer 208 may be connected to the network 202 for communication, and such end-user computer 208 may include a desktop computer, a laptop computer, and / or any other type of logic. In addition, various other devices may also be connected to the network 202, including a personal digital assistant (PDA) device 210, a mobile phone device 206, a television 204, and the like. For another example, a mobile phone device 206 (e.g., a smart phone) and a television 204 (e.g., a smart TV) may be connected to the network 202 (e.g., a local area network) for communication to share content; a smart phone 206 or a smart TV 204 and a server 212 may also be connected to the network 202 (e.g., a wide area network) for communication so that a user can access server data on a terminal device, such as accessing or downloading a video stream, and the like.

[0110] The following embodiments of the present application provide a screen projection method so that smart terminals, such as smart phones and smart TVs, can more conveniently and quickly push and display streaming media data when interconnected. For example, when a smart phone is projecting the screen to a smart TV, the large screen of the smart TV can simultaneously display the video, as well as at least one of the barrage information or external subtitle information.

[0111] Figure 3 A schematic diagram of a screen projection method provided by the present application is shown, for example, a screen projection method for streaming data. Figure 3As shown in a, a first electronic device, such as a first smart terminal 310, is watching a video on a first application. The first smart terminal 310 can be a mobile phone, a tablet computer, a smart wearable device, a smart home device, etc. In a preferred embodiment of the present application, the first smart terminal 310 is a device with a relatively high user frequency and a relatively small screen. The first application can be any video website client, such as iQiyi, Youku, Tencent, etc., or an application that supports playing video sources from any video website, such as WeChat, Weibo, etc. See Figure 3 a. When a user watches a video on a first smart terminal 310 such as a smart phone or a tablet computer, in the first application of the first smart terminal 310, in addition to displaying the video screen 311, an operation interface can also be displayed. Figure 3 A part of the playback control interface related to the video content is shown in FIG. 30, including but not limited to the screen casting key 302, the bullet screen key 304, the bullet screen setting key 306, and the bullet screen sending box 308. Among them, the operation interface can be displayed on the video screen 311, or it can be displayed in a different display area from the video screen 311, and this application does not impose any restrictions on this.

[0112] In one embodiment, after the user selects video playback on the first application, the bullet screen or bullet screen information 313, or external subtitle information (not shown in the figure) can be displayed by default with the video screen. In another embodiment, after the user plays the video, he clicks the bullet screen key 304 to display the bullet screen 313, and / or selects to display external subtitles through the menu interface (not shown in the figure). When the animation of the bullet screen 313 and the video screen are played on the first application of the first smart terminal 310, the user can set the display parameters of the bullet screen and send new bullet screen information through the bullet screen setting key 306 and the bullet screen sending box 308.

[0113] When the user clicks the screen casting button 302 on the first application, the first smart terminal 310 detects the screen casting operation and starts searching for devices that can cast the screen. The searched device results can be presented in the form of a list on the smart terminal 310 for the user to select, and based on the user's selection, the smart terminal 310 sends a screen casting request to the selected device to cast the screen. In other cases, based on the user's selection, the smart terminal 310 communicates with the selected device to send a screen casting request.

[0114] In one embodiment of the present application, in response to the user clicking the screen projection key 302, or in response to the user selecting a screen projection device, the smart terminal 310 may also display the following Figure 3b or the menu bar or pop-up window shown in 3c. For example, when the first application on the smart terminal 310 plays a video and displays a bullet screen 313, the user clicks the screen casting key 302 and selects the target device for screen casting. At this time, the menu bar or pop-up window shown in 3b is displayed on the smart terminal 310, so that the user can select 301 "video screen casting" or select 303 "video and bullet screen casting", so as to cast the video or the video and the bullet screen together according to the actual needs of the user. For another example, when the video played by the first application on the smart terminal 310 has been cast to the target device, the user clicks the bullet screen key 304 on the smart terminal 310, and the menu bar or pop-up window 305 shown in 3c is displayed on the smart terminal 310, so that the user can choose whether to cast the bullet screen. If the user selects 307 "Yes", the target device will display the bullet screen on the video. If the user selects 309 "No", the video displayed by the target device will not be superimposed with the bullet screen, and the bullet screen 313 can be displayed on the smart terminal 310.

[0115] See also Figure 3 d, in Figure 3 In the embodiment shown in d, the user selects a second electronic device, such as a second smart terminal 320, to cast the screen. The second smart terminal 320 may have a larger display screen than the first smart terminal 310. In one embodiment of the present application, before the second smart terminal 320 displays the cast content, the first smart terminal 310 determines whether the current video playback content displays bullet screens and / or external subtitles. If the result of the determination is yes, when pushing the video to the second smart terminal 320, the bullet screens and / or external subtitles are also pushed. Figure 3 d, when the screen projection starts, the video screen 321 and the bullet screen 323 are displayed on the display screen of the second smart terminal 320 at the same time. In another embodiment of the present application, after the second smart terminal 320 has received the screen projection request of the first smart terminal 310 and displays the video screen 321, after the first application of the first smart terminal 310 receives the user's operation of clicking the bullet screen key 304, the bullet screen information of the video screen 321 will be projected to the display screen of the second smart terminal 320, that is, the bullet screen or bullet screen information 323 will be displayed.

[0116] In one embodiment of the present application, after the video screen 311, the bullet screen 313 and / or the external subtitles on the first smart terminal 310 are projected onto the second smart terminal 320, the user can still manipulate the video screen 321 displayed on the second smart terminal 320 through the playback controls on the first smart terminal 310, including but not limited to switching videos, fast forward, fast rewind, volume control, etc. The user can also manipulate the bullet screen 323 displayed on the second smart terminal 320 through the first smart terminal 310, including but not limited to adjusting bullet screen parameters, sending new bullet screens, etc. In addition, the user can also directly manipulate the video screen 321 and the bullet screen 323 on the second smart terminal 320, including but not limited to the above-mentioned manipulation operations.

[0117] After the video is projected, since the second smart terminal 320 can display bullet screens and / or external subtitles at the same time, the user can continue to be provided with a scenario of watching the video while interacting with the bullet screens, and / or viewing the corresponding subtitles while watching the video. Therefore, the present application provides a convenient and fast solution for projecting bullet screens and / or subtitles for users, which satisfies the user's entertainment needs while watching the video, and can greatly improve the user's projecting experience.

[0118] The first smart terminal 310 in the present application may be a portable smart device, and the second smart terminal 320 may be a smart TV. After the video and bullet screen displayed on the portable smart device 310 are projected onto the smart TV 320 as shown in 3D, the portable smart device 310 may also be Figure 3 e to exit the first application or exit the video display screen to perform other operations. Therefore, the first intelligent terminal 310 in the embodiment of the present application realizes the projection of video and bullet screen, and the projection scheme can be freely and flexibly selected.

[0119] The "bullet screen" mentioned in this application refers to the commentary content about the video provided by the video website client, which can be displayed simultaneously with the video. It is usually displayed superimposed on the top of the video screen. Any user watching the video can add their own bullet screen information for interaction, and the added bullet screen information will be displayed in the bullet screen display area. The "display parameters" of the bullet screen mentioned in this application can be adjusted by setting the bullet screen setting key. The display parameters may include but are not limited to the following bullet screen parameters: font, font size, color, transparency, animation speed, display area, shielding user ID (account name), etc. The "external subtitles" mentioned in this application are a type of subtitles that are different from the embedded subtitles of the video. The data of the external subtitles is separated from the video data, and is not integrated together. It needs to be imported separately to be displayed in the video screen, and is usually superimposed and displayed below the video screen.

[0120] In the embodiment of the present application, the "screen projection" of the first smart terminal 310 refers to projecting at least a portion of the content displayed on the display screen of the first smart terminal 310, and at least a portion of the data related to the displayed content, including but not limited to video, audio, text, etc., to another electronic device, such as the second smart terminal 320. When a smart terminal needs to project the screen, the "screen projection device" it searches for can be an electronic device that supports screen projection in the same local area network (including a layer 2 local area network, connected to the same router), or an electronic device that is not in the same local area network but shares an electronic account with the first smart terminal 310 and is interconnected through other networks (such as wired or wireless networks).

[0121] In a specific embodiment of the present application, the screen projection device searched by the first smart terminal is a device in the same local area network that supports the same screen projection protocol, wherein the screen projection protocol can be a wireless screen projection protocol, such as Airplay, DLNA and other technologies or protocols.

[0122] Figure 4 The module architecture diagram of the intelligent terminal is shown in FIG. Figure 4 a also shows a schematic diagram of the architecture and communication connection of the first smart terminal 401, the second smart terminal 402, and the video server 410 of the first application.

[0123] See also Figure 4 a, the first intelligent terminal 401 includes a communication module 411, a data judgment unit 412, a video decoding unit 413, a text parsing unit 414, a display module 415, a video control unit 416, and a text control unit 417, wherein the display module 415 may also include a video display unit 418 and a text display unit 419. In order to facilitate the description of the embodiments of the present application, Figure 4 Only the modules related to video playback and text display in the first smart terminal 401 are shown in a. It should be understood that the first smart terminal 401 may also include more functional modules, such as Figure 1A The first smart terminal 401 in the embodiment of the present application may be a smart phone, which performs a first communication 431 with the video server 410 through a first application, thereby acquiring video data and text data in the video server 410 and displaying them on the display module 415 of the first smart terminal 401.

[0124] The second smart terminal 402 includes a communication module 421, a data judgment unit 422, a video decoding unit 423, a text parsing unit 424, and a display module 425, wherein the display module 425 may also include a video display unit 428 and a text display unit 429. The second smart terminal 402 in the embodiment of the present application may be a smart TV, which communicates with the first smart terminal 401, such as a smart phone, through a screen projection protocol. In one embodiment of the present application, a second communication 432 is performed between the smart TV and the smart phone. Through the data provided by the first smart terminal 401, the second smart terminal 402 further performs a third communication 433 with the video server 410 to obtain the video data and text data in the video server 410, and displays it on the display module 425 of the second smart terminal 402 for screen projection. It should be understood that the first communication 431, the second communication 432, and the third communication 433 can be any form of communication, such as a wired or wireless communication method, etc., and the present application does not limit this. For example, the first smart terminal 401 and the second smart terminal 402 are in a local area network and connected to a router. The first communication 431, the second communication 432, and the third communication 433 can be implemented via the router. In one embodiment of the present application, the second smart terminal 402 may also include a video control unit 426 and a text control unit 427 (both represented by dashed boxes in the figure) to control the playback of the projected video and the corresponding text display. In order to facilitate the description of the embodiments of the present application, Figure 4 Only the modules related to video playback and text display in the second smart terminal 402 are shown. It should be understood that the second smart terminal 402 may also include more functional modules, such as Figure 1A As shown, no further description is given here.

[0125] See also Figure 4 b. The text parsing unit 414 / 424 may include a barrage parsing unit 4141 and / or a subtitle parsing unit 4142; the text display unit 419 / 429 may include a barrage display unit 4191 and / or a subtitle display unit 4192; the text control unit 417 / 427 may include a barrage control unit 4171 and / or a subtitle control unit 4172, wherein the text control unit 417 / 427 may also include a barrage sending unit 4173.

[0126] The communication modules 411 and 421 of the first and second smart terminals 401 and 402 are used to respectively perform a first communication 431 and a third communication 433 with the video server 410 , thereby being interconnected to request and send streaming media and related data.

[0127] In one embodiment of the present application, through the first communication 431, the first smart terminal 401 receives video data and text data from the video server 410; through the second communication 432, the second smart terminal 402 receives data of the video download address and the text download address from the first smart terminal 401; through the third communication 433, the second smart terminal 402 receives video data and text data from the video server 410.

[0128] The data judgment units 412 and 422 of the first and second intelligent terminals 401 and 402 are used to judge the type of data received from the video server 410, and transmit different data to different units according to the judgment result, for example, transmitting video data to the video decoding units 413 and 423, and transmitting text data to the text parsing units 414 and 424. For example, when the data judgment units 412 and 422 judge that the received data is bullet screen data, the bullet screen data will be transmitted to the video server 410. Figure 4 b. When the data judging units 412 and 422 judge that the received data is subtitle data, the subtitle data will be transmitted to Figure 4 b shows the subtitle parsing unit 4142.

[0129] The video decoding units 413 and 423 decode the received video data and transmit them to the video display units 418 and 428 for display on the display screen of the smart terminal. The text parsing units 414 and 424 parse the received text data and transmit them to the text display units 419 and 429 for superimposition display on the video screen played on the display screen. For example, the barrage parsing unit 4141 parses the barrage data to obtain the barrage information and sends it to the barrage display unit 4191. The barrage display unit 4191 renders the parsed barrage information and displays it on the display screen of the smart terminal, and usually superimposes it on the top area of ​​the video screen for display; the subtitle parsing unit 4142 parses the subtitle data and sends it to the subtitle display unit 4192. The subtitle display unit 4192 renders the parsed subtitle data and displays it on the display screen of the smart terminal, and usually superimposes it on the bottom area of ​​the video screen for display.

[0130] The video control units 416 and 426 are used to control the video displayed on the display screen, including but not limited to controlling the pause, play, fast forward, drag and drop, and switch of the video. The text control units 417 and 427 are used to control the text displayed on the display screen. For example, the barrage control unit 4171 is used to control the barrage information on the video being played, including but not limited to controlling the playback speed, text font, color, size, display area, etc. of the barrage information; the subtitle control unit 4172 is used to control the subtitle data of the video being played, including but not limited to controlling the font, color, size, display area, switching subtitles, etc. of the subtitles. The text control units 417 and 427 may also include a barrage sending unit 4173 for sending barrage information on the smart terminal. The barrage sending unit 4173 receives the barrage information input by the user (for example, the user enters a Figure 3 a), sends the barrage information to the video server 410, so as to update the barrage data packet corresponding to the video on the video server side, and sends it to the corresponding client in the form of streaming media. In one embodiment of the present application, the barrage sending unit 4173 sends the barrage information to another smart terminal and displays it on its display screen, and / or sends it to the local barrage display unit 419, 429 to display the barrage, so that the new barrage sent by the user can be displayed on the display screen in real time, providing the user with a better barrage sending experience.

[0131] Although the embodiments of the present application only take video projection as an example, and describe in detail the module architecture of the smart terminal and the projection scheme of text information such as barrage, it should be understood that in other embodiments of the present application, other data can be projected, such as audio data. When there is text information such as barrage and / or lyrics on the projected audio data, the barrage and / or lyrics information can be projected at the same time according to the above embodiment. It should be understood that in this embodiment, the projected audio data will be parsed in the local audio decoding unit of the smart terminal and played on the audio output unit. In the process of projecting audio or other data, the projection scheme of text information such as barrage and / or lyrics should be similar to the above embodiment, so it will not be repeated here.

[0132] The following will take the bullet screen information as an example. Figures 5 to 8 The timing diagram shown illustrates the display and control process of the bullet screen information when the screen is projected, during the projection, and when the projection ends. It should be understood that the display and control process of the subtitle information is similar.

[0133] right Figures 5 to 8 The description will be combined with Figure 4 The architecture diagram shown and Figure 3 The scene diagram shown is used.

[0134] The following will take bullet screen display and bullet screen sending as an example to illustrate the data request and sending between the smart terminal and the video server of the present application.

[0135] Figures 5 to 8 A message sequence diagram of a screen projection method provided in an embodiment of the present application, such as a screen projection method for streaming data. Figure 5 A timing diagram 500 is shown for screen projection between a source device and a projection device.

[0136] exist Figure 5 In the embodiment shown, the source device is the terminal device 501, and the screen projection device is the terminal device 502. In 511, the terminal device 501 opens the application 1 and after selecting the video, requests the video data from the video server 510 in 513. In response to the request, the video server 510 sends the video data, such as the video stream data, to the terminal device 501 in 514. Therefore, in 515, the terminal device 501 Figure 4 As described above, when the data judgment unit 412 judges that the received data is video data, the video data is transmitted to the video decoding unit 413 for decoding. After the video data is decoded, the video is displayed on the video display unit 418 of the terminal device 501, that is, the video screen is displayed on the display screen. In a specific embodiment, the video server 510 responds to the request of the terminal device 501 to obtain the video and sends the authorized video download address to the terminal device 501, so that the terminal device 501 downloads the video. The video download address can be a URL (Uniform Resource Locator) address.

[0137] When the terminal device 501 detects the operation of opening the bullet screen (for example, clicking Figure 3 In step 517, the video server 510 is requested for the bullet screen data. In response to the request, in step 518, the video server 510 sends the bullet screen data to the terminal device 501. Therefore, in step 519, the terminal device 501 Figure 4 As described above, when the judgment unit 412 judges that the received data is barrage data, the barrage data is transmitted to the text parsing unit 414 for parsing. After the barrage data is parsed, the barrage information is displayed on the text display unit 419 of the terminal device 501, that is, the barrage information is superimposed on the video screen on the display screen, such as Figure 3As shown in a, it is usually displayed at the top of the video screen. The display of subtitles is not shown in the figure. When the received text data is subtitle data, the subtitle information obtained after parsing will be superimposed on the video screen and usually displayed at the bottom. In a specific embodiment, the video server 510 responds to the request of the terminal device 501 to obtain the barrage, and sends the authorized barrage download address (for example, URL) to the terminal device 501, so that the terminal device 501 downloads the barrage data. In an embodiment of the present application, the barrage can be an animation played on the display screen, which can roll or slide in from the right side of the display screen of the terminal device 501 to the left side, or it can be displayed by moving to other directions of the display screen with other animation effects. It should be understood that the animation effect of the barrage should not be used as a limitation to the present application.

[0138] When the source device 501 detects the operation of clicking the screen casting button 302, in 521, the source device 501 selects the screen casting device 502 to send a screen casting request for screen casting. In 525, the source device 501 determines whether the bullet screen information is being displayed in the application 1. If the result of the judgment is yes, when requesting the authorized streaming data download address from the video server 510 in 526, the video data download address and the bullet screen data download address are requested at the same time. In response to the request of the source device 501, in 526, the video server 510 sends the authorized video and bullet screen data download address to the source device 501. In 528, the source device 501 sends the received authorized download address to the screen casting device 502. In another embodiment of the present application, steps 526 and 527 can be skipped. In this embodiment, after the source device 501 requests the video and barrage from the video server 510 (i.e., steps 513 and 517), the video server 510 sends the authorized video data download address and the authorized barrage data download address. Therefore, the source device 501 can skip steps 526 and 527 and directly execute step 528. Specifically, the authorized video data and barrage data download address can be added to the screen casting request sent by the terminal device 501 to the terminal device 502. In particular, in one embodiment, when the user is watching an iQiyi video on the terminal device 501 and performs the screen casting operation, the terminal device 501 determines that subtitles and external barrage are displayed at the same time, then the video download address authorized by iQiyi, as well as the download address of the barrage and external subtitles are added to the screen casting request sent by the terminal device 501 to the terminal device 502.

[0139] For example:

[0140] Video download address, "videoSource":"http: / / video.iqiyi.com / source?p=9088&tk=skdhfsdf"

[0141] Bullet Comments download address, "bulletComments": "http: / / comment.iqiyi.com / c?id=skdhfsdf"

[0142] Subtitle download address, "subtitle":"http: / / sub.iqiyi.com / source?id=89898"

[0143] Taking the DLNA protocol as an example, the terminal device 501, such as a smart phone, acts as a Control Point in DLNA, the terminal device 502, such as a smart TV, acts as a Media Renderer, and the video server 510, such as an iQiyi server, acts as a Media Server. In one embodiment of the present application, after the smart phone Control Point selects the video to be played, it pushes the download address of the video source to the smart TV Media Renderer. If it is determined that the corresponding bullet screen information and / or external subtitle information are also superimposed and displayed in the current video of the iQiyi APP (application), the smart phone Control Point pushes the download address of the bullet screen source and / or the download address of the external subtitle source to the smart TV Media Renderer. The smart TV Media Renderer obtains the video source, bullet screen source, and / or external subtitle source file from the iQiyi server Media Server according to the received video source, bullet screen source, and / or external subtitle source download address. The way in which the iQiyi server Media Server transmits these files to the smart TV Media Renderer may be, for example, HTTP / HTTPS. After receiving the video source, bullet screen source, and / or external subtitle source files, the smart TV MediaRenderer renders these files and displays the video screen on the display screen, and superimposes the bullet screen and / or external subtitles. The information pushed by the smartphone Control Point to the smart TV Media Renderer through the DLNA protocol can add the following fields:

[0144] dlna-playsingle: / / uuid:742b972e-3e50-4fa9-bc49-8d1ac91587e5? sid=urn:upnp-org:serviceId:ContentDirectory

[0145] dlna-bulletcomments:http: / / comment.iqiyi.com / c? id=skdhfsdf

[0146] dlna-subtitle:http: / / sub.iqiyi.com / source? id=89898

[0147] In 531 and 535, the screen projection device 502 requests video data and barrage data from the video server 510 according to the received video download address and barrage download address, and sends the video data and barrage data to the screen projection device 502 in 532 and 536. Figure 4 As described above, the part determined as video data is transmitted to the video decoding unit 423 for decoding by the data judgment unit 422, and the part determined as barrage data is transmitted to the text parsing unit 424 for parsing, and the video and barrage information obtained by parsing are loaded and displayed on the display screen of the terminal device 502 through the video display unit 428 and the text display unit 429 respectively. It should be understood that since the display of barrage is to enable users to interact and comment with other users while watching the video, the barrage data is related to the playback time of the video, that is, part of the barrage data is only related to a certain section of the video and should be displayed on the screen when the video is played. In addition, in 533, the video displayed on the projection device 502 should be the video screen that is cut off after the user clicks the projection button on the source device or the screen before and after the cut video screen. At the same time, in 537, the barrage information displayed on the projection device 502 should be the barrage information associated with the cut video screen or the screen before and after the cut video screen. For example, when the source device 501 plays the video Video1 to 03′30″ on the application 1, the user clicks the cast button, then when the screen is cast and played on the projection device 502, the video should be from 03′30″ or before and after it, for example, the picture starting from 03′28″, and the barrage displayed on the video screen should be the barrage information associated with the video screen at 03′30″ or before and after it.

[0148] In a specific embodiment, a portion of the parsed bullet comment file received by the screen projection device 502 is exemplified as follows:

[0149] <d p="51.593,5,25,16711680,1408852480,0,7fa769b4,576008622"> Barrage 1

[0150] <d p="10.286,1,25,16777215,1408852600,0,a3af4d0d,576011065"> Barrage 2

[0151] <d p="12.65,1,25,16777215,1408852761,0,24570b5a,576014281">Barrage 3

[0152] <d p="19.033,1,25,16777215,1408852789,0,cb20d1c7,576014847"> Barrage 4

[0153] <d p="66.991,1,25,16777215,1408852886,0,a78e484d,576016806"> Barrage 5

[0154] The content in the p field, for example, the first line of the above bullet comment file:

[0155] p="51.593,5,25,16711680,1408852480,0,7fa769b4,576008622"

[0156] The multiple data separated by commas are data related to the display parameters of the comment "Excited, excited, so excited". The data is exemplary and can be explained as follows:

[0157] The first parameter "51.593" is the time in seconds that the comment appears in the video.

[0158] The second parameter "5" is the animation mode of the bullet screen, where 1 to 3 represent three different forms of rolling bullet screens, 4 represents bottom bullet screens, 5 represents top bullet screens, 6 represents reverse bullet screens, 7 represents precise positioning, 8 represents advanced bullet screens, and so on;

[0159] The third parameter "25" is the font size of the barrage display, where 12 represents very small, 16 represents extra small, 18 represents small, 25 represents medium, 36 represents large, 45 represents very large, 64 represents extra large, and so on;

[0160] The fourth parameter "16711680" is the font color of the bullet screen display. This embodiment uses the ten digits of the HTML color.

[0161] The fifth parameter "1408852480" is a timestamp in Unix format;

[0162] The sixth parameter "0" is the barrage pool, where 0 represents the normal pool, 1 represents the subtitle pool, 2 represents the special pool (the special pool is for advanced barrage), and so on;

[0163] The seventh parameter "7fa769b4" is the account ID of the sender of the barrage, which can be used to "block the sender of this barrage";

[0164] The eighth parameter "576008622" is the rowID representing the arrangement order of the barrage in the barrage database, which can be used for the "historical barrage" function.

[0165] After receiving the above-mentioned bullet screen file, the screen projection device 502 renders it on the local player and then displays it on the video screen played on the display screen. Taking DLNA as an example, part of the relevant code for rendering bullet screen in the player of the smart TV will be shown below. It should be understood that these codes are only used as examples and should not be used as a display of the present invention.

[0166] Custom ViewGroup-XCDanmuView is implemented by inheriting RelativeLayout, or by inheriting other layout classes. The exemplary code is as follows:

[0167]

[0168]

[0169] Initialize the item View of the barrage, here take TextView and ImageView as examples, and then add them to the custom danmuView through addView. The exemplary code is as follows:

[0170]

[0171]

[0172] Add to XCDanmuView through addView to achieve the effect of moving in from outside the screen, where the bullet screen position is the coordinate. In terms of moving from right to left, the newly generated danMuView is hidden to the rightmost side of the layout. After addView, the position of the danMuView is set to outside the screen on the right. The exemplary code is as follows:

[0173]

[0174] The bullet message itemView appears randomly from the left or right side, and the movement is achieved by using attribute animation, moving from one end of the screen to the other. When the animation is over, the view is removed from XCDanmuView. A new bullet message itemView is created, and addView to XCDanmuView, and the animation movement starts. The exemplary code is as follows:

[0175]

[0176]

[0177] In one embodiment of the present application, optionally, in 529, the source device 501 can send the current barrage display parameters to the projection device 502, so that when the projection device 502 displays the barrage, it will accordingly match the barrage parameters displayed on the source device, for example, displaying four rows of barrage information in blue with the largest font, and so on.

[0178] In the technical solution of streaming screen projection provided in the embodiment of the present application, when the source device 501 initiates a screen projection request, it actively determines whether the screen projection video displays bullet screen and / or external subtitles, and based on the result of the judgment, actively sends the authorized download address of the bullet screen data and / or external subtitle data to the screen projection device 502, so that the screen projection device 502 requests streaming data from the video server 510. In this way, the embodiment of the present application implements a streaming screen projection solution that simultaneously projects video and bullet screen (and / or external subtitle) data. At the same time, since the video data and bullet screen data of the screen projection device 502 are both sent by the video server 510, the two can ensure the smoothness of video playback and bullet screen display in the projection through wired or wireless communication, thereby improving the user's screen projection experience.

[0179] After screen projection is performed between the source device 501 and the projection device 502, the source device 501 can continue to control the projection state in 539, or exit the current projection video interface and browse other video guides in application 1, or exit application 1 to browse the interfaces of other applications, or enter the screen-off state without interfering with the video and barrage display on the projection device 502.

[0180] After the screen is projected, the user can also control and adjust the display of the bullet screen and send bullet screen information through the user interaction interface displayed on the source device 501, for example, Figure 3 The barrage key 304 in a is used to terminate or start the display of the barrage on the projection device, the display parameters of the barrage on the projection device are adjusted through the barrage setting key 306, or the barrage is sent through the barrage sending box 308 to be displayed on the projection device.

[0181] In one embodiment of the present application, when the user turns off the bullet screen from the source device 501 or the screen projection device 502, for example, by clicking the bullet screen key 304 to turn off the bullet screen display, an exemplary portion of the code is as follows:

[0182]

[0183] When the user turns on the bullet screen again from the source device 501 or the screen projection device 502, for example, by clicking the bullet screen key 304 to turn on the bullet screen display, part of the pseudo code may be as follows:

[0184]

[0185]

[0186] Figure 6 A timing diagram 600 for adjusting the bullet screen parameters during screen projection is shown. In 601, the user sets the bullet screen through the terminal device 501, that is, the user interaction screen on the source device, and adjusts the display parameters of the bullet screen through the text control unit 417. When the source device 501 detects an operation on the bullet screen setting key 306 of the user interaction interface, a bullet screen setting window (not shown in the figure) pops up, which may include but is not limited to setting the bullet screen: transparency (0-100%), font size (small-standard-large-extra large), playback speed (slow-normal-2x-3x), display area (10-50%), color, animation effect, etc. When the source device 501 detects that the setting of the bullet screen parameters is completed, in 603, the source device 501 sends the updated bullet screen parameters to the screen projection device 502. In 605, in response to the received barrage parameters, the text control unit 427 of the projection device 502 adjusts the barrage displayed on the text display unit 429 according to the barrage parameters, and the adjusted barrage display corresponds to the settings made by the user on the source device 501 or corresponds to the display settings after the text control unit 427 adapts some parameters accordingly.

[0187] In 611, the user can also set the display parameters of the bullet screen on the screen projection device 502, for example, by controlling the user interaction screen on the display screen through the remote control of the smart TV to set it, and adjust the display parameters of the bullet screen through the text display unit 429. In one embodiment of the present application, step 613 is also included, in which the screen projection device 502 sends the updated bullet screen display parameters to the source device 501 to update the user's adjustment / change of the bullet screen display parameters on the source device 501.

[0188] During the screen projection process, users can freely choose whether to personalize the display of barrage information on the source device or the projection device. Even if the barrage display parameters are set on the source device, they can be adapted to the current projection screen on the projection device, making the setting operation very convenient and flexible. Correspondingly, the changes made by the user on the projection device can also be updated to the source device, so that when the user switches back to the source device to watch the video, he can see the barrage that has been adapted to the change accordingly, without having to set it again.

[0189] Figure 7A timing diagram 700 is shown in which a user sends barrages through two devices during screen projection. In 703, the user edits the barrage information to be sent through the barrage sending box 308 on the user interaction interface on the terminal device 501, and sends the barrage information through the barrage sending unit in the text control unit 417. When the terminal device 501 detects that the user enters the barrage information and clicks to send, the terminal device 501 encapsulates the barrage information into barrage data and sends the barrage data to the terminal device 502. In response to receiving the newly added barrage data, the text parsing unit 424 of the terminal device 502 parses the barrage data to obtain new barrage information. In 707, the parsed barrage information is loaded / displayed in the currently displayed video screen through the text display unit 429. The newly added barrage information can be slid into the display screen from the upper right side of the display screen with a sliding-in animation effect.

[0190] In one embodiment of the present application, in 701, the terminal device 501 may also send the barrage data to the video server 510, and in 705, the video server 510 updates the corresponding barrage data packet in response to the received barrage data, and in 706, sends the updated barrage data packet to the terminal device 502, so that the terminal device 502 displays the newly added barrage in step 707.

[0191] In another embodiment of the present application, if the terminal device 501 still displays barrage information on its display screen after screen projection, the barrage information newly sent by the user on its user interaction interface will also be displayed on the display screen of the terminal device 501 with a sliding-in animation effect.

[0192] Continue to refer Figure 7 In 711, the user can also edit the bullet screen information in the user interaction interface on the terminal device 502, and send the bullet screen information through the bullet screen sending unit in the text control unit 427. The specific operation can be, for example, to input text information in the user interaction interface on the display screen through the remote control of the smart TV and click to send. When the terminal device 502 detects that the user clicks to send the bullet screen information, it encapsulates it into bullet screen data and sends it to the video server 510. In 715, in response to the received bullet screen data, the video server 510 updates the corresponding bullet screen data packet, and in 716, sends the updated bullet screen data packet to the terminal device 502. In 717, the terminal device 502 controls the text display unit 429 through the text control unit 427, so that the new bullet screen information is displayed on the display screen of the terminal device 502 with a sliding animation effect.

[0193] In one embodiment of the present application, steps 715 and 716 may be omitted, and the new bullet screen sent by the user on the terminal device 502 will be directly displayed on the display screen of the terminal device 502, rather than being displayed after receiving the updated bullet screen data from the video server 510.

[0194] In another embodiment of the present application, if the terminal device 501 still displays barrage information on its display screen after screen projection, the terminal device 502 may also send the barrage data containing the new barrage information to the terminal device 501 in 712. After the terminal device 501 parses the barrage data through the text parsing unit 414, in 714, the barrage information newly sent by the user is displayed on the display screen of the terminal device 501 with a sliding-in animation effect through the text display unit 417.

[0195] Among them, regarding the user clicking to send the bullet screen, and the new bullet screen sliding in with animation effects on the source device 501 and / or the projection device 502, an exemplary part of the code is as follows:

[0196]

[0197] Since users can have a similar real-time interactive experience through the display and sending of bullet comments when watching videos, during the video projection process, users can still send new bullet comments from the source device or the projection device, and view the newly sent bullet comments while watching the video, and continue to participate in "real-time interaction". Usually the projection device has a larger display screen than the source device, allowing users to watch videos on the large screen and "interact in real time", enhancing the interactive experience.

[0198] Figure 8 The timing diagram 800 shows that when the screen projection between the two devices is terminated, the video screen and the bullet screen information continue to be displayed on the display screen of the source device 501. In 802, the terminal device 501 detects the user's operation of terminating the screen projection, such as clicking Figure 3The screen projection button 302 shown is used to end the screen projection, and the terminal device 501 sends a termination request to the terminal device 502. In response to the termination request, in 803, the terminal device 502 controls the display module 425 through the video control unit 426 and the text control unit 427 to stop displaying the current video screen and bullet screen information, and in 804, the data transmission and reception between the terminal device 502 and the video server 510 is terminated. In 810, the terminal device 501 requests the video server 510 for the currently interrupted video data and bullet screen data. In response to the request, in 812, the video server 510 sends the video data and bullet screen data of the currently interrupted video screen or the video data and bullet screen data starting from the previous and next screens to the terminal device 501, and in 814, the decoded video and bullet screen are transmitted on the terminal device 501 through the video decoding unit 413 and the text parsing unit 414, and displayed on the display module 415.

[0199] In one embodiment of the present application, Figure 6 As shown, in step 611, the user sets the display parameters of the bullet screen through the screen projection device 502. Since no video screen and / or bullet screen information is displayed on the source device 501 at this time, the parameter changes made on the screen projection device 502 are not further sent to the source device 501. In this embodiment, when the user terminates the screen projection, Figure 8 As shown, in 805, the screen projection device 502 determines whether the bullet screen display parameters have been changed during the screen projection process. If the judgment result is yes, in 807, the currently updated bullet screen display parameters are sent to the source device 501. Based on the bullet screen display parameters received from the screen projection device 502, the source device 501 will correspond to the parameters and make corresponding adaptations when displaying the bullet screen on the display screen.

[0200] In another embodiment of the present application, after the user sets the display of the bullet screen of the currently watched video on the screen projection device, the user may not execute Figure 6 As shown in 613, the change of the bullet screen display setting may not be updated to the source device 501; and when the user terminates the screen projection, the Figure 8 805 and 807 shown, that is, the change of the barrage display setting is still not updated on the source device 501. In this embodiment, the user can keep a set of settings ConfigA for the barrage display on the source device 501, and keep another set of settings ConfigB for the barrage display on the projection device 502, and when the user changes the display settings of the barrage on the source device 501 or the projection device 502 at any time, only the parameters in ConfigA or ConfigB will be changed respectively, and the other parameter will not be affected, thereby meeting the different needs of users for barrage display parameters on different devices.

[0201] Fig. 9A method flow chart 900 of screen projection is provided in an embodiment of the present application, such as a method of screen projection of streaming data. Fig. 9 Shown is a flow chart 900 of a method for streaming data screen projection executed on a terminal device 501, i.e., a source device.

[0202] In step 901, the source device 501 plays a video on a first application, such as iQiyi, Youku, etc. The video played on the source device 501 is a video stream received from a server of iQiyi, Youku, etc. The server sends the download address of the video stream requested to be played by the source device 501 to the source device 501. Based on the download address, the source device 501 can download the corresponding video stream data, and play it after decoding it locally through the video decoding unit 413, and the played video screen is displayed on the display screen of the source device 501 through the video display unit 418 in the display module 415.

[0203] In step 903, the source device 501 detects the screen casting operation of the user on the first application interface. For example, when the source device 501 detects that the user clicks the screen casting button 302 on the video screen, a tab for a list of screen casting devices detected in the current environment pops up. The current environment refers to, for example, the local area network where the current source device 501 is located. In another embodiment of the present application, the source device 501 can detect other smart devices logged in by the current system account and use these devices as screen casting devices. In step 903, if the source device 501 does not detect the screen casting operation, the current video continues to play.

[0204] In one embodiment of the present application, the first application may respond to the user having checked the option to start the bullet screen before exiting the application last time, and the bullet screen is enabled by default when playing the video this time. In this embodiment, the video screen currently displayed by the source device 501 may also be overlaid with bullet screen information related to the video.

[0205] In another embodiment of the present application, the server of the first application may provide external subtitles related to the video, and automatically send the data of the external subtitles in response to the user selecting to play the video. In this embodiment, the source device 501 may also overlay the external subtitle information related to the video on the currently displayed video screen.

[0206] The following will take barrage as an example to further describe the streaming data screen projection method provided by this embodiment.

[0207] In step 905, the source device 501 detects that the user selects the terminal device 502 for screen projection. The terminal device 502 can be a device that is in the same local area network as the source device and supports the same screen projection protocol, such as a smart TV.

[0208] In step 907 , the source device 501 detects whether a bullet screen is displayed in the currently played video under the first application program, that is, detects whether the bullet screen function is currently turned on. If it is detected that the bullet screen function is currently turned on, step 909 is executed.

[0209] In step 909 , the source device 501 sends the download address of the bullet screen data and the download address of the video data authorized by the video server of the first application to the screen projection device 502 , such as the bullet screen download URL and the video download URL.

[0210] After receiving the data download address sent by the source device 501, the screen projection device 502 obtains the video stream and bullet screen data through the access address and the video server. The video decoding unit 423 and the text parsing unit 424 of the screen projection device 502 decode and parse the obtained video stream and bullet screen data respectively, and display the decoded and parsed video and bullet screen information respectively through the video display unit 428 and the text display unit 429 of the display module 425, wherein the bullet screen information is loaded and superimposed on the video screen, and the notification is displayed on the top of the video screen.

[0211] Fig.10 A method flow chart 1000 of screen projection is provided in an embodiment of the present application, such as a method of screen projection of streaming data. Fig.10 Shown is a flow chart 1000 of a method for streaming data screen projection executed on a terminal device 502, i.e., a screen projection device.

[0212] In step 1001, the screen projection device 502 receives a screen projection request from the terminal device 501, that is, the source device.

[0213] In step 1003 , the screen projection device 502 receives the download address of the video data and the download address of the barrage data from the source device 501 .

[0214] Specifically, the first judgment unit on the screen projection device 502 is used to judge the part belonging to the video data download address and the part belonging to the barrage data download address respectively, so as to request the video stream data and the barrage data respectively.

[0215] Among them, the download address of the video data and the barrage data is the authorized download address sent by the video server 510 of the first application to the source device 501. The download address can be sent by the video server 510 to the source device 501 when the source device 501 requests a video from the video server 510, or it can be the download address requested from the video server when the source device 501 is preparing to cast the screen to the projection device 502, that is, after the source device 501 detects that the user clicks the projection button 302, it sends a request to the video server 510 while sending a projection invitation to the projection device 502, requesting the issuance of the authorized video data download address and the barrage data download address.

[0216] In step 1005, in response to the received video data download address and barrage data download address, the screen projection device 502 accesses the address to request the video stream data and barrage data.

[0217] Specifically, after the video server 510 determines that the screen projection device 502 is an authorized device, it sends the requested video stream and barrage data packet to the screen projection device 502.

[0218] In step 1007, the screen projection device 502 receives the video stream and bullet comment data packet sent by the video server.

[0219] Specifically, the data judgment unit on the screen projection device 502 judges the type of data received, and sends the video data to the video decoding unit and the barrage data to the text parsing unit for separate parsing.

[0220] In step 1009, the display screen of the projection device 502 plays the video and simultaneously superimposes the bullet screen on the video screen for display.

[0221] Specifically, the video decoding unit 423 of the screen projection device 502 decodes the received video stream and transmits it to the video display unit 428 of the display unit 425, so as to display the decoded video picture on the display screen of the screen projection device 502. At the same time, the text parsing unit 424 of the screen projection device 502 parses the received bullet comment data and transmits it to the text display unit 429 of the display unit 425, so as to superimpose the parsed bullet comment information on the video picture and display it on the display screen of the screen projection device 502.

[0222] It should be understood that although the above-mentioned embodiments are described by taking barrage screen projection, display after barrage screen projection and control after barrage screen projection as examples, the embodiments of the present application can also realize subtitle screen projection, and display and control after subtitle screen projection. It should be understood that the process of downloading, parsing, and displaying subtitles is similar to barrage, and the setting / parameter adjustment of subtitles is also similar to barrage. The screen projection process of subtitle data will not be repeated here. Therefore, the subtitle screen projection scheme will not be described in detail in this application.

[0223] Through the streaming data screen projection method provided by the present application, the smart device can, according to the user's screen projection needs, not only project the video to the screen projection device, but also project the text information such as barrage and / or subtitles related to the video, and can optionally set and control the display and update of the text data through the user interaction interface on the source device and the screen projection device. The screen projection display and update operations of these text data are conducive to enhancing the user's overall experience when watching the video, as well as the interactive experience when watching the video. Compared with previous screen projection solutions, the embodiments of the present invention provide a very convenient and fast solution for projecting barrages and subtitles that match the video, and also provide a flexible barrage sending solution, as well as a solution for flexibly adjusting the display parameters of barrages / subtitles, etc., thereby greatly improving the user's experience and interactive feeling when watching videos.

[0224] The present application provides a computer program product comprising instructions. When the computer program product is run on a terminal (such as the above-mentioned terminal device 501 or 502), the terminal executes the steps in a streaming data projection method provided in an embodiment of the present application.

[0225] The present application provides a computer-readable storage medium, comprising instructions. When the instructions are executed on a terminal, the terminal executes the steps in a streaming data screen projection method provided in an embodiment of the present application.

[0226] It is clear to the technicians in the field that the embodiments of the present application can be implemented in hardware, or in hardware and software. When implemented using hardware and software, the above functions can be stored in a computer-readable medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.

[0227] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.

Claims

1. A screen projection method for projecting a screen from a source device to a target device, wherein the source device has a first display screen and the target device has a second display screen, characterized in that: The method comprises: The source device receives and decodes the video data from the server, and displays the decoded video data through the first display screen; The source device receives and parses the bullet-screen information from the server, and displays the parsed bullet-screen information through the first display screen, wherein the bullet-screen information is associated with the video data; The source device detects a first operation of casting a screen to the target device, where the first operation is used to cast the video data together with the bullet screen information; In response to the first operation, the target device receives a download address of the video data and a download address of the bullet screen information; The target device receives the video data and the bullet screen information from the server, and displays the video data and the bullet screen information simultaneously through the second display screen; The source device detects a second operation of sending the first bullet screen; and In response to the second operation, the target device is used to add and display the first barrage in the barrage information, wherein the first barrage is associated with the video data.

2. The screen projection method according to claim 1, characterized in that: The video data is a video stream, and on the display screen, the barrage information and the first barrage are superimposed and displayed on the video stream, wherein the superimposed barrage information is temporally associated with the video stream, and the first barrage is temporally associated with the video stream.

3. The screen projection method according to claim 1 or 2, characterized in that: The target device downloads the first part of the video data through the download address of the video data, and displays the first part of the video data through the second display screen; Through the download address of the barrage information, the target device downloads the barrage information and superimposes the first part of the barrage information on the second display screen, wherein the superimposed first part of the barrage information is temporally associated with the first part of the video data.

4. A screen projection method, used for a source device having a display screen, characterized in that: The method comprises: Receive and decode video data from a server, and display the decoded video data on the display screen; Receiving and parsing bullet-screen information from the server, and displaying the parsed bullet-screen information on the display screen, wherein the bullet-screen information is associated with the video data; A first operation of casting a screen on a target device is detected, wherein the first operation is used to cast the video data together with the bullet screen information; In response to the first operation, the target device is used to receive a download address of the video data and a download address of the bullet screen information, so as to display the video data and the bullet screen information simultaneously; A second operation of sending the first bullet screen is detected; and In response to the second operation, the target device is used to add and display the first barrage in the barrage information, wherein the first barrage is associated with the video data.

5. The screen projection method according to claim 4, characterized in that: The video data is a video stream, and on the display screen, the barrage information and the first barrage are superimposed and displayed on the video stream, wherein the superimposed barrage information is temporally associated with the video stream, and the first barrage is temporally associated with the video stream.

6. The screen projection method according to claim 4, characterized in that: The method further comprises: The display parameters of the bullet-screen information are sent to the target device, wherein the display parameters include at least one of the font, font size, color, transparency, animation speed, and display area of ​​the bullet-screen information.

7. The screen projection method according to claim 4, characterized in that: The method further comprises: Detecting a third operation of terminating screen projection on the target device; and The display parameters of the bullet-screen information are received from the target device, wherein the display parameters include at least one of the font, font size, color, transparency, animation speed, and display area of ​​the bullet-screen information.

8. The screen projection method according to claim 4, characterized in that: The target device is used to download the first part of the video data through the download address of the video data, and display the first part of the video data through the second display screen of the target device; Through the download address of the barrage information, the target device is used to download the barrage information and superimpose the first part of the barrage information on the second display screen, wherein the superimposed first part of the barrage information is temporally associated with the first part of the video data.

9. A screen projection method for projecting a screen on a target device having a display screen, characterized in that: The method comprises: Receive the download address of the video data; Requesting the server to send the video data via the download address of the video data; receiving a download address of bullet screen information, wherein the bullet screen information is associated with the video data; Requesting the server to send the barrage information through the download address of the barrage information; Displaying the video data and the bullet screen information simultaneously through the display screen; A first added bullet screen is received, where the first bullet screen is sent from a source device, and the source device is used to project a screen to the target device; The first barrage is added and displayed in the barrage information on the display screen, wherein the first barrage is associated with the video data.

10. The screen projection method according to claim 9, characterized in that: The video data is a video stream, and on the display screen, the barrage information and the first barrage are superimposed and displayed on the video stream, wherein the superimposed barrage information is temporally associated with the displayed video stream, and the first barrage is temporally associated with the video stream.

11. The screen projection method according to claim 9, characterized in that: The method further comprises: The display parameters of the barrage information are received, and the barrage information is displayed on the display screen according to the display parameters, wherein the display parameters include at least one of the font, font size, color, transparency, animation speed, and display area of ​​the barrage information.

12. The screen projection method according to claim 9, characterized in that: The method further comprises: In response to a third operation of setting display parameters of the bullet screen information on the source device; and In response to the third operation, the barrage information is displayed on the display screen according to the set display parameters, wherein the display parameters include at least one of the font, font size, color, transparency, animation speed, and display area of ​​the barrage information.

13. The screen projection method according to claim 12, characterized in that: The method further comprises: Receiving a request from the source device to terminate screen projection; and The set display parameters are sent to the source device.

14. A terminal comprising a display screen, a memory, and a processor, wherein: The memory stores one or more programs, and is characterized in that when the processor executes the one or more programs, the terminal implements the method according to any one of claims 1 to 13.

15. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 13.