CN104811817A - Method and device for using video client software to play videos - Google Patents
Method and device for using video client software to play videos Download PDFInfo
- Publication number
- CN104811817A CN104811817A CN201510218228.2A CN201510218228A CN104811817A CN 104811817 A CN104811817 A CN 104811817A CN 201510218228 A CN201510218228 A CN 201510218228A CN 104811817 A CN104811817 A CN 104811817A
- Authority
- CN
- China
- Prior art keywords
- client software
- service
- video
- video client
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000004891 communication Methods 0.000 claims abstract description 53
- 238000001514 detection method Methods 0.000 claims description 16
- 238000012544 monitoring process Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4782—Web browsing, e.g. WebTV
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25808—Management of client data
- H04N21/25816—Management of client data involving client authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44227—Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4438—Window management, e.g. event handling following interaction with the user interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/64—Addressing
- H04N21/6405—Multicasting
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Computer Graphics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
An embodiment of the invention discloses a method and a device for using video client software to play videos and is applicable to browsers. The method includes: responding a user's click instruction of a webpage link, and transmitting a download request of the video corresponding to the webpage link to the server corresponding to the webpage link; receiving the download address and identity fed back by the server; detecting whether first service exists in a local area network or not on the basis of a discover protocol, wherein the first service is registered by the video client software with the identity, and the equipment identification used during the registration is consistent with local equipment identification; if so, transmitting the download address of the video to the communication port of the target video client software corresponding to the first service, and allowing the target video client software to request the video data from the download address and play the video. By the method, the problem caused by the fact that the appointed port is occupied in advance in the prior art is solved, and good user experience is achieved.
Description
Technical Field
The invention relates to an internet application system, in particular to a method and a device for playing videos by using video client software.
Background
At present, a user often shares videos in a webpage link mode, when the user clicks the webpage link, the user directly jumps to a browser, and the browser plays the corresponding videos. However, the definition of playing the video in the browser is far lower than that of playing the video by video client software, and sometimes the video cannot be displayed in a full screen, so that the user viewing experience is not good.
In the prior art, video client software can be called by a browser to play a video corresponding to a web link, and in concrete implementation, after a user clicks the web link, the browser sends a video downloading request to a server corresponding to the web link, so that the server feeds back a downloading address of the video corresponding to the web link, an identity of the video client software corresponding to the web link, and a name of an appointed port of the video client software to the browser, the browser sends a calling instruction and the downloading address to the appointed port of the video client software with the identity, and the video client software responds to the calling instruction after receiving the calling instruction through the preset port, so as to play the video corresponding to the web link according to the downloading address. Although the method can call the video client software to play the video through the browser, if other software occupies the designated port in advance, the browser cannot call the video client software, so that the normal communication between the browser and the video client software through the designated port is influenced, and much inconvenience is brought to users.
Disclosure of Invention
Based on the above problems, the embodiment of the invention discloses a method and a device for playing a video by using video client software, so as to solve the problem that the designated port of the video client software is occupied in advance. The technical scheme is as follows:
the embodiment of the invention provides a method for playing videos by using video client software, which is applied to a browser and can comprise the following steps:
receiving a click instruction of a user on a webpage link;
responding to the click instruction, and sending a downloading request of the video corresponding to the webpage link to a server corresponding to the webpage link, so that after the server receives the downloading request, a downloading address of the video is searched locally, the searched downloading address is fed back to the browser, and meanwhile, the identity of the video client software corresponding to the webpage link is fed back to the browser;
receiving a download address and an identity fed back by the server;
detecting whether a first service which is registered by the video client software with the identity identification by using the discovery protocol and is consistent with the local equipment identification exists in the local area network or not based on the discovery protocol; target video client software corresponding to the first service registers the first service when being started, and cancels the first service when being closed, and a communication port which can be called is preset when the target video client software registers the first service;
and if so, sending a download address of the video to the communication port of the target video client software corresponding to the first service, so that the target video client software requests the server for video data according to the download address, and further playing the video.
Optionally, the method further includes:
and if the first service does not exist, requesting video data from the server according to the download address, and playing in a webpage.
Optionally, the method further includes:
and if the first service does not exist, displaying prompt information about downloading the target video client software.
Optionally, the method further includes:
if the first service exists, sending a reminding instruction to the communication port of the target video client software, and further executing the step of sending a download address of the video to the communication port of the target video client software;
and the reminding instruction is used for reminding the target video client software to prepare to receive the download address.
Optionally, the detecting, based on the discovery protocol, whether there is a first service that is registered by the video client software having the identity identifier using the discovery protocol and in which a device identifier used during registration is consistent with a local device identifier in the local network, includes:
and detecting whether a first service which is registered by the video client software with the identity identifier by using the multicast domain name system protocol and is consistent with the local equipment identifier when the video client software is registered exists in the local area network or not based on the multicast domain name system protocol.
The embodiment of the invention also provides a device for playing videos by using the video client software, which is applied to a browser and can comprise: the system comprises an instruction receiving unit, a request sending unit, an identification receiving unit, a service detection unit and an address sending unit; wherein,
the instruction receiving unit is used for receiving a click instruction of a user on the webpage link;
the request sending unit is used for responding to the click instruction received by the instruction receiving unit and sending a downloading request of the video corresponding to the webpage link to a server corresponding to the webpage link, so that after the server receives the downloading request, a downloading address of the video is searched locally, the searched downloading address is fed back to the browser, and meanwhile, the identity of the video client software corresponding to the webpage link is fed back to the browser;
the identifier receiving unit is used for receiving the download address and the identity identifier fed back by the server in the request sending unit;
the service detection unit is used for detecting whether a first service which is registered by the video client software with the identity identifier by using the discovery protocol and is consistent with the local equipment identifier when the video client software is registered exists in the local area network or not based on the discovery protocol; target video client software corresponding to the first service registers the first service when being started, and cancels the first service when being closed, and a communication port which can be called is preset when the target video client software registers the first service;
the address sending unit is configured to send a download address of the video to the communication port of the target video client software corresponding to the first service if the service detection unit detects that the first service exists, so that the target video client software requests the server for video data according to the download address, and then plays the video.
Optionally, the method further includes: and the webpage playing unit is used for requesting video data from the server according to the download address and playing the video data in a webpage if the service detection unit detects that the first service does not exist.
Optionally, the method further includes: an information display unit, wherein the information display unit is configured to display prompt information about downloading the target video client software if the service detection unit detects that the first service does not exist.
Optionally, the method further includes: and the reminding unit is used for sending a reminding instruction to the communication port of the target video client software and further triggering the address sending unit if the service detection unit detects that the first service exists, wherein the reminding instruction is used for reminding the target video client software to prepare to receive the download address.
Optionally, the address sending unit is specifically configured to: and detecting whether a first service which is registered by the video client software with the identity identifier by using the multicast domain name system protocol and is consistent with the local equipment identifier when the video client software is registered exists in the local area network or not based on the multicast domain name system protocol.
Compared with the prior art, when the video client software registers services in the local area network by using the discovery protocol, the video client software is preset with a communication port which can be called, and the communication port is randomly allocated. Because the video client software is registered for service when being started and is unregistered when being exited, the distributed communication port is occupied for a short time within a short time period between the start and the exit of the video client software, and the communication port is redistributed when the client is restarted next time, so that the phenomenon that the browser and the video client software cannot normally communicate through the specified port due to the fact that other software occupies the specified port in advance in the prior art is reduced, and users feel better.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, 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 drawings without creative efforts.
Fig. 1 is a flowchart of a method for playing a video by using video client software according to an embodiment of the present invention;
fig. 2 is another flowchart of a method for playing a video by using video client software according to an embodiment of the present invention;
fig. 3 is another flowchart of a method for playing a video by using video client software according to an embodiment of the present invention;
fig. 4 is another flowchart of a method for playing a video by using video client software according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for playing video by using video client software according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for playing video by using video client software according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for playing video by using video client software according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for playing a video by using video client software according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the 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 embodiment of the invention provides a method for playing videos by using video client software, which is applied to a browser and can comprise the following steps:
receiving a click instruction of a user on a webpage link;
responding to the click instruction, and sending a downloading request of the video corresponding to the webpage link to a server corresponding to the webpage link, so that after the server receives the downloading request, a downloading address of the video is searched locally, the searched downloading address is fed back to the browser, and meanwhile, the identity of the video client software corresponding to the webpage link is fed back to the browser;
receiving a download address and an identity fed back by the server;
detecting whether a first service which is registered by the video client software with the identity identification by using the discovery protocol and is consistent with the local equipment identification exists in the local area network or not based on the discovery protocol; target video client software corresponding to the first service registers the first service when being started, and cancels the first service when being closed, and a communication port which can be called is preset when the target video client software registers the first service;
and if so, sending a download address of the video to the communication port of the target video client software corresponding to the first service, so that the target video client software requests the server for video data according to the download address, and further playing the video.
It should be noted that the method for playing a video by using video client software provided by the embodiment of the present invention is applied to a browser, where the browser is common software that can be installed on a terminal device, and the video client software is software that can be installed on the terminal device and plays a video. The video client software may register for service on the lan using the discovery protocol described above and may be discovered by other devices or software that enter the lan.
In the embodiment of the invention, when the video client software registers the service in the local area network by using the discovery protocol, a communication port which can be called is preset, and the communication port is randomly distributed. Because the video client software is registered for service when being started and is unregistered when being exited, the distributed communication port is occupied for a short time within a short time period between the start and the exit of the video client software, and the communication port is redistributed when the client is restarted next time, so that the phenomenon that the browser and the video client software cannot normally communicate through the specified port due to the fact that other software occupies the specified port in advance in the prior art is reduced, and users feel better.
Fig. 1 is a flowchart of a method for playing a video by using video client software according to an embodiment of the present invention, where the method is applied to a browser and includes the following steps:
s101, receiving a click instruction of a user on a webpage link;
it should be noted that a web page link is essentially a part of a web page, and is an element that allows connection with other web pages or sites. It refers to a connection from one web page to a target, which may be another web page, a different location on the same web page, a picture, an email address, a file, or even an application. In the embodiment of the invention, the webpage link mainly refers to a link for a video, and users can share the video through the webpage link.
Specifically, after the user clicks the web page link, the browser receives a click command generated by a click operation of the user. When the terminal equipment for installing the browser is non-touch screen equipment, a user can click through connecting equipment such as a mouse and the like; when the terminal equipment for installing the browser is touch screen equipment, a user only needs to directly click with a finger.
S102, responding to the click instruction, and sending a downloading request of the video corresponding to the webpage link to a server corresponding to the webpage link, so that after receiving the downloading request, the server locally searches a downloading address of the video and feeds the searched downloading address back to the browser, and simultaneously feeds the identity of the video client software corresponding to the webpage link back to the browser;
it should be noted that the web page link in the embodiment of the present invention is a link to a video in a certain video website, and the video may be downloaded and then played.
Specifically, after receiving a click instruction of a user in step S101, in response to the click instruction, a link target of the web page link is displayed on a browser, and the browser can send a video download request to a server corresponding to the web page link according to the web page link, where the download request at least includes a name identifier of the video; correspondingly, after receiving the download request, the server may locally search for the download address of the video having the name identifier according to the name identifier carried in the download request, and then send the searched download address to the browser. In the above, the web page link is a link for a video in a certain video website, so the server corresponding to the web page link is the server corresponding to the video website, and the video client software is the client of the video website, for example: and the pps client on the mobile phone.
For example, the web page link is a movie link of an "love art" video website, when a user clicks the link, the browser sends a download request of the movie to a server corresponding to the "love art" video website, the server corresponding to the "love art" video website searches for a download address of the movie according to the download request, and sends the download address to the browser after the download address is found; and, the identity that can represent "love art" client software is fed back to the browser, such as: the name of 'love art' is directly used as an identification.
S103, receiving the download address and the identity fed back by the server;
specifically, after the server corresponding to the web page link feeds back the download address of the video and the identity of the video client software corresponding to the web page link to the browser in step S102, the browser may receive the download address and the identity accordingly.
S104, based on a discovery protocol, detecting whether a first service exists in a local area network, wherein the first service is registered by the video client software with the identity identifier by using the discovery protocol and the equipment identifier used during registration is consistent with the local equipment identifier;
target video client software corresponding to the first service registers the first service when being started, and cancels the first service when being closed, and a communication port which can be called is preset when the target video client software registers the first service;
it should be noted that the discovery protocol may provide a function of discovering devices or software in a local area network, when an anchor device or anchor software enters the local area network, the discovery protocol may register a service, declare that the anchor device or anchor software exists in the local area network, and broadcast a device identifier and a provided specific function when the anchor device or anchor software registers the service, where the device identifier is a device identifier of a terminal device where the software is located, and the device identifier may be an IP (network protocol) address or a MAC (physical) address of the device. When other equipment or software enters the local area network, the broadcast message can be received and actively responded if the equipment or software wants to, and then communication connection is established with the anchor equipment or the anchor software.
Correspondingly, in the embodiment of the invention, when the video client software corresponding to the webpage link is started, the monitoring service is registered in the local area network, and the equipment identification and the provided specific function are broadcast when the monitoring service is registered, wherein the monitoring service is used for monitoring the browser which sends the call signal to the local area network. The video client software installed in different terminal devices register for the listening service with different device identifications, so that there will be a plurality of video client software registering for the listening service in the local area network, but their device identifications are different. And when the video client software exits from the local area network, the monitoring service is automatically cancelled. When the video client software registers the monitoring service each time, a communication port which can be called is randomly allocated by a server corresponding to a discovery protocol in the local area network, but when the video client software cancels the monitoring service, the calling function allocated to the communication port fails. If the registration interception service and the cancellation interception service of the video client software are taken as one period, the communication ports in each period may be inconsistent. When the video client software registers for the monitoring service, if the device identifier is the same as the local device identifier of the browser, the video client software and the browser are installed on the same terminal device, and more effective communication can be performed. In this case, for better reference description, the listening service registered by the video client software installed on the same terminal device as the browser is referred to as a first service, and the client software is referred to as target video client software.
Specifically, in step S103, a download address of the video and an identity of the video client software are received, after the browser enters the local area network, it is detected according to the discovery protocol whether there is a monitoring service registered by the video client software having the identity in the local area network, and when there is a monitoring service registered by the video client software having the identity, it is further determined whether the device identifier of the video client software when registering the monitoring service is consistent with the local device identifier, and the monitoring service consistent with the local device identifier is determined as the first service, and the video client software corresponding to the first service is the target video client software.
In practice, a multicast domain name system mdns protocol is usually used to discover devices or software in a local area network, and then the detecting whether there exists a first service in the local area network, which is registered by video client software having the identity using the discovery protocol and in which the device identity used during registration is consistent with the local device identity, based on the discovery protocol may include:
and detecting whether a first service which is registered by the video client software with the identity identifier by using the multicast domain name system protocol and is consistent with the local equipment identifier when the video client software is registered exists in the local area network or not based on the multicast domain name system protocol.
Specifically, the multicast domain name system protocol is an mdns protocol, which mainly realizes that hosts in a local area network can discover and communicate with each other without a traditional DNS server, and the browser and the video client software follow the mdns protocol, wherein the video client software uses names or name prefixes and the like known by those skilled in the art to register and monitor services. The principle of mutual discovery is consistent with the principle of mutual discovery of the discovery protocols, the mdns protocol is only one specific form of the discovery protocol, and those skilled in the art can know more local area network protocols with mutual discovery functions, which is not limited in the embodiment of the present invention.
And S105, if the video exists, sending a downloading address of the video to the communication port of the target video client software corresponding to the first service, so that the target video client software requests the server for video data according to the downloading address, and further playing the video.
Specifically, when the first service registered in the local area network exists in step S104, the download address of the video is sent to the communication port of the video client software corresponding to the first service, and after receiving the download address, the video client software can request the video data from the server according to the download address, and then play the video data. Generally, a server provides a segmented download, that is, a video corresponding to a web page link is pre-divided into a plurality of segments, when a download request of video client software is received, a first segment of video clip is transmitted to the video client software, and after a predetermined time or after a download request of the first segment of video clip by the video client software is received, the video clip is continuously transmitted until all the video clips are transmitted.
Compared with the prior art, when the video client software registers services in the local area network by using the discovery protocol, the video client software is preset with a communication port which can be called, and the communication port is randomly allocated. Because the video client software is registered for service when being started and is unregistered for service when being exited, the distributed communication port is occupied for a short time within a short time period between the start and the exit of the video client software, and the communication port is redistributed when the client is restarted next time, so that the phenomenon that the browser and the video client software cannot normally communicate through the specified port due to the fact that other software occupies the specified port in advance in the prior art is reduced, and users feel better.
Further, in practice, the browser may not detect the first service and may play locally, possibly due to detecting a failure, the video client software not registering for service in the local area network, or the detected registered service not being the first service. Based on the above requirement, as shown in fig. 2, another method for playing a video by using video client software is provided in an embodiment of the present invention, where the method includes S101 to S105, and the method may further include:
s205, if the first service does not exist, video data are requested from the server according to the downloading address and played in a webpage.
Specifically, if it is detected in step S104 that the first service does not exist, the video data may be requested from the server directly and locally according to the download address fed back by the server, and then played. Generally, a server provides a segmented download, that is, a video corresponding to a web page link is pre-divided into a plurality of segments, when a download request of video client software is received, a first segment of video clip is transmitted to the video client software, and after a predetermined time or after a download request of the first segment of video clip by the video client software is received, the video clip is continuously transmitted until all the video clips are transmitted.
Therefore, when the first service cannot be detected, the video can still be played in the browser as in the prior art, so that diversified selections are provided for playing the video, the probability that the video cannot be played in the video client software due to various errors is reduced, and the user experience is better.
Furthermore, in a scenario, the browser may not detect the first service, possibly because the device in which the first service is installed does not have video client software with an identity identifier, so as to enable the user to have a better experience in local video viewing, the user may be reminded to download the video client software, and the video is played in the video client software. Based on the above requirement, as shown in fig. 3, another method for playing a video by using video client software is provided in an embodiment of the present invention, where the method includes S101 to S105, and the method may further include:
s305, if the first service does not exist, displaying prompt information about downloading the target video client software.
Specifically, when it is detected in step S104 that the first service does not exist, prompt information about downloading the target video client software is displayed. The prompt information can be output in a pop-up window form or a message reminding form, and after receiving the prompt information, a user can download the target video client software through the local area network, so that the video can be watched in the target video client software by using the method of the embodiment of the invention.
Therefore, when the target video client software is not installed in the terminal equipment where the browser is located, the prompt information can prompt the user to download the target video client software, the prompt information is more humanized, after the user downloads the target video client software according to the prompt information, the user can watch videos in the target video client software according to the method described in the embodiment of the invention, and the user experience is better.
Furthermore, in practice, the target video client software may be in a background running or sleeping state when not being used, and a reminding mechanism may be added before sending the download address to the target video client software. Based on the above requirement, as shown in fig. 4, an embodiment of the present invention further provides a method for playing a video by using video client software, where the method includes, on the basis of steps S101 to S105, the method may further include:
s406, if the first service exists, sending a reminding instruction to the communication port of the target video client software, and further executing the step of sending the download address of the video to the communication port of the target video client software;
and the reminding instruction is used for reminding the target video client software to prepare to receive the download address.
Specifically, if it is detected in step S104 that the first service exists, a reminding instruction is first sent to the communication port of the target video client software, where the reminding instruction can remind the target video client software to prepare to receive the download address. And then sending the download address of the video corresponding to the webpage link to the communication port of the target video client software.
Therefore, the probability of success of receiving the download address by the target video client software can be increased by adding the reminding mechanism, and the user experience is better.
Compared with the prior art, when the video client software registers services in the local area network by using the discovery protocol, the video client software is preset with a communication port which can be called, and the communication port is randomly allocated. Because the video client software is registered for service when being started and is unregistered for service when being exited, the distributed communication port is occupied for a short time within a short time period between the start and the exit of the video client software, and the communication port is redistributed when the client is restarted next time, so that the phenomenon that the browser and the video client software cannot normally communicate through the specified port due to the fact that other software occupies the specified port in advance in the prior art is reduced, and users feel better.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an apparatus for playing a video by using video client software, as shown in fig. 5, which is a schematic structural diagram of the apparatus, and the apparatus is applied to a browser, and may include the following units: an instruction receiving unit 510, a request transmitting unit 520, an identification receiving unit 530, a service detecting unit 540, and an address transmitting unit 550; wherein,
the instruction receiving unit 510 is configured to receive a click instruction of a user on a web page link;
the request sending unit 520 is configured to respond to the click instruction received by the instruction receiving unit 510, and send a download request for the video corresponding to the web link to the server corresponding to the web link, so that after receiving the download request, the server locally searches for a download address of the video and feeds back the searched download address to the browser, and simultaneously feeds back the identity of the video client software corresponding to the web link to the browser;
the identifier receiving unit 530 is configured to receive a download address and an identity identifier fed back by the server in the request sending unit 520;
the service detection unit 540 is configured to detect, based on a discovery protocol, whether a first service exists in a local area network, where the first service is registered by the video client software having the identity identifier using the discovery protocol and a device identifier used during registration is consistent with a local device identifier; target video client software corresponding to the first service registers the first service when being started, and cancels the first service when being closed, and a communication port which can be called is preset when the target video client software registers the first service;
the address sending unit 550 is configured to send a download address of the video to the communication port of the target video client software corresponding to the first service if the service detection unit detects that the first service exists, so that the target video client software requests the server for video data according to the download address, and then plays the video.
Compared with the prior art, when the video client software registers services in the local area network by using the discovery protocol, the video client software is preset with a communication port which can be called, and the communication port is randomly allocated. Because the video client software is registered for service when being started and is unregistered for service when being exited, the distributed communication port is occupied for a short time within a short time period between the start and the exit of the video client software, and the communication port is redistributed when the client is restarted next time, so that the phenomenon that the browser and the video client software cannot normally communicate through the specified port due to the fact that other software occupies the specified port in advance in the prior art is reduced, and users feel better.
On the basis of the embodiment shown in fig. 5, referring to fig. 6, another apparatus for playing a video by using video client software is provided in the embodiment of the present invention, and the apparatus may further include:
a web page playing unit 650, wherein the web page playing unit 650 is configured to request the server for video data according to the download address and play the video data in a web page if the service detecting unit 540 detects that the first service does not exist.
On the basis of the embodiment shown in fig. 5, referring to fig. 7, another apparatus for playing a video by using video client software is provided in the embodiment of the present invention, and the apparatus may further include:
an information display unit 750, wherein the information display unit 750 is configured to display prompt information about downloading the target video client software if the service detection unit 540 detects that the first service does not exist.
On the basis of the embodiment shown in fig. 5, referring to fig. 8, another apparatus for playing a video by using video client software is provided in the embodiment of the present invention, and the apparatus may further include:
a reminding unit 860, wherein the reminding unit 860 is configured to send a reminding instruction to the communication port of the target video client software if the service detection unit 540 detects that the first service exists, and further trigger the address sending unit 550, and the reminding instruction is used to remind the target video client software to prepare to receive the download address.
In an embodiment of the present invention, the address sending unit 550 is specifically configured to: and detecting whether a first service which is registered by the video client software with the identity identifier by using the multicast domain name system protocol and is consistent with the local equipment identifier when the video client software is registered exists in the local area network or not based on the multicast domain name system protocol.
For system or apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that all or part of the steps in the above method embodiments may be implemented by a program to instruct relevant hardware to perform the steps, and the program may be stored in a computer-readable storage medium, which is referred to herein as a storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. The method for playing the video by using the video client software is characterized by being applied to a browser and comprising the following steps:
receiving a click instruction of a user on a webpage link;
responding to the click instruction, and sending a downloading request of the video corresponding to the webpage link to a server corresponding to the webpage link, so that after the server receives the downloading request, a downloading address of the video is searched locally, the searched downloading address is fed back to the browser, and meanwhile, the identity of the video client software corresponding to the webpage link is fed back to the browser;
receiving a download address and an identity fed back by the server;
detecting whether a first service which is registered by the video client software with the identity identification by using the discovery protocol and is consistent with the local equipment identification exists in the local area network or not based on the discovery protocol; target video client software corresponding to the first service registers the first service when being started, and cancels the first service when being closed, and a communication port which can be called is preset when the target video client software registers the first service;
and if so, sending a download address of the video to the communication port of the target video client software corresponding to the first service, so that the target video client software requests the server for video data according to the download address, and further playing the video.
2. The method of claim 1, further comprising:
and if the first service does not exist, requesting video data from the server according to the download address, and playing in a webpage.
3. The method of claim 1, further comprising:
and if the first service does not exist, displaying prompt information about downloading the target video client software.
4. The method of claim 1, further comprising:
if the first service exists, sending a reminding instruction to the communication port of the target video client software, and further executing the step of sending a download address of the video to the communication port of the target video client software;
and the reminding instruction is used for reminding the target video client software to prepare to receive the download address.
5. The method according to claim 1, wherein the detecting whether there is a first service in the local area network, which is registered by the video client software having the identity identifier using the discovery protocol and in which the device identifier used in the registration is consistent with the local device identifier, based on the discovery protocol comprises:
and detecting whether a first service which is registered by the video client software with the identity identifier by using the multicast domain name system protocol and is consistent with the local equipment identifier when the video client software is registered exists in the local area network or not based on the multicast domain name system protocol.
6. The device for playing the video by using the video client software is characterized by being applied to a browser and comprising the following components: the system comprises an instruction receiving unit, a request sending unit, an identification receiving unit, a service detection unit and an address sending unit; wherein,
the instruction receiving unit is used for receiving a click instruction of a user on the webpage link;
the request sending unit is used for responding to the click instruction received by the instruction receiving unit and sending a downloading request of the video corresponding to the webpage link to a server corresponding to the webpage link, so that after the server receives the downloading request, a downloading address of the video is searched locally, the searched downloading address is fed back to the browser, and meanwhile, the identity of the video client software corresponding to the webpage link is fed back to the browser;
the identifier receiving unit is used for receiving the download address and the identity identifier fed back by the server in the request sending unit;
the service detection unit is used for detecting whether a first service which is registered by the video client software with the identity identifier by using the discovery protocol and is consistent with the local equipment identifier when the video client software is registered exists in the local area network or not based on the discovery protocol; target video client software corresponding to the first service registers the first service when being started, and cancels the first service when being closed, and a communication port which can be called is preset when the target video client software registers the first service;
the address sending unit is configured to send a download address of the video to the communication port of the target video client software corresponding to the first service if the service detection unit detects that the first service exists, so that the target video client software requests the server for video data according to the download address, and then plays the video.
7. The apparatus of claim 6, further comprising: and the webpage playing unit is used for requesting video data from the server according to the download address and playing the video data in a webpage if the service detection unit detects that the first service does not exist.
8. The apparatus of claim 6, further comprising: an information display unit, wherein the information display unit is configured to display prompt information about downloading the target video client software if the service detection unit detects that the first service does not exist.
9. The apparatus of claim 6, further comprising: and the reminding unit is used for sending a reminding instruction to the communication port of the target video client software and further triggering the address sending unit if the service detection unit detects that the first service exists, wherein the reminding instruction is used for reminding the target video client software to prepare to receive the download address.
10. The apparatus according to claim 6, wherein the address sending unit is specifically configured to: and detecting whether a first service which is registered by the video client software with the identity identifier by using the multicast domain name system protocol and is consistent with the local equipment identifier when the video client software is registered exists in the local area network or not based on the multicast domain name system protocol.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510218228.2A CN104811817B (en) | 2015-04-30 | 2015-04-30 | The method and device of video is played using videoconference client software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510218228.2A CN104811817B (en) | 2015-04-30 | 2015-04-30 | The method and device of video is played using videoconference client software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104811817A true CN104811817A (en) | 2015-07-29 |
CN104811817B CN104811817B (en) | 2018-04-13 |
Family
ID=53696229
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510218228.2A Active CN104811817B (en) | 2015-04-30 | 2015-04-30 | The method and device of video is played using videoconference client software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104811817B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105611422A (en) * | 2015-10-26 | 2016-05-25 | 广州华多网络科技有限公司 | Online live broadcast method based on multi-media list and apparatus thereof |
CN105657055A (en) * | 2016-03-07 | 2016-06-08 | 北京视信互动科技有限公司 | Local area network equipment finding method and device oriented to WEB page |
CN105847880A (en) * | 2016-03-29 | 2016-08-10 | 乐视控股(北京)有限公司 | Audio-video sharing method, server and terminal |
CN106358082A (en) * | 2016-11-01 | 2017-01-25 | 合网络技术(北京)有限公司 | Video playing method and device |
CN106412679A (en) * | 2015-07-31 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Media content acquiring method and apparatus, a media content providing method, apparatus and system |
CN106658200A (en) * | 2016-12-30 | 2017-05-10 | 乐蜜科技有限公司 | Live video sharing and obtaining methods and devices, and terminal equipment thereof |
CN111586447A (en) * | 2020-05-08 | 2020-08-25 | 北京奇艺世纪科技有限公司 | Flow guide method of multimedia website, playing method of multimedia data and server |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100042681A1 (en) * | 2008-08-13 | 2010-02-18 | Sk Telecom Co., Ltd. | Contents delivery system and method using object redirection, and gslb switch thereof |
CN102111674A (en) * | 2010-12-22 | 2011-06-29 | 深圳市五巨科技有限公司 | System and method for playing on-line video by mobile terminal and mobile terminal |
CN103369015A (en) * | 2012-04-10 | 2013-10-23 | 深圳市高斯贝尔家居智能电子有限公司 | Convenient method for accessing web camera through web |
CN103763617A (en) * | 2013-12-17 | 2014-04-30 | 乐视网信息技术(北京)股份有限公司 | Method for video playing and electronic equipment |
CN103873928A (en) * | 2014-03-14 | 2014-06-18 | 可牛网络技术(北京)有限公司 | Method, device and application server for playing video |
-
2015
- 2015-04-30 CN CN201510218228.2A patent/CN104811817B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100042681A1 (en) * | 2008-08-13 | 2010-02-18 | Sk Telecom Co., Ltd. | Contents delivery system and method using object redirection, and gslb switch thereof |
CN102111674A (en) * | 2010-12-22 | 2011-06-29 | 深圳市五巨科技有限公司 | System and method for playing on-line video by mobile terminal and mobile terminal |
CN103369015A (en) * | 2012-04-10 | 2013-10-23 | 深圳市高斯贝尔家居智能电子有限公司 | Convenient method for accessing web camera through web |
CN103763617A (en) * | 2013-12-17 | 2014-04-30 | 乐视网信息技术(北京)股份有限公司 | Method for video playing and electronic equipment |
CN103873928A (en) * | 2014-03-14 | 2014-06-18 | 可牛网络技术(北京)有限公司 | Method, device and application server for playing video |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106412679A (en) * | 2015-07-31 | 2017-02-15 | 腾讯科技(深圳)有限公司 | Media content acquiring method and apparatus, a media content providing method, apparatus and system |
CN105611422A (en) * | 2015-10-26 | 2016-05-25 | 广州华多网络科技有限公司 | Online live broadcast method based on multi-media list and apparatus thereof |
CN105611422B (en) * | 2015-10-26 | 2018-11-06 | 广州华多网络科技有限公司 | Online live broadcasting method and device based on multimedia list |
CN105657055A (en) * | 2016-03-07 | 2016-06-08 | 北京视信互动科技有限公司 | Local area network equipment finding method and device oriented to WEB page |
CN105847880A (en) * | 2016-03-29 | 2016-08-10 | 乐视控股(北京)有限公司 | Audio-video sharing method, server and terminal |
CN106358082A (en) * | 2016-11-01 | 2017-01-25 | 合网络技术(北京)有限公司 | Video playing method and device |
CN106658200A (en) * | 2016-12-30 | 2017-05-10 | 乐蜜科技有限公司 | Live video sharing and obtaining methods and devices, and terminal equipment thereof |
CN106658200B (en) * | 2016-12-30 | 2020-07-28 | 香港乐蜜有限公司 | Live video sharing and acquiring method and device and terminal equipment thereof |
CN111586447A (en) * | 2020-05-08 | 2020-08-25 | 北京奇艺世纪科技有限公司 | Flow guide method of multimedia website, playing method of multimedia data and server |
Also Published As
Publication number | Publication date |
---|---|
CN104811817B (en) | 2018-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104811817B (en) | The method and device of video is played using videoconference client software | |
CN104468551B (en) | A kind of method and device saving flow based on Ad blocking | |
EP3206362B1 (en) | Account login method and apparatus | |
US10630757B2 (en) | Application sharing method and apparatus | |
CN104363247A (en) | Flow saving method and device adopting saving-free application | |
US20160119313A1 (en) | User Login Methods, Devices, and Systems | |
US20070165615A1 (en) | Apparatus and method for notifying communication network event in application server capable of supporting open API based on Web services | |
US20120117599A1 (en) | Thumbnail publication | |
US20130080560A1 (en) | System and Method for Sharing Digital Data on a Presenter Device to a Plurality of Participant Devices | |
CN105827694B (en) | Method and device for acquiring network resources | |
CN109302437B (en) | Method and device for redirecting website | |
CN109150741B (en) | Message sending method and device, electronic equipment and storage medium | |
WO2013133857A1 (en) | Systems and methods for implementing peer-to-peer wireless connections | |
TWI621078B (en) | Business object verification method and device | |
KR20110053819A (en) | Method and apparatus for providing pair play service | |
US20160210827A1 (en) | Method and device for sending message | |
CN114253774A (en) | Disaster recovery method, device and storage medium for service management platform | |
CN114584608A (en) | Network switching method, device, equipment and storage medium | |
CN114040240A (en) | Button configuration method, device, server and storage medium | |
US9432420B2 (en) | Communication system, non-transitory computer-readable medium storing communication program and communication device | |
CN113285920B (en) | Service access method, device, equipment and storage medium | |
KR100798916B1 (en) | Method and system for handling the network events in application server using open API based web services | |
JP2024521097A (en) | Live distribution screen display method, live distribution screen display device, computer program, and electronic device | |
CN110809064B (en) | IP address switching method, device and system | |
CN106302002A (en) | Method of testing and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |