CN105323628B - Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device - Google Patents

Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device Download PDF

Info

Publication number
CN105323628B
CN105323628B CN201410371286.4A CN201410371286A CN105323628B CN 105323628 B CN105323628 B CN 105323628B CN 201410371286 A CN201410371286 A CN 201410371286A CN 105323628 B CN105323628 B CN 105323628B
Authority
CN
China
Prior art keywords
playing
multimedia file
browser
multimedia
dlna
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410371286.4A
Other languages
Chinese (zh)
Other versions
CN105323628A (en
Inventor
黄江泉
薄川川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410371286.4A priority Critical patent/CN105323628B/en
Publication of CN105323628A publication Critical patent/CN105323628A/en
Application granted granted Critical
Publication of CN105323628B publication Critical patent/CN105323628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a DLNA (digital Living network alliance) -based cross-screen playing method and system, a browser end device and a playing device. In the technical scheme of the invention, a local area connection is established with the playing device through a browser end device, the browser end device sends multimedia file information comprising a storage address of a multimedia file being played on a browser to the playing device, and the playing device plays the multimedia file according to the storage address after receiving the multimedia file information. The multimedia files which are being played on the browser are projected to the playing device to be played, cross-screen playing of rich multimedia resources is achieved, and additional configuration of a user is not needed. The technical problems that the existing cross-screen transmission configuration learning cost is high, and the aggregation capability of multimedia resources during content sharing is poor are solved; the technical effect of enabling the user to conveniently enjoy richer multimedia resources with extremely low learning cost and better playing experience is achieved.

Description

Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device
Technical Field
The invention relates to the technical field of multimedia playing, in particular to a DLNA (digital Living network alliance) -based cross-screen playing method and system, a browser end device and a playing device.
Background
Currently, when multimedia files such as videos are watched on a browser, if the multimedia files need to be watched continuously on other devices (such as a mobile phone, a PC and a Pad), a cross-screen transmission function of a specific browser can be used. However, existing browser cross-screen transmission has two limitations: the method comprises the steps that firstly, browsers with cross-screen transmission functions are required to be installed on all devices needing cross-screen transmission, and secondly, the devices needing cross-screen transmission are bound before the cross-screen transmission is carried out. The configuration is complicated, and the user operation is inconvenient.
Although the Digital Living Network Alliance (DLNA) protocol of the Digital home devices proposed at present provides a solution for Digital content sharing among electronic devices that do not need additional configuration, content sharing among devices based on the DLNA protocol at present has poor aggregation capability on multimedia resources, and the shared multimedia resources are limited, and cannot provide wider and richer multimedia resources for content sharing.
Disclosure of Invention
Aiming at the defects in the prior art, the technical problems to be solved by the invention are that the learning cost of the cross-screen transmission configuration is high, and the aggregation capability of multimedia resources during content sharing is poor.
To solve the foregoing technical problem, in a first aspect, an embodiment of the present invention provides a DLNA protocol-based cross-screen playing method, where the method includes:
establishing local area network connection with a playing device with DLNA function based on DLNA protocol;
sending multimedia file information including a storage address of a multimedia file to the playing device so that the playing device plays the multimedia file according to the storage address;
the multimedia file is a multimedia file which is being played on a browser.
In a second aspect, an embodiment of the present invention also provides a DLNA protocol-based cross-screen playing method, where the method includes:
establishing local area network connection with a browser-side device with DLNA function based on DLNA protocol;
receiving multimedia file information sent by the browser-side device, wherein the multimedia file information is information of a multimedia file being played on a browser of the browser-side device, and the multimedia file information comprises a storage address of the multimedia file;
and playing the multimedia file according to the storage address.
In a third aspect, an embodiment of the present invention also provides a browser-end apparatus, where the browser-end apparatus includes:
the connection unit is used for establishing local area network connection with a playing device with a DLNA function based on a DLNA protocol;
a sending unit, configured to send multimedia file information including a storage address of a multimedia file to the playing apparatus, so that the playing apparatus plays the multimedia file according to the storage address;
the multimedia file is a multimedia file which is being played on a browser.
In a fourth aspect, an embodiment of the present invention also provides a playing apparatus, where the playing apparatus includes:
the connection unit is used for establishing local area network connection with a browser-side device with a DLNA function based on a DLNA protocol;
the multimedia file information comprises a storage address of the multimedia file, and the multimedia file information is information of the multimedia file which is being played on a browser of the browser end device;
and the playing unit is used for playing the multimedia file according to the storage address.
In a fifth aspect, an embodiment of the present invention further provides a DLNA protocol-based cross-screen playing system, where the system includes: the system comprises a browser-side device and a playing device;
a local area connection is established between the browser-side device and the playing device;
the browser-side device is used for sending multimedia file information comprising a storage address of a multimedia file to the playing device;
the playing device is used for receiving the multimedia file information sent by the browser end device and playing the multimedia file according to the storage address;
the multimedia file information is information of a multimedia file being played on a browser of the browser-side device.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
based on the DLNA protocol, the multimedia file information including the storage address of the multimedia file being played on the browser is sent to the playing device, and the multimedia file being played on the browser is projected to the playing device to be played, so that cross-screen playing of rich multimedia resources is realized, and additional configuration of a user is not needed.
The invention solves the technical problems of high learning cost of cross-screen transmission configuration and poor multimedia resource aggregation capability during content sharing; the technical effect of enabling the user to conveniently enjoy richer multimedia resources with extremely low learning cost and better playing experience is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present invention and the drawings without creative efforts.
Fig. 1 is a flowchart of a first embodiment of a cross-screen playing method based on a DLNA protocol according to an embodiment of the present invention;
fig. 2 is a diagram of the searching and finding effects of the playing device in the preferred embodiment of the present invention;
fig. 3 is a flowchart of a second embodiment of a cross-screen playing method based on a DLNA protocol according to an embodiment of the present invention;
fig. 4 is a flowchart of a first embodiment of another DLNA protocol-based cross-screen playing method according to an embodiment of the present invention;
fig. 5 is a flowchart of another cross-screen playing method based on the DLNA protocol according to a second embodiment of the present invention;
fig. 6 is a block diagram illustrating a first example of a browser-side apparatus according to an embodiment of the present invention;
fig. 7 is a block diagram illustrating a second embodiment of a browser-side apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram illustrating a first embodiment of a playback apparatus according to an embodiment of the present invention;
fig. 9 is a block diagram illustrating a second embodiment of a playback apparatus according to an embodiment of the present invention;
fig. 10 is a block diagram of a cross-screen playing system based on a DLNA protocol according to an embodiment of the present invention;
fig. 11 is a schematic diagram of online video projection of a system based on cross-screen playing of a DLNA protocol according to an embodiment of the present invention;
fig. 12 is a schematic diagram of system local video projection based on DLNA protocol cross-screen playing according to an embodiment of the present invention;
fig. 13 is a schematic diagram of system PC/route/NAS projection based on DLNA protocol cross-screen playing according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the present invention clearer, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
fig. 1 is a flowchart of a cross-screen playing method based on a DLNA protocol according to a first embodiment of the present invention. The DLNA protocol-based cross-screen playing method of the embodiment is mainly applied to various terminals which support a DLNA protocol and can run a browser, including a Personal Computer (PC), a smart phone, a tablet computer, a Mobile Internet Device (MID), and the like.
The cross-screen playing method based on the DLNA protocol comprises the following steps:
and S101, establishing local area network connection with a playing device with a DLNA function based on a DLNA protocol.
The playing Device comprises at least one terminal supporting a DLNA protocol, such as a smart television, a box, a smart projector, a smart sound box, a PC, a tablet computer, a Mobile Internet Device (MID), a smart phone and the like; preferably, in order to achieve a better experience of the multimedia content, terminals related to the large-screen device, such as a smart television, a box, and a smart projector, which are presented by using a large screen, may be selected as the playing device as needed, and similarly, in order to better present the audio effect, a playing device, such as a smart sound box, may be selected.
The DLNA protocol uses the Universal Plug and Play (UPnP) protocol for device discovery, description, and control. The UPnP protocol is used for interconnection among devices in the home network, has good universality, does not need a special device driving layer, and can be realized on any operating system; the UPnP protocol allows a device to broadcast its own services when the device joins the network, so that the UPnP discovery protocol allows a control point to search for devices available on the network after the control point joins the network, and the architecture of the UPnP protocol is based on IP technology. The Simple Service Discovery Protocol (SSDP) Protocol in the DLNA Protocol stack defines how a UPnP control point discovers UPnP services on a network and how a UPnP device issues services that the UPnP device can provide to the network, so that each device can broadcast its own online information and description information to the network through SSDP messages, thereby implementing automatic Discovery of devices with DLNA functions in a home network. In addition, Simple Object Access Protocol (SOAP) in the DLNA Protocol stack defines the use of extensible markup language (XML) and HTTP to perform remote control and invocation, each UPnP control request and response is a SOAP message, and the control of the control point on other devices in the home network can be realized through the SOAP message. Therefore, the device based on the DLNA protocol can provide functions of automatic discovery, automatic declaration, direct information exchange, interoperation and the like among networking devices on the premise of zero configuration, and realizes plug and play of the device.
Therefore, based on the DLNA protocol, if a user wants to project a multimedia file (e.g., video, audio, and photo) being played on a browser to other playback devices across screens for playback, the DLNA function of the browser and other playback devices need to be turned on in advance, for example, the wireless network type of the current computer is set to "home network", the DLNA function can be turned on by several simple operations such as "selecting a home group and sharing options", and whether "allowing remote control my player" is set in the playback software on the playback device to select whether the playback device needs remote control of the browser. Specifically, the DLNA function can be started and the options can be configured according to different configurations of each device, which is not an improvement point of the embodiments of the present invention and is not described herein again.
When the playing device joins the network, the SSDP message is broadcasted in the network, and the browser calls the interface application to issue a search instruction in the multicast address, so that the playing device on the network can be searched. The browser can automatically monitor and find the playing device through the background in real time according to the preset setting, when the browser is added to a home network and plays a multimedia file on the home network, the browser automatically searches and finds the playing device and inquires whether a user plays the multimedia file across screens; the search for the playing device with the DLNA function in the network can also be started through a 'projection' option set on the browser, and the playing device can be found by monitoring the SSDP message broadcast by the playing device. If a plurality of playing devices with DLNA function exist in the network, after searching and finding, a name list of the found playing devices is presented to the user, and after the name list is selected by the user, the device finding process is completed through an SOAP protocol, and local area network connection with the playing devices with DLNA function is established. The local area network connection includes a wired connection and a wireless connection.
Step S102, multimedia file information including a storage address of a multimedia file is sent to the playing device, so that the playing device plays the multimedia file according to the storage address.
Specifically, after the lan connection is established, the browser may actively push the multimedia file information of the multimedia file being played on the browser to the playing device according to the setting, or may send the multimedia file information of the multimedia file being played on the browser to the playing device according to the active request of the playing device. The multimedia file information includes a storage address of the multimedia file, and the playing device can acquire the multimedia content of a designated Uniform Resource Identifier (URI) through the storage address, thereby realizing cross-screen playing of the multimedia file.
Preferably, if the cross-screen seamless switching is to be implemented, the multimedia file information further includes current playing progress information of the multimedia file, so that the playing device can start playing from the current playing position according to the playing progress information. If the multimedia file information does not include the current playing progress information, the playing device defaults to start playing from the initial position of the multimedia file. According to the preset, the current playing progress information can be defaulted to be directly carried in the multimedia file information together with the storage address of the multimedia file for sending; the browser can also inquire whether the user continues playing from the current playing progress or not, and the user carries the multimedia file information together with the storage address of the multimedia file to send the multimedia file information under the condition that the user selects to continue playing from the current playing progress.
In this embodiment, the multimedia file includes a picture file and an audio/video file. The transmission mode for the playing device to acquire the multimedia file comprises the following steps: streaming, namely, rendering and receiving media in real time aiming at streaming media, wherein the media have time sequence and comprise time sequence information; interactive transmission, which does not include time-sequential media, such as picture transmission; background transfer, non-real time media transfer, such as downloading.
According to the DLNA protocol cross-screen playing method, when the multimedia content played on the browser is played in a cross-screen mode, the browser with the cross-screen transmission function does not need to be installed on other playing devices, complex device binding is not needed, rich multimedia resource content played on the browser can be conveniently and quickly played on other playing devices, configuration is not needed additionally in the whole process, and the method is plug-and-play.
Fig. 2 is a diagram showing the searching and finding effects of the playing devices in the preferred embodiment of the present invention, as described above, there are multiple playing devices with DLNA function in the network, and after the browser supporting DLNA protocol searches for and finds the playing devices, a list of names of the found playing devices (e.g., tv box, user PC) is presented to the user, so that the user can select to establish connection and perform cross-screen playing of multimedia files such as video.
Example two:
fig. 3 is a flowchart of a method for cross-screen playing based on DLNA protocol according to a second embodiment of the present invention, and the main difference between the present embodiment and the first embodiment is that the obtaining of the storage address of the multimedia file and the control of the playing device are further described.
A DLNA protocol-based cross-screen playing method comprises the following steps:
step S301, establishing local area network connection with the playing device with the DLNA function based on the DLNA protocol.
Step S302, judging whether the multimedia file played on the browser is stored locally. If yes, go to step S303; otherwise, step S304 is executed.
Specifically, the multimedia file being played on the browser may be a multimedia file obtained by accessing a remote device through the browser, such as a multimedia file on a video website server (e.g., Tencent video website), a remote PC, a routing device, and a network attached storage device; it is also possible that the multimedia file is stored locally by the browser-side device. Therefore, before the multi-media file is played across screens, the position of the multi-media file resource needs to be judged to position the multi-media file resource.
Step S303, converting the absolute path of the multimedia file into a URL (Uniform Resource Locator), and sending the multimedia file information including the URL to the playing apparatus.
The DLNA networking device interaction guidelines define DLNA device roles including: for a Digital Media Server (DMS for short), a Digital Media Player (DMP), a Digital Media Controller (DMC for short), and a Digital Media renderer (DMR for short) of a home network device, such devices have a relatively large size and relatively comprehensive functions; mobile DMS (M-DMS), mobile DMP (M-DMP), mobile DMC (M-DMC), mobile DMR (M-DMR) for a mobile handset. The present embodiment mainly relates to three device types: DMS/M-DMS, is used for providing the function that the medium is obtained, recorded, stored, and exported; the DMP/M-DMP is used for searching and acquiring the content sent by the DMS/M-DMS, and integrating the functions of the DMR/M-DMR to provide media playing and rendering functions; and the DMC/M-DMC is used for searching the content provided by the DMS/M-DMS, matching the content with the rendering function of the DMR/M-DMR and establishing the connection from the DMS/M-DMS to the DMP/M-DMP.
In this embodiment, if the multimedia file is stored locally at the browser end, the multimedia file data is provided by the browser end, so the browser end needs to set up the server locally, which is equivalent to that the browser end is both the DMC/M-DMC and the DMS/M-DMS, and the playback device is equivalent to the DMP/M-DMP. Therefore, the browser converts the absolute PATH of the multimedia file (e.g., "D: \ photo 1. jpg") into a URL address (e.g., URL ═ http:// [ local address ]: DMS service port ]/filename ═ PATH). And sending the multimedia file information including the converted URL address to a playing device so that the playing device can acquire the multimedia file from the browser end according to the address and play the multimedia file.
Step S304, acquiring a URL address of the multimedia file being played on the browser, and sending multimedia file information including the URL address to the playing apparatus.
If the multimedia file is not stored locally in the browser end and is provided by the remote device, the multimedia file is an online multimedia resource, so the browser end is equivalent to DMC/M-DMC, the remote device is equivalent to DMS/M-DMS, and the playing device is equivalent to DMP/M-DMP. Therefore, the URL address of the multimedia file being played on the browser can be directly obtained, for example, if the browser accesses a certain video website server to play a certain multimedia file, the absolute address link of the multimedia file resource in the web page can be directly extracted. And sending the multimedia file information including the acquired URL address to a playing device so that the playing device can acquire the multimedia file from a remote device according to the address and play the multimedia file.
In a specific implementation process, if the multimedia file provided by the remote device being played on the browser is a multimedia file with access right limitation (for example, a user accesses a private photo encrypted in a QQ space through the browser), at this time, if the cross-screen playing is required, the multimedia file with access right limitation needs to be downloaded to the local through the browser, and then the cross-screen playing is realized through the method of step 303.
And step S305, responding to the master control operation of the user, generating a corresponding control instruction and sending the control instruction to the playing device.
In this embodiment, preferably, the playing device allows remote control, the browser end provides a playing control interface for the user, responds to a main control operation of the user, generates a corresponding control instruction, and sends the control instruction to the playing device, so as to control the playing of the multimedia file by the playing device.
Preferably, the multimedia file information may further include current playing progress information of the multimedia file, so that the playing device may start playing from the current playing position according to the playing progress information, thereby implementing seamless switching.
According to the DLNA protocol cross-screen playing method, when the multimedia content played on the browser is played in a cross-screen mode, the browser with the cross-screen transmission function does not need to be installed on other playing devices, complex device binding is not needed, online multimedia projection and local multimedia projection on other playing devices can be conveniently and quickly achieved through rich multimedia resource content played on the browser, the playing of the playing devices can be controlled remotely, configuration is not needed additionally in the whole process, and the method is plug-and-play.
Example three:
fig. 4 is a flowchart of another DLNA protocol-based cross-screen playing method according to an embodiment of the present invention, where the DLNA protocol-based cross-screen playing method of the embodiment is mainly applied to at least one of various playing devices supporting a DLNA protocol, including a smart television, a box, a smart projector, a smart speaker, a PC, a tablet computer, a Mobile Internet Device (MID), a smart phone, and the like. Preferably, in order to achieve better experience of the visual effect, terminals related to the large-screen device, such as a smart television, a box, and a smart projector, which are presented by using a large screen, can be selected as the playing device as needed, and similarly, in order to achieve better experience of the auditory effect, a playing device, such as a smart sound box, can be selected.
The cross-screen playing method based on the DLNA protocol comprises the following steps:
step S401, establishing a local area network connection with the browser-side device with the DLNA function based on the DLNA protocol.
The browser-side Device includes a Personal Computer (PC), a smart phone, a tablet computer, a Mobile Internet Device (MID) and the like supporting the DLNA protocol.
When the playing device joins the network, the SSDP message describing the device information and the service information of the playing device is broadcasted in the network at regular time, and the device is discovered by the browser through monitoring. And completing the discovery process of the device through a SOAP protocol, and establishing the local area network connection with the browser end with the DLNA function. The local area network connection includes a wired connection and a wireless connection.
And step S402, receiving the multimedia file information sent by the browser-side device. The multimedia file information is information of a multimedia file which is played by the browser end device through a browser with a DLNA function, and the multimedia file information comprises a storage address of the multimedia file.
Specifically, after the lan connection is established, the playing device may actively request the multimedia file information of the multimedia file being played on the browser from the browser end, or actively push the multimedia file information of the multimedia file being played on the playing device through the browser according to the setting. The multimedia file information includes a storage address of the multimedia file.
And S403, playing the multimedia file according to the storage address.
According to the storage address of the multimedia file being played on the browser carried by the multimedia file information, the playing device can acquire the multimedia content of the designated URI through the storage address, and the multimedia file is played through rendering processing.
In this embodiment, the multimedia file includes a picture file and an audio/video file. The transmission mode for the playing device to acquire the multimedia file comprises the following steps: streaming, namely, rendering and receiving media in real time aiming at streaming media, wherein the media have time sequence and comprise time sequence information; interactive transmission, which does not include time-sequential media, such as picture transmission; background transfer, non-real time media transfer, such as downloading.
According to the DLNA protocol cross-screen playing method, when the multimedia content played on the browser is played in a cross-screen mode, the browser with the cross-screen transmission function does not need to be installed on the playing device, complex device binding is not needed, the rich multimedia resource content played on the browser can be conveniently and quickly played by the playing device, configuration is not needed additionally in the whole process, and the method is plug-and-play.
Example four:
fig. 5 is a flowchart of another cross-screen playing method based on the DLNA protocol according to an embodiment of the present invention, and the main difference between the present embodiment and the third embodiment is that the playing of a multimedia file is further described.
A DLNA protocol-based cross-screen playing method comprises the following steps:
step S501, establishing local area network connection with a browser-side device with DLNA function based on DLNA protocol.
The DLNA-capable device has a function of automatically discovering other DLNA devices in the home network.
And step S502, receiving the multimedia file information sent by the browser end device. The multimedia file information is information of a multimedia file which is played by the browser end device through a browser with a DLNA function, and the multimedia file information comprises a storage address of the multimedia file.
If the multimedia file is locally stored in the browser-side device, the storage address comprises: a URL address converted from an absolute path of the multimedia file; if the multimedia file is not locally stored in the browser-side device, the storage address comprises: and obtaining the URL address of the multimedia file being played from the browser. The specific URL address acquisition and conversion are the same as those in the embodiments, and are not described herein again.
Step S503, determining whether the received multimedia file information includes the current playing progress information of the multimedia file. If yes, go to step S504; otherwise, step S505 is executed.
Step S504, the multimedia file is obtained according to the storage address, and playing is started from the current playing position according to the current playing progress information of the multimedia file.
If a seamless switching from a video being played on a browser (in this embodiment, the browser is a browser with a DLNA function) to a video being played on a playing device is to be realized, the multimedia file information needs to carry current playing progress information of the multimedia file, and the playing device determines a current playing position of the multimedia file, that is, a current playing time point, according to the current playing progress information, and starts playing from the current playing position. According to the preset, the current playing progress information can be defaulted to be directly carried in the multimedia file information together with the storage address of the multimedia file for sending; the browser can also inquire whether the user continues playing from the current playing progress or not, and the user carries the multimedia file information together with the storage address of the multimedia file to send the multimedia file information under the condition that the user selects to continue playing from the current playing progress.
And step S505, acquiring the multimedia file according to the storage address, and starting playing from the initial position of the multimedia file.
Preferably, if the playing device allows remote control, in the playing process, receiving a control instruction of the user sent by the browser-side device, and controlling the playing of the multimedia file according to the control instruction; and if the playing device does not allow remote control, the player of the playing device provides a corresponding control interface, responds to the main control operation of the user, generates a corresponding control instruction and controls the playing of the multimedia file.
For the condition that the multimedia file being played on the browser is not the multimedia file stored in the local of the browser end, after the playing device acquires the storage address of the multimedia file, the multimedia file can be acquired through the storage address to be played, at the moment, the playing device can realize the control of being separated from the browser end, and even if the browser end is closed, the cross-screen playing of the playing device is not influenced.
According to the DLNA protocol cross-screen playing method, when the multimedia content played on the browser is played in a cross-screen mode, the browser with the cross-screen transmission function does not need to be installed on the playing device, complex device binding is not needed, online multimedia projection and local multimedia projection of rich multimedia resource content played on the browser can be conveniently and quickly achieved on the playing device, playing of the playing device can be controlled remotely, seamless switching can be achieved, configuration is not needed additionally in the whole process, and the method is plug-and-play.
The following is an embodiment of a browser-side apparatus according to an embodiment of the present invention. The embodiment of the browser-side device and the first and second embodiments of the DLNA protocol-based cross-screen playing method belong to the same concept, and details which are not described in detail in the embodiment of the browser-side device may refer to the above-mentioned embodiment of the DLNA protocol-based cross-screen playing method.
Example five:
fig. 6 is a block diagram illustrating a first example of a browser-side apparatus according to an embodiment of the present invention. The browser-side device comprises:
a connection unit 601, configured to establish a local area network connection with a playback device having a DLNA function based on a DLNA protocol.
A sending unit 602, connected to the connecting unit 601, configured to send multimedia file information including a storage address of a multimedia file to the playing apparatus, so that the playing apparatus plays the multimedia file according to the storage address.
The multimedia file is a multimedia file which is being played on a browser.
The browser in this embodiment provides corresponding function keys, such as "project" or "play across screens" similar keys. And starting cross-screen playing operation by clicking the key by the user. Or according to the preset of the user in the browser, for example, all video playing automatically starts cross-screen playing and the like. When a playback apparatus joins the network, the SSDP message starts to be broadcast in the network, and the connection unit 601 may listen to and discover the playback apparatus by calling the user interface application. After the lan connection is established, the sending unit 602 may actively push the multimedia file information of the multimedia file being played on the browser to the playing device according to the setting, or may send the multimedia file information of the multimedia file being played on the browser to the playing device according to the active request of the playing device. The multimedia file information includes a storage address of the multimedia file, and the playing device can acquire the multimedia content of a designated Uniform Resource Identifier (URI) through the storage address, thereby realizing cross-screen playing of the multimedia file. If the cross-screen seamless switching is to be realized, the multimedia file information also comprises the current playing progress information of the multimedia file, so that the playing device can start playing from the current playing position according to the playing progress information.
According to the browser-side device provided by the embodiment of the invention, when the multimedia content played on the browser is played in a cross-screen mode, the browser with a cross-screen transmission function is not required to be installed on other playing devices, and complex device binding is not required, so that the rich multimedia resource content played on the browser can be conveniently and quickly played on other playing devices, and the configuration and plug-and-play are not required additionally in the whole process.
Example six:
fig. 7 is a block diagram illustrating a second example of a browser-side apparatus according to an embodiment of the present invention. The browser-side device comprises:
a connection unit 601, configured to establish a local area network connection with a playback device having a DLNA function based on a DLNA protocol.
The determining unit 603 is configured to determine whether the multimedia file being played on the browser is stored locally.
An address obtaining unit 604, connected to the determining unit 603, configured to convert the absolute path of the multimedia file into a URL address if the determination result of the determining unit 603 is that the multimedia file is stored locally; if the determination result of the determining unit 603 is that the multimedia file is not stored locally, the URL address of the multimedia file being played on the browser is obtained.
Preferably, a downloading unit 605 is further included for downloading the multimedia file through the browser. In a specific implementation process, if the multimedia file provided by the remote device being played on the browser is a multimedia file with access right limitation (for example, a user accesses a private photo encrypted in a QQ space through the browser), at this time, if the multimedia file needs to be played across screens, the downloading unit 605 needs to download the multimedia file with access right limitation to the local, and then the address obtaining unit 604 converts an absolute path of the multimedia file into a URL address.
A sending unit 602, connected to the connecting unit 601 and the address obtaining unit 604 respectively, and configured to send, according to the conversion result of the address obtaining unit 604, multimedia file information including a corresponding URL address to the playing apparatus, so that the playing apparatus plays the multimedia file according to the storage address.
The control unit 605 is configured to generate a corresponding control instruction in response to a main control operation of a user, and send the control instruction to the playing apparatus through the sending unit 602, so as to control playing of the multimedia file of the playing apparatus.
The sending unit 602 is further configured to send the control instruction to the playing apparatus.
In this embodiment, preferably, the playing device allows remote control, the browser end provides a playing control interface for the user, responds to a main control operation of the user, generates a corresponding control instruction, and sends the control instruction to the playing device, so as to control the playing of the multimedia file by the playing device.
Preferably, the multimedia file information may further include current playing progress information of the multimedia file, so that the playing device may start playing from the current playing position according to the playing progress information, thereby implementing seamless switching.
According to the browser-side device provided by the embodiment of the invention, when the multimedia content played on the browser is played in a cross-screen mode, browsers with cross-screen transmission functions do not need to be installed on other playing devices, complex device binding is also not needed, online multimedia projection and local multimedia projection on other playing devices can be conveniently and quickly realized by rich multimedia resource content played on the browser, the playing of the playing devices can be remotely controlled, and the whole process additionally does not need configuration and plug-and-play.
The following is an embodiment of a playback device provided in an embodiment of the present invention. The embodiment of the playing device and the third and fourth embodiments of the DLNA protocol-based cross-screen playing method belong to the same concept, and details that are not described in detail in the embodiment of the playing device may refer to the above-mentioned embodiment of the DLNA protocol-based cross-screen playing method.
Example seven:
fig. 8 is a block diagram of a first embodiment of a playback apparatus according to an embodiment of the present invention. The playing device comprises:
a connection unit 801, configured to establish a local area network connection with a browser-side device having a DLNA function based on a DLNA protocol;
a receiving unit 802, connected to the connecting unit 801, configured to receive multimedia file information sent by the browser-side device, where the multimedia file information is information of a multimedia file being played on a browser of the browser-side device, and the multimedia file information includes a storage address of the multimedia file;
and the playing unit 803 is connected to the receiving unit 802, and is configured to play the multimedia file according to the storage address.
Specifically, after the lan connection is established, the playing device may actively request the multimedia file information of the multimedia file being played on the browser from the browser end, or the browser may actively push the multimedia file information of the multimedia file being played on the browser to the playing device according to the setting. The multimedia file information includes a storage address of the multimedia file. According to the storage address of the multimedia file being played on the browser carried by the multimedia file information, the playing device can acquire the multimedia content of the designated URI through the storage address, and the multimedia file is played through rendering processing.
According to the playing device provided by the embodiment of the invention, when the multimedia content played on the browser is played in a cross-screen mode, the browser with a cross-screen transmission function does not need to be installed on the playing device, complex device binding is also not needed, rich multimedia resource content played on the browser can be conveniently and quickly played by the playing device, and the whole process does not need to be additionally configured and is plug-and-play.
Example eight:
fig. 9 is a block diagram of a second embodiment of a playback device according to an embodiment of the present invention. The playing device comprises:
a connection unit 801, configured to establish a local area network connection with a browser-side device having a DLNA function based on a DLNA protocol;
a receiving unit 802, connected to the connecting unit 801, configured to receive multimedia file information sent by the browser-side device, where the multimedia file information is information of a multimedia file being played on a browser of the browser-side device, and the multimedia file information includes a storage address of the multimedia file.
If the multimedia file is locally stored in the browser-side device, the storage address comprises: a URL address converted from an absolute path of the multimedia file; if the multimedia file is not locally stored in the browser-side device, the storage address comprises: and obtaining the URL address of the multimedia file being played from the browser.
The determining unit 804 is connected to the receiving unit 802, and is configured to determine whether the received multimedia file information includes current playing progress information of the multimedia file.
The playing unit 803 is respectively connected to the receiving unit 802 and the judging unit 804, and is configured to, when the judgment result of the judging unit 804 indicates that the current playing progress information is included, obtain the multimedia file according to the storage address, and start playing from the current playing position according to the current playing progress information of the multimedia file; and is configured to, when the determination result of the determining unit 804 is that the current playing progress information is not included, obtain the multimedia file according to the storage address, and start playing from the starting position of the multimedia file.
Specifically, the playback unit 803 includes two sub-units:
a multimedia acquiring subunit 8031, configured to acquire the multimedia file according to the storage address;
the playing sub-unit 8032 is configured to start playing the multimedia file from the current playing position or start playing the multimedia file from the starting position of the multimedia file according to the current playing progress information of the multimedia file.
A control unit 805, configured to respond to a main control operation of a user when the playback device does not allow remote control, generate a corresponding control instruction, and control playback of the multimedia file; the receiving unit 802 is used for receiving a control instruction of a user from the browser-side device when the playing device allows remote control, and controlling the playing of the multimedia file according to the control instruction.
For the condition that the multimedia file being played on the browser is not the multimedia file stored in the local of the browser end, after the playing device acquires the storage address of the multimedia file, the multimedia file can be acquired through the storage address to be played, at the moment, the playing device can realize the control of being separated from the browser end, and even if the browser end is closed, the cross-screen playing of the playing device is not influenced.
The receiving unit 802 is further configured to receive a control instruction sent by the browser-side device.
According to the playing device provided by the embodiment of the invention, when the multimedia content played on the browser is played in a cross-screen mode, the browser with a cross-screen transmission function is not required to be installed on the playing device, and complex device binding is not required, so that the rich multimedia resource content played on the browser can be conveniently and quickly subjected to online multimedia projection and local multimedia projection on the playing device, the playing of the playing device can be controlled remotely, seamless switching can be realized, and the whole process is additionally free from configuration and plug-and-play.
Example nine:
fig. 10 is a block diagram of a cross-screen playing system based on a DLNA protocol according to an embodiment of the present invention. The system comprises a browser-side device and at least one playing device, wherein a local area network connection is established between the browser-side device and the at least one playing device. The browser-side device is the browser-side device in the fifth embodiment or the sixth embodiment, and the playback device is the playback device in the seventh embodiment or the eighth embodiment. The descriptions of the browser-side device and the playback device are not repeated herein.
Fig. 11-13 show a schematic diagram of a specific application of the system in fig. 10, taking the video projection cross-screen playing among home network devices as an example:
fig. 11 is a schematic diagram of online video projection of a system based on cross-screen playing of a DLNA protocol according to an embodiment of the present invention. When the browser plays the online video, the data is provided by a server of the video website and is transmitted to the browser through the network for playing. In order to project online video to a playing device (e.g., a tv/box) for playing, it is necessary to use the browser as DMC, the video website server as DMS, and the tv/box as DMP. The browser (DMC) controls the television/box (DMP) to the video website server to obtain the content of the designated URI, and controls the playing progress and other contents under the condition of allowing remote control.
Fig. 12 is a schematic diagram of system local video projection based on DLNA protocol cross-screen playing according to an embodiment of the present invention. In the method, when a local video is projected, video data is provided by a browser, so that a server needs to be erected locally, namely, the browser is a DMC and a DMS, and a television/box is still a DMP. And controlling a television/box (DMP) to go to a browser local (DMS) by a browser (DMC) to acquire the content of the specified URI, and controlling the playing progress and other contents under the condition of allowing remote control.
Fig. 13 is a schematic diagram of system PC/route/NAS (network attached storage) projection based on DLNA protocol cross-screen playing according to an embodiment of the present invention. Due to the development of multimedia technology and embedded devices, PCs, routing devices, and NAS devices can exist as DMS devices, and provide users with contents such as videos stored therein. Therefore, when the video content stored in these devices is played on the browser, technical means similar to online video projection can be adopted for projecting the video onto the television/box for playing.
According to the DLNA protocol cross-screen playing system, when the multimedia content played on the browser is played in a cross-screen mode, the browser with the cross-screen transmission function does not need to be installed on the playing device, complex device binding is not needed, online multimedia projection and local multimedia projection of rich multimedia resource content played on the browser can be conveniently and quickly achieved on the playing device, playing of the playing device can be controlled remotely, seamless switching can be achieved, configuration is not needed additionally in the whole process, and the DLNA protocol cross-screen playing system is plug-and-play.
It should be apparent to those skilled in the art that the units or steps of the above-described embodiments of the present invention can be implemented by a general-purpose computing device, they can be centralized on a single computing device or distributed on a network formed by a plurality of computing devices, alternatively, they can be implemented by program code executable by a computing device, and the program can be stored in a computer-readable storage medium, and the storage medium can be: ROM/RAM, magnetic disks, optical disks, memory cards, etc.; or separately as individual integrated circuit modules, or as a single integrated circuit module from a plurality of modules or steps within them. Thus, the present invention is not limited to any specific combination of hardware and software.
Although the present invention has been described in connection with preferred embodiments, it will be understood by those skilled in the art that the methods and systems of the present invention are not limited to the embodiments described in the detailed description, and various modifications, additions, and substitutions are possible, without departing from the spirit and scope of the invention as defined in the accompanying claims.

Claims (14)

1. A method for cross-screen playing based on a Digital Living Network Alliance (DLNA) protocol is applied to a browser-side device with DLNA function, and comprises the following steps:
presetting projection options in a browser;
playing a multimedia file on a page of the browser, and displaying the projection option on the page; responding to the operation of the user on the projection option, and starting the search of each playing device with the DLNA function in the network; monitoring a Simple Service Discovery Protocol (SSDP) message broadcasted by each playing device, and presenting a name list of the found playing devices to a user on the page;
responding to a playing device selected by a user based on the name list, and establishing a local area network connection with the playing device through a simple object access SOAP protocol;
when the multimedia file being played on the page is not stored locally, if the multimedia file is a multimedia file with access authority limit, downloading the multimedia file to the local through the browser, and converting an absolute path for storing the multimedia file into a Uniform Resource Locator (URL) address;
and sending the multimedia file information including the URL address to the playing device so that the playing device plays the multimedia file according to the URL address.
2. The method of claim 1, further comprising: and responding to the master control operation of the user, generating a corresponding control instruction and sending the control instruction to the playing device so as to control the playing of the multimedia file of the playing device.
3. The method according to claim 1, wherein the multimedia file information further includes current playing progress information of the multimedia file, so that the playing apparatus plays the multimedia file from the current playing position according to the playing progress information.
4. A method for cross-screen playing based on a Digital Living Network Alliance (DLNA) protocol is applied to a playing device with a DLNA function, and comprises the following steps:
after the playing device joins the network, broadcasting an SSDP message in the network so as to enable the browser end device with the DLNA function to preset a projection option in the browser; playing a multimedia file on a page of the browser, and displaying the projection option on the page; responding to the operation of the user on the projection option, and starting the search of each playing device with the DLNA function in the network; monitoring SSDP messages broadcasted by each playing device, and presenting a name list of found playing devices to a user on the page;
when the user selects the playing device based on the name list, establishing local area network connection with the browser end device through a Simple Object Access (SOAP) protocol;
receiving multimedia file information sent by the browser-side device, wherein the multimedia file information comprises a Uniform Resource Locator (URL) address of the multimedia file, and playing the multimedia file according to the URL address;
when the multimedia file being played on the page is not stored locally, if the multimedia file is a multimedia file with access permission limitation, the browser-side device downloads the multimedia file to the local through the browser, and converts an absolute path for storing the multimedia file into the URL address.
5. The method of claim 4, further comprising:
receiving a control instruction sent by the browser-side device;
controlling the playing of the multimedia file according to the control instruction;
the control instruction is generated by the browser-side device responding to the main control operation of the user.
6. The method of claim 4, wherein the multimedia file information further comprises current playing progress information of the multimedia file;
the playing the multimedia file according to the URL address comprises: and acquiring the multimedia file according to the URL address, and playing the multimedia file from the current playing position according to the current playing progress information of the multimedia file.
7. A browser-side device, wherein the browser-side device has DLNA (digital living network alliance) functionality, and comprises:
the connection unit is used for presetting projection options in the browser; playing a multimedia file on a page of the browser, and displaying the projection option on the page; responding to the operation of the user on the projection option, and starting the search of each playing device with the DLNA function in the network; monitoring a Simple Service Discovery Protocol (SSDP) message broadcasted by each playing device, and presenting a name list of the found playing devices to a user on the page; responding to a playing device selected by a user based on the name list, and establishing a local area network connection with the playing device through a simple object access SOAP protocol;
a sending unit, configured to download, when a multimedia file being played on the page is not stored locally, the multimedia file to the local via the browser if the multimedia file is a multimedia file with access permission limitation, and convert an absolute path on which the multimedia file is stored into a Uniform Resource Locator (URL) address; and sending the multimedia file information including the URL address to the playing device so that the playing device plays the multimedia file according to the URL address.
8. The browser-end apparatus of claim 7, wherein the browser-end apparatus further comprises: the control unit is used for responding to the master control operation of the user and generating a corresponding control instruction;
the sending unit is further configured to send the control instruction to the playing device to control playing of the multimedia file by the playing device.
9. The browser-side apparatus of claim 7, wherein the multimedia file information further includes current playing progress information of the multimedia file, so that the playing apparatus plays the multimedia file from the current playing position according to the playing progress information.
10. A playback apparatus having a DLNA function, comprising:
the connection unit is used for broadcasting an SSDP message in the network after the playing device joins the network so as to enable the browser-side device with the DLNA function to preset projection options in the browser; playing a multimedia file on a page of the browser, and displaying the projection option on the page; responding to the operation of the user on the projection option, and starting the search of each playing device with the DLNA function in the network; monitoring SSDP messages broadcasted by each playing device, and presenting a name list of found playing devices to a user on the page; when the user selects the playing device based on the name list, establishing local area network connection with the browser end device through a Simple Object Access (SOAP) protocol;
the receiving unit is used for receiving multimedia file information sent by the browser end device, and the multimedia file information comprises a Uniform Resource Locator (URL) address of the multimedia file;
the playing unit is used for playing the multimedia file according to the URL address;
when the multimedia file being played on the page is not stored locally, if the multimedia file is a multimedia file with access permission limitation, the browser-side device downloads the multimedia file to the local through the browser, and converts an absolute path for storing the multimedia file into the URL address.
11. The playback apparatus according to claim 10, wherein the receiving unit is further configured to receive a control command sent by the browser-side apparatus;
the playback apparatus further includes: the control unit is used for controlling the playing of the multimedia file according to the control instruction;
the control instruction is generated by the browser-side device responding to the main control operation of the user.
12. The playback apparatus as claimed in claim 10, wherein the multimedia file information further includes current playback progress information of the multimedia file;
the playback unit includes:
the multimedia acquisition subunit is used for acquiring the multimedia file according to the URL address;
and the playing subunit is used for playing the multimedia file from the current playing position according to the current playing progress information of the multimedia file.
13. A DLNA protocol-based cross-screen playing system is characterized by comprising: the browser-side apparatus of any one of claims 7 to 9 and at least one playback apparatus of any one of claims 10 to 12; and a local area connection is established between the browser-side device and the playing device.
14. A computer-readable storage medium having stored thereon computer-readable instructions for causing at least one processor to perform the method of any one of claims 1 to 6.
CN201410371286.4A 2014-07-30 2014-07-30 Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device Active CN105323628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410371286.4A CN105323628B (en) 2014-07-30 2014-07-30 Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410371286.4A CN105323628B (en) 2014-07-30 2014-07-30 Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device

Publications (2)

Publication Number Publication Date
CN105323628A CN105323628A (en) 2016-02-10
CN105323628B true CN105323628B (en) 2020-12-18

Family

ID=55250087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410371286.4A Active CN105323628B (en) 2014-07-30 2014-07-30 Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device

Country Status (1)

Country Link
CN (1) CN105323628B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107623873A (en) * 2016-07-13 2018-01-23 中国科学院声学研究所 Multi-screen interaction method, equipment and system based on AllJoyn technologies
CN106453255B (en) * 2016-09-09 2022-03-08 北京邦天信息技术有限公司 Method, UPnP device and system for realizing service continuous playing
CN107071550B (en) * 2017-04-01 2020-06-26 北京奇艺世纪科技有限公司 Video data sharing method and device
CN107835446B (en) * 2017-11-08 2020-02-11 青岛海信电器股份有限公司 Media state presentation and control method and device
CN108924603B (en) * 2018-07-31 2020-12-22 复旦大学 Multi-terminal streaming media playing system and method based on WiFi (Wireless Fidelity) defined by software
CN109495571B (en) * 2018-11-22 2022-03-22 北京远特科技股份有限公司 File management method and file management system
CN109714734B (en) * 2018-12-12 2022-07-12 创扬通信技术(深圳)有限公司 DMR system, wireless communication method and device of DMR and terminal equipment
CN114666628B (en) * 2022-03-11 2024-03-12 深圳市宝泽科技有限公司 Multimedia remote play control method, device and system
CN116610823A (en) * 2023-04-28 2023-08-18 江苏传智播客教育科技股份有限公司 Method and system for uniformly accessing multimedia resources

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364957A (en) * 2011-10-11 2012-02-29 Tcl集团股份有限公司 Method, device and equipment for playing internet videos
CN102510541B (en) * 2011-12-30 2014-12-17 Tcl数码科技(深圳)有限责任公司 Multi-screen interaction video and audio content switching method and media player
CN102833365A (en) * 2012-08-23 2012-12-19 Tcl集团股份有限公司 File playing method and system based on DLNA (Digital Living Network Alliance) and driving and driven DLNA equipment
CN103533428A (en) * 2012-10-31 2014-01-22 Tcl集团股份有限公司 Method for releasing intelligent terminal webpage video to television for broadcasting and intelligent terminal
CN103024588B (en) * 2012-11-15 2016-12-21 长春指南针科技有限公司 A kind of Multi-screen interaction system and method
CN103686325B (en) * 2013-12-25 2017-10-24 Tcl集团股份有限公司 The method and system that media are continuously played in a kind of multi-screen interactive

Also Published As

Publication number Publication date
CN105323628A (en) 2016-02-10

Similar Documents

Publication Publication Date Title
CN105323628B (en) Cross-screen playing method and system based on DLNA (digital Living network alliance), browser end device and playing device
TWI669957B (en) Media projection method, media projection device, control terminal, and cloud server
US9848024B1 (en) Multiple media device infrastructure
KR102151680B1 (en) System, method and computer-readable medium for presenting media content
US9883251B2 (en) Method and apparatus for managing connection between broadcast receiving device and another device connected by network
US9124441B2 (en) Remote audio
EP3996355B1 (en) Method for transferring media stream and user equipment
US10554745B2 (en) Method and apparatus for managing connection between broadcasting reception device and another device which are connected through network
KR102177013B1 (en) A system and method for managing playback of streaming digital content
KR20150070243A (en) A system and method for managing playback of streaming digital content
WO2013177734A1 (en) Processing method, device and system for media resource playlist in local area network
CN102594795A (en) Network system, content-reproduction-takeover method, and program
JP4789604B2 (en) Content switching determination system, switching instruction terminal, and content switching determination method
US20080088633A1 (en) Apparatus and method for providing data
CN103516707B (en) The implementation method of control, system and terminal is accessed between DLNA device
CN102656893B (en) Time-shifting of live media stream
CN103067234A (en) Identification and discovery method and system of intelligent device under heterogeneous network
EP3160101A1 (en) Multi-media resource management method, cloud server and electronic device
KR101231821B1 (en) Method and System for providing contents continuous play service
WO2017092323A1 (en) Main control device, playing device and data transmission method therefor
KR101329668B1 (en) Contents sharing system and method using push server
CN105430460B (en) A kind of video data method for pushing and device based on mobile terminal
JP5224387B2 (en) Content sharing system, content control apparatus, content sharing method, and content sharing program
KR20140103377A (en) Content server and content providing method of the same
WO2012100558A1 (en) Control method and device of media playing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant