Multi-screen interaction method, device, equipment and storage medium

文档序号:1941868 发布日期:2021-12-07 浏览:14次 中文

阅读说明:本技术 多屏互动方法、装置、设备及存储介质 (Multi-screen interaction method, device, equipment and storage medium ) 是由 李仁生 于 2021-05-08 设计创作,主要内容包括:本公开实施例公开了一种多屏互动方法、装置、设备及存储介质。包括:获取与当前播放直播视频的第一终端处于相同局域网的第二终端;其中,所述直播视频包括至少一个子播放窗口;确定所述第二终端相对于所述第一终端的位置信息;基于所述位置信息确定目标终端;将目标子播放窗口拖拽至所述目标终端进行播放。本公开实施例提供的多屏互动方法,将直播视频中的目标子播放窗口拖拽至目标终端进行播放,以实现视频流的多屏互动,可以将直播视频包含的多个子播放窗口分别在不同的终端中播放,以提升用户的观看体验。(The embodiment of the disclosure discloses a multi-screen interaction method, a multi-screen interaction device, multi-screen interaction equipment and a storage medium. The method comprises the following steps: acquiring a second terminal which is in the same local area network as a first terminal currently playing the live video; wherein the live video comprises at least one sub-play window; determining location information of the second terminal relative to the first terminal; determining a target terminal based on the location information; and dragging the target sub-playing window to the target terminal for playing. According to the multi-screen interaction method provided by the embodiment of the disclosure, the target sub-playing window in the live video is dragged to the target terminal to be played so as to realize multi-screen interaction of video streams, and a plurality of sub-playing windows contained in the live video can be played in different terminals respectively so as to improve the watching experience of a user.)

1. A multi-screen interaction method is characterized by comprising the following steps:

acquiring a second terminal which is in the same local area network as a first terminal currently playing the live video; wherein the live video comprises at least one sub-play window;

determining location information of the second terminal relative to the first terminal;

determining a target terminal based on the location information;

and dragging the target sub-playing window to the target terminal for playing.

2. The method of claim 1, wherein obtaining a second terminal in the same local area network as a first terminal currently playing the live video comprises:

determining a local area network where a first terminal playing live video currently is located;

acquiring terminal equipment connected to the local area network;

and determining the terminal equipment with the video playing function as a second terminal.

3. The method of claim 1, wherein the location information comprises distance information; determining a target terminal based on the location information, comprising:

and determining a second terminal with the distance from the first terminal being less than a set threshold value as a target terminal.

4. The method of claim 1, wherein the location information further comprises direction information; dragging the target sub-playing window to the target terminal for playing, wherein the method comprises the following steps:

and generating a dragging guide icon in a display interface of the first terminal according to the direction information so as to guide a user to drag a target sub-playing window to the target terminal for playing.

5. The method of claim 4, wherein dragging a target sub-play window to the target terminal for playing comprises:

when it is detected that a user drags a target sub-playing window along the dragging guide icon on a display interface of the first terminal and drags the target sub-playing window exceeding a set proportion out of the display interface, a playing instruction is generated; wherein, the playing instruction carries an identifier of the playing content of the target sub-playing window;

and sending the playing instruction to a target terminal, so that the target terminal plays the content in the target sub-playing window according to the playing instruction.

6. The method according to claim 1, wherein after dragging a target sub-play window to the target terminal for playing, further comprising:

if the live video comprises a sub-playing window, closing the playing window in the first terminal;

and if the live video comprises more than two sub-playing windows and the target sub-playing window is one, playing the contents in the rest sub-playing windows.

7. A multi-screen interaction method is characterized by comprising the following steps:

the target terminal receives a playing instruction sent by the first terminal; the target terminal and the first terminal are in the same local area network, and the playing instruction carries an identifier of playing content of a target sub-playing window;

and acquiring the playing content of the target sub-playing window according to the playing instruction, and playing.

8. A multi-screen interaction device, comprising:

the second terminal acquisition module is used for acquiring a second terminal which is in the same local area network as the first terminal playing the live video currently; wherein the live video comprises at least one sub-play window;

a position information determining module, configured to determine position information of the second terminal relative to the first terminal;

the target terminal determining module is used for determining a target terminal based on the position information;

and the window dragging module is used for dragging the target sub-playing window to the target terminal for playing.

9. A multi-screen interaction device, comprising:

the playing instruction receiving module is arranged in the target terminal and used for receiving a playing instruction sent by the first terminal; the target terminal and the first terminal are in the same local area network, and the playing instruction carries an identifier of playing content of a target sub-playing window;

and the playing content acquisition module is used for acquiring the playing content of the target sub-playing window according to the playing instruction and playing the content.

10. An electronic device, characterized in that the electronic device comprises:

one or more processing devices;

storage means for storing one or more programs;

when executed by the one or more processing devices, cause the one or more processing devices to implement the multi-screen interaction method of any one of claims 1-7.

11. A computer-readable medium on which a computer program is stored, the program, when executed by a processing device, implementing a multi-screen interaction method as recited in any one of claims 1-7.

Technical Field

The embodiment of the disclosure relates to the technical field of multi-screen interaction, and in particular relates to a multi-screen interaction method, a multi-screen interaction device, multi-screen interaction equipment and a storage medium.

Background

With the continuous development and progress of internet technology, intelligent electronic products are more and more popular. Mobile internet is becoming mainstream, and the demand of customers is continuously diversified.

Currently, when a user uses a terminal device to perform a video call or watch a live video, the interface generally has a plurality of windows. In the prior art, a plurality of windows can only be displayed in the same terminal, which affects user experience.

Disclosure of Invention

The embodiment of the disclosure provides a multi-screen interaction method, a multi-screen interaction device and a storage medium, so as to realize multi-screen interaction of video streams and improve the watching experience of a user.

In a first aspect, an embodiment of the present disclosure provides a multi-screen interaction method, including:

acquiring a second terminal which is in the same local area network as a first terminal currently playing the live video; wherein the live video comprises at least one sub-play window;

determining location information of the second terminal relative to the first terminal;

determining a target terminal based on the location information;

and dragging the target sub-playing window to the target terminal for playing.

In a second aspect, an embodiment of the present disclosure further provides a multi-screen interaction method, including:

the second terminal receives a playing instruction sent by the first terminal; wherein, the playing instruction carries an identifier of the playing content of the target sub-playing window;

and acquiring the playing content of the target sub-playing window according to the playing instruction, and playing.

In a third aspect, an embodiment of the present disclosure further provides a multi-screen interaction device, including:

the target terminal acquisition module is used for acquiring a second terminal which is in the same local area network as a first terminal playing the live video at present; wherein the live video comprises at least one sub-play window;

a position information determining module, configured to determine position information of the second terminal relative to the first terminal;

the target terminal determining module is used for determining a target terminal based on the position information;

and the window dragging module is used for dragging the target sub-playing window to the target terminal for playing.

In a fourth aspect, an embodiment of the present disclosure discloses a multi-screen interaction device, including:

the playing instruction receiving module is arranged in the target terminal and used for receiving a playing instruction sent by the first terminal; the target terminal and the first terminal are in the same local area network, and the playing instruction carries an identifier of playing content of a target sub-playing window;

and the playing content acquisition module is used for acquiring the playing content of the target sub-playing window according to the playing instruction and playing the content.

In a fifth aspect, an embodiment of the present disclosure discloses an electronic device, including:

one or more processing devices;

storage means for storing one or more programs;

when the one or more programs are executed by the one or more processing devices, the one or more processing devices are enabled to implement the multi-screen interaction method according to the embodiment of the disclosure.

In a sixth aspect, the disclosed embodiment further discloses a computer readable medium, on which a computer program is stored, where the computer program, when executed by a processing device, implements the multi-screen interaction method according to the disclosed embodiment.

The embodiment of the disclosure discloses a multi-screen interaction method, a multi-screen interaction device, multi-screen interaction equipment and a storage medium. Acquiring a second terminal which is in the same local area network as a first terminal currently playing the live video; determining position information of a second terminal relative to a first terminal; determining a target terminal based on the location information; and dragging the target sub-playing window to a target terminal for playing. According to the multi-screen interaction method provided by the embodiment of the disclosure, the target sub-playing window in the live video is dragged to the target terminal to be played so as to realize multi-screen interaction of video streams, and a plurality of sub-playing windows contained in the live video can be played in different terminals respectively so as to improve the watching experience of a user.

Drawings

FIG. 1 is a flow chart of a multi-screen interaction method in an embodiment of the present disclosure;

fig. 2 is an exemplary diagram of dragging a target sub-play window to a target terminal in the embodiment of the present disclosure;

FIG. 3 is a flow chart of a multi-screen interaction method in an embodiment of the present disclosure;

FIG. 4 is a schematic structural diagram of a multi-screen interaction device according to an embodiment of the disclosure;

FIG. 5 is a schematic structural diagram of a multi-screen interaction device according to an embodiment of the disclosure;

fig. 6 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.

Detailed Description

Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.

It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.

The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.

It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.

It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.

The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.

Fig. 1 is a flowchart of a multi-screen interaction method according to an embodiment of the present disclosure, where the present embodiment is applicable to a multi-terminal video interaction situation, and the method may be executed by a multi-screen interaction device, where the device may be composed of hardware and/or software, and may be generally integrated in a device with a multi-screen interaction function, where the device may be an electronic device such as a server, a mobile terminal, or a server cluster. As shown in fig. 1, the method specifically includes the following steps:

and step 110, acquiring a second terminal which is in the same local area network as the first terminal playing the live video currently.

The live video comprises at least one sub-playing window. For example: the teaching live video usually comprises two sub-playing windows, wherein one of the two sub-playing windows plays the content of the blackboard writing, and the other one plays the image of a teacher. The local area network may be a wired local area network or a wireless local area network. In this embodiment, the first terminal logs in the live broadcast platform, enters the live broadcast room through the verification code, and pulls the live broadcast stream, and the live broadcast video is played at the first terminal, and the live broadcast video includes at least one sub-play window.

Specifically, the second terminal in the same local area network as the first terminal currently playing the live video is obtained in the following manner: determining a local area network where a first terminal playing live video currently is located; acquiring terminal equipment connected to a local area network; and determining the terminal equipment with the video playing function as a second terminal.

The terminal device with the video playing function can be understood as a device arranged on a display screen, such as a television play, a smart phone, a tablet or a smart desk lamp. If the terminal equipment is connected to the local area network, the terminal equipment is in a starting state and can work. In this embodiment, the first terminal determines the wireless local area network or the limited local area network through the currently connected network, then obtains the terminal device connected to the local area network, and finally selects the terminal device with the display screen as the second terminal.

Step 120, position information of the second terminal relative to the first terminal is determined.

The position information includes distance information and direction information, and the direction information can be understood as a deviation angle (e.g. 30 degrees north) of the second terminal relative to the first terminal. The first terminal and the second terminal can directly carry out data communication through a local area network or Bluetooth. In this embodiment, the manner of determining the position information of the second terminal relative to the first terminal may be to obtain a distance between the second terminal and the first terminal and a declination angle of the second terminal relative to the second terminal through a bluetooth positioning technology.

Step 130, determining the target terminal based on the position information.

Specifically, after the position information of the second terminal is obtained, the second terminal whose distance from the first terminal is smaller than the set threshold may be determined as the target terminal. Wherein, the set threshold value can be set to any value between 3-5 meters, for example: and if the distance is set to be 4 meters, determining a second terminal which is less than 4 meters away from the first terminal as a target terminal. This has the advantage of ensuring that the content played by the second terminal is within the current line of sight of the user.

And 140, dragging the target sub-playing window to a target terminal for playing.

If there is one target terminal, the user may select one sub-play window as the target sub-play window, and then drag the target sub-play window to the target terminal for playing. If the number of the target terminals is two or more, the user can select one target terminal, and then drag the target sub-playing window to the selected target terminal for playing. If the number of the target terminals is two or more, and the user selects two sub-playing windows as the target sub-playing windows, the user can select two of the target terminals, and drag the two target sub-playing windows to the selected two target terminals respectively for playing. In this embodiment, two or more target sub-playback windows may be dragged to one target terminal, or two or more target sub-playback windows may be dragged to different target terminals, respectively, and the number and manner of the dragged target sub-playback windows are not limited.

In this embodiment, the manner of dragging the target sub-play window to the target terminal for playing may be: and generating a dragging guide icon in a display interface of the first terminal according to the direction information so as to guide a user to drag the target sub-playing window to the target terminal for playing.

Wherein the drag guide icon may be in the form of an arrow, and the pointing direction of the arrow is determined by direction information of the second terminal with respect to the first terminal. Specifically, the display interface of the first terminal may be marked in a map marking manner of "north, up, down, south, left, west, right, and east", and then a drag guide icon corresponding to the direction information is generated. For example, fig. 2 is an exemplary diagram of dragging the target sub-play window to the target terminal in this embodiment, as shown in fig. 2, if the determined direction information of the target terminal relative to the first terminal is 20 degrees north-south, a 20-degree-north arrow is generated in the display interface of the first terminal to guide the user to drag the target sub-play window along the arrow, so as to drag the target sub-play window to the target terminal for playing.

Specifically, the method of dragging the target sub-play window to the target terminal for playing may be: when it is detected that a user drags a target sub-playing window along a dragging guide icon on a display interface of a first terminal and drags the target sub-playing window exceeding a set proportion out of the display interface, a playing instruction is generated; and sending the playing instruction to the target terminal, so that the target terminal plays the content in the target sub-playing window according to the playing instruction.

The playing instruction carries an identifier of the playing content of the target sub-playing window. The set proportion can be set to be any value between 50% and 70%, and the set proportion can be understood as the proportion of the target sub-playing window in the display interface of the first terminal. In this embodiment, if the user drags the target sub-play window along the drag guide icon on the display interface of the first terminal and stops dragging when the target sub-play window exceeding the set ratio is dragged out of the display interface, the target sub-play window still remains in the display interface of the first terminal for playing.

Optionally, the first terminal drags the target sub-play window to the target terminal, and forwards the live video stream to the target terminal, and the target terminal decodes only the content played by the target sub-play window in the live video stream according to the identifier of the content played by the target sub-play window, and plays the decoded video.

Optionally, the playing instruction also carries a stream address of the live video, after receiving the playing instruction, the target terminal pulls the live video stream according to the stream address of the live video, then decodes only the content played by the target sub-playing window in the live video stream according to the identifier of the content played by the target sub-playing window, and plays the decoded video.

Optionally, after the target sub-play window is dragged to the target terminal for playing, the method further includes the following steps: if the live video comprises a sub-playing window, closing the playing window in the first terminal; and if the live video comprises more than two sub-playing windows and the target sub-playing window is one, playing the contents in the rest sub-playing windows.

When the live video comprises one sub-playing window, the user is indicated to drag the current live video window to the target terminal for playing, namely the played terminal equipment is switched, and at the moment, the playing window of the first terminal is closed, so that system resources of the first terminal can be saved. When the live video comprises more than two sub-playing windows and the target sub-playing window is one, the sub-windows contained in the live video can be respectively played in the first terminal and the target terminal, the first terminal plays the contents in the rest sub-playing windows (namely the sub-playing windows which are not dragged away), and the target terminal plays the contents of the dragged sub-playing windows, so that the situation that the contents of a plurality of windows are blocked when the plurality of windows are played at the same terminal can be prevented, and the watching experience of a user is improved.

According to the technical scheme of the embodiment of the disclosure, a second terminal in the same local area network as a first terminal playing live video currently is obtained; determining position information of a second terminal relative to a first terminal; determining a target terminal based on the location information; and dragging the target sub-playing window to a target terminal for playing. According to the multi-screen interaction method provided by the embodiment of the disclosure, the target sub-playing window in the live video is dragged to the target terminal to be played so as to realize multi-screen interaction of video streams, and a plurality of sub-playing windows contained in the live video can be played in different terminals respectively so as to improve the watching experience of a user.

Fig. 3 is a flowchart of a multi-screen interaction method according to an embodiment of the disclosure, and as shown in fig. 3, the method includes:

step 210, the target terminal receives a play instruction sent by the first terminal.

The playing instruction carries an identifier of the playing content of the target sub-playing window. The target terminal and the first terminal are in the same local area network, the target terminal is the terminal which is in the same local area network with the first terminal and is less than a set threshold value away from the first terminal, and the target terminal is configured with a display screen.

In this embodiment, when it is detected that a user drags a target sub-play window along a drag guide icon on a display interface of a first terminal and drags the target sub-play window exceeding a set ratio out of the display interface, a play instruction is generated, and the first terminal sends the play instruction to the target terminal.

And step 220, acquiring the playing content of the target sub-playing window according to the playing instruction, and playing.

Optionally, the process of obtaining the playing content of the target sub-playing window according to the playing instruction may be: the first terminal drags the target sub-playing window to the target terminal and forwards the live video stream to the target terminal, and the target terminal only decodes the content played by the target sub-playing window in the live video stream according to the identifier of the content played by the target sub-playing window and plays the decoded video.

Optionally, the play instruction further carries a stream address of the live video. The process of obtaining the playing content of the target sub-playing window according to the playing instruction may be: and after receiving the playing instruction, the target terminal pulls the live video stream according to the stream address of the live video, then only decodes the content played by the target sub-playing window in the live video stream according to the identifier of the content played by the target sub-playing window, and plays the decoded video.

According to the technical scheme of the embodiment of the disclosure, a target terminal receives a playing instruction sent by a first terminal; and acquiring the playing content of the target sub-playing window according to the playing instruction, and playing. According to the multi-screen interaction method provided by the embodiment of the disclosure, the target sub-playing window in the live video is dragged to the target terminal to be played so as to realize multi-screen interaction of video streams, and a plurality of sub-playing windows contained in the live video can be played in different terminals respectively so as to improve the watching experience of a user.

Fig. 4 is a schematic structural diagram of a multi-screen interaction device according to an embodiment of the disclosure. As shown in fig. 4, the apparatus includes:

a second terminal obtaining module 410, configured to obtain a second terminal that is in the same local area network as the first terminal currently playing the live video; the live video comprises at least one sub-playing window;

a location information determining module 420 for determining location information of the second terminal relative to the first terminal;

a target terminal determining module 430, configured to determine a target terminal based on the location information;

and the window dragging module 440 is configured to drag the target sub-play window to the target terminal for playing.

Optionally, the second terminal obtaining module 410 is further configured to:

determining a local area network where a first terminal playing live video currently is located;

acquiring terminal equipment connected to a local area network;

and determining the terminal equipment with the video playing function as a second terminal.

Optionally, the location information includes distance information; the target terminal determining module 430 is further configured to:

and determining a second terminal with the distance from the first terminal being less than a set threshold value as a target terminal.

Optionally, the location information further includes direction information; the window dragging module 440 is further configured to:

and generating a dragging guide icon in a display interface of the first terminal according to the direction information so as to guide a user to drag the target sub-playing window to the target terminal for playing.

Optionally, the window dragging module 440 is further configured to:

when it is detected that a user drags a target sub-playing window along a dragging guide icon on a display interface of a first terminal and drags the target sub-playing window exceeding a set proportion out of the display interface, a playing instruction is generated; wherein, the playing instruction carries the identifier of the playing content of the target sub-playing window;

and sending the playing instruction to the target terminal, so that the target terminal plays the content in the target sub-playing window according to the playing instruction.

Optionally, the method further includes: a play module to:

if the live video comprises a sub-playing window, closing the playing window in the first terminal;

and if the live video comprises two or more than two sub-playing windows and the target sub-playing window is one, playing the contents in the rest sub-playing windows.

Fig. 5 is a schematic structural diagram of a multi-screen interaction device according to an embodiment of the disclosure, and as shown in fig. 5, the device includes:

a play instruction receiving module 510, disposed in the target terminal, for receiving a play instruction sent by the first terminal; the target terminal and the first terminal are in the same local area network, and the playing instruction carries an identifier of the playing content of the target sub-playing window;

and a playing content obtaining module 520, configured to obtain the playing content of the target sub-playing window according to the playing instruction, and play the playing content.

The device can execute the methods provided by all the embodiments of the disclosure, and has corresponding functional modules and beneficial effects for executing the methods. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the disclosure.

Referring now to FIG. 6, a block diagram of an electronic device 300 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like, or various forms of servers such as a stand-alone server or a server cluster. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.

As shown in fig. 6, electronic device 300 may include a processing means (e.g., central processing unit, graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a read-only memory device (ROM)302 or a program loaded from a storage device 305 into a random access memory device (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.

Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 6 illustrates an electronic device 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.

In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program containing program code for performing a method for recommending words. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 305, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.

It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.

In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.

The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.

The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring a second terminal which is in the same local area network as a first terminal currently playing the live video; wherein the live video comprises at least one sub-play window; determining location information of the second terminal relative to the first terminal; determining a target terminal based on the location information; and dragging the target sub-playing window to the target terminal for playing. Or the target terminal receives a playing instruction sent by the first terminal; the target terminal and the first terminal are in the same local area network, and the playing instruction carries an identifier of playing content of a target sub-playing window; and acquiring the playing content of the target sub-playing window according to the playing instruction, and playing.

Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.

The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

According to one or more embodiments of the disclosed embodiments, the disclosed embodiments disclose a multi-screen interaction method, comprising:

acquiring a second terminal which is in the same local area network as a first terminal currently playing the live video; wherein the live video comprises at least one sub-play window;

determining location information of the second terminal relative to the first terminal;

determining a target terminal based on the location information;

and dragging the target sub-playing window to the target terminal for playing.

Further, acquiring a second terminal in the same local area network as the first terminal currently playing the live video, including:

determining a local area network where a first terminal playing live video currently is located;

acquiring terminal equipment connected to the local area network;

and determining the terminal equipment with the video playing function as a second terminal.

Further, the location information includes distance information; determining a target terminal based on the location information, comprising:

and determining a second terminal with the distance from the first terminal being less than a set threshold value as a target terminal.

Further, the position information further includes direction information; dragging the target sub-playing window to the target terminal for playing, wherein the method comprises the following steps:

and generating a dragging guide icon in a display interface of the first terminal according to the direction information so as to guide a user to drag a target sub-playing window to the target terminal for playing.

Further, dragging a target sub-play window to the target terminal for playing, including:

when it is detected that a user drags a target sub-playing window along the dragging guide icon on a display interface of the first terminal and drags the target sub-playing window exceeding a set proportion out of the display interface, a playing instruction is generated; wherein, the playing instruction carries an identifier of the playing content of the target sub-playing window;

and sending the playing instruction to a target terminal, so that the target terminal plays the content in the target sub-playing window according to the playing instruction.

Further, after dragging the target sub-play window to the target terminal for playing, the method further includes:

if the live video comprises a sub-playing window, closing the playing window in the first terminal;

and if the live video comprises more than two sub-playing windows and the target sub-playing window is one, playing the contents in the rest sub-playing windows.

The embodiment of the present disclosure further provides a multi-screen interaction method, including:

the target terminal receives a playing instruction sent by the first terminal; the target terminal and the first terminal are in the same local area network, and the playing instruction carries an identifier of playing content of a target sub-playing window;

and acquiring the playing content of the target sub-playing window according to the playing instruction, and playing.

It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present disclosure and the technical principles employed. Those skilled in the art will appreciate that the present disclosure is not limited to the particular embodiments described herein, and that various obvious changes, adaptations, and substitutions are possible, without departing from the scope of the present disclosure. Therefore, although the present disclosure has been described in greater detail with reference to the above embodiments, the present disclosure is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present disclosure, the scope of which is determined by the scope of the appended claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:投屏方法、装置、电子设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类