CN117896538A - Method and device for patrolling course, equipment and storage medium - Google Patents
Method and device for patrolling course, equipment and storage medium Download PDFInfo
- Publication number
- CN117896538A CN117896538A CN202410036691.4A CN202410036691A CN117896538A CN 117896538 A CN117896538 A CN 117896538A CN 202410036691 A CN202410036691 A CN 202410036691A CN 117896538 A CN117896538 A CN 117896538A
- Authority
- CN
- China
- Prior art keywords
- client
- address
- intranet
- server
- stream
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000006855 networking Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012546 transfer Methods 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2183—Cache memory
-
- 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/21—Server components or server architectures
- H04N21/222—Secondary servers, e.g. proxy server, cable television Head-end
- H04N21/2223—Secondary servers, e.g. proxy server, cable television Head-end being a public access point, e.g. for downloading to or uploading from clients
-
- 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/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/239—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
- H04N21/2393—Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
-
- 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/25841—Management of client data involving the geographical location of the client
-
- 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/27—Server based end-user applications
- H04N21/274—Storing end-user multimedia data in response to end-user request, e.g. network recorder
-
- 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/6402—Address allocation for clients
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Graphics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The method comprises the steps that when a user accesses a class system of a school through a client to conduct online class, a class server can judge the position information of the client through an outlet IP address corresponding to the client carried by a streaming request, the client in an external network pulls video through the external network class server, and the client in an internal network of the school directly pulls video at the internal network class server, so that hybrid class patrol of the external network and the internal network of the school is realized. Therefore, the flexibility of online tour-by-tour is improved. And moreover, the client side of the intranet in the school can directly pull the target video through the intranet class patrol server, so that the uplink bandwidth of the school is not required to be additionally occupied, the flow cost is reduced, and the online class patrol cost is further reduced. The application also discloses a course patrol device, equipment and a storage medium.
Description
Technical Field
The present invention relates to the field of streaming media technologies, and in particular, to a method and apparatus for course patrol, a device, and a storage medium.
Background
In order to standardize the class teaching order and the teaching behaviors of teachers, schools generally adopt an online class patrol mode to supervise class teaching so as to establish good class order and ensure teaching quality.
At present, the class patrol system of the school only supports the internal network class patrol of the school or only supports the external network class patrol. Namely, the system for the course patrol of the school only supports the online course patrol of the users in the inner network of the school through the client, or all the users have to visit the inner network of the school through the outer network to carry out the online course patrol.
However, in the case that the lesson patrol system of the school only supports the intranet lesson patrol, the user in the extranet cannot carry out online lesson patrol through the client, and the lesson patrol mode is inflexible. Under the condition of only supporting the outer network for course patrol, the users in the outer network and the users in the inner network of the school (such as teachers at school educational administration) all need to visit the inner network of the school for course patrol through the outer network, and the users in the inner network of the school can additionally occupy the uplink bandwidth of the school, so that higher flow expense is generated, and the online course patrol cost is increased.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, equipment and a storage medium for cruising lessons, which can realize the mixed cruising lessons of an external network and an internal network of a school, improve the flexibility of on-line cruising lessons and reduce the cost of on-line cruising lessons.
In a first aspect, an embodiment of the present disclosure provides a method for patrol lessons, where the method is applied to a patrol lesson server in a patrol lesson system, where the patrol lesson system further includes a client and an IP address service deployed on an external network; the course patrol server comprises an intranet course patrol server and an extranet course patrol server; the intranet class-patrol server is cached with live video streams of each classroom, and each live video stream is correspondingly provided with a video identifier; the method comprises the following steps:
Receiving a stream pulling request sent by a client; wherein: the streaming request carries an exit IP address corresponding to the client and a video identifier of the target video stream, and the exit IP address corresponding to the client sends an address access request to the IP address service before the client sends the streaming request to the course patrol server, so that the IP address service responds to the address access request and feeds back to the client;
determining the position information of the client according to the corresponding exit IP address of the client;
feeding back an external network stream pulling address corresponding to the video identification of the target video stream to the client under the condition that the position information indicates that the client is located on the external network, so that the client pulls the target video stream from the external network course patrol server based on the external network stream pulling address; or feeding back an intranet stream pulling address corresponding to the video identifier of the target video stream to the client under the condition that the position information indicates that the client is located in the intranet, so that the client pulls the target video stream from the intranet class patrol server by the intranet stream pulling address.
Optionally, the IP address service is configured to receive the state information sent by the intranet class server under the networking condition, parse the exit IP address corresponding to the intranet class server carried in the state information, and record the exit IP address corresponding to the intranet class server to the whitelist; correspondingly, after the external network lesson-patrol server receives the pull-stream request sent by the client, the external network lesson-patrol server determines the position information of the client according to the outlet IP address corresponding to the client, and the method comprises the following steps: acquiring a white list from an IP address service; judging whether an exit IP address corresponding to the client exists in the white list; if yes, determining that the client is located in the intranet; if not, the client is determined to be located in the external network.
Optionally, after the intranet class-patrol server receives the pull-stream request sent by the client, the intranet class-patrol server determines the position information of the client according to the exit IP address corresponding to the client, including: acquiring a source IP address of a client carried in a streaming request; judging whether the source IP address of the client is the same as the corresponding outlet IP address of the client; if the client is the same, determining that the client is located in the intranet; if the client is different, the client is determined to be located in the external network.
In a second aspect, an embodiment of the present disclosure provides a method for patrol lessons, where the method is applied to a client in a patrol lesson system, and the patrol lesson system further includes a patrol lesson server and an IP address service deployed on an external network; the course patrol server comprises an intranet course patrol server and an extranet course patrol server; the intranet class-patrol server is cached with live video streams of each classroom, and each live video stream is correspondingly provided with a video identifier; the method comprises the following steps:
sending an address access request to the IP address service so that the IP address service responds to the address access request and feeds back an outlet IP address corresponding to the client;
sending a pull stream request to a course patrol server; wherein: the pull stream request carries an exit IP address corresponding to the client and a video identifier of the target video stream, so that the patrol server determines the position information of the client according to the exit IP address corresponding to the client, and feeds back the pull stream address of the external network corresponding to the video identifier of the target video stream to the client when the position information indicates that the client is located in the external network; or, when the position information indicates that the client is located in the intranet, the tour server feeds back an intranet pull address corresponding to the video identification of the target video stream to the client;
Pulling a target video stream from an external network tour server based on the external network pull stream address; or pulling the target video stream from the intranet class server based on the intranet stream pulling address.
Optionally, pulling the target video stream from the extranet tour server based on the extranet pull stream address, including: based on the external network pull stream address, a request for pulling the target video stream is sent to an external network tour server, so that the external network tour server responds to the request for pulling the target video stream, the target video stream is pulled from the internal network tour server, and the target video stream is transmitted to the client.
Optionally, pulling the target video stream from the intranet class server based on the intranet pull stream address, including: based on the intranet pulling address, a request for pulling the target video stream is sent to the intranet patrol server, so that the intranet patrol server responds to the request for pulling the target video stream and transmits the target video stream to the client.
In a third aspect, an embodiment of the present disclosure provides a course patrol device, which is integrated with a course patrol server in a course patrol system, where the course patrol system further includes a client and an IP address service deployed on an external network; the course patrol server comprises an intranet course patrol server and an extranet course patrol server; the intranet class-patrol server is cached with live video streams of each classroom, and each live video stream is correspondingly provided with a video identifier; the device comprises:
The request receiving module is used for receiving a stream pulling request sent by the client; wherein: the streaming request carries an exit IP address corresponding to the client and a video identifier of the target video stream, and the exit IP address corresponding to the client sends an address access request to the IP address service before the client sends the streaming request to the course patrol server, so that the IP address service responds to the address access request and feeds back to the client;
the position determining module is used for determining the position information of the client according to the corresponding exit IP address of the client;
the address feedback module is used for feeding back an external network stream pulling address corresponding to the video identification of the target video stream to the client under the condition that the position information indicates that the client is located on the external network, so that the client pulls the target video stream from the external network course patrol server based on the external network stream pulling address; or feeding back an intranet stream pulling address corresponding to the video identifier of the target video stream to the client under the condition that the position information indicates that the client is located in the intranet, so that the client pulls the target video stream from the intranet class patrol server by the intranet stream pulling address.
In a fourth aspect, an embodiment of the present disclosure provides a course patrol device, which is integrated with a client in a course patrol system, where the course patrol system further includes a course patrol server and an IP address service deployed on an external network; the course patrol server comprises an intranet course patrol server and an extranet course patrol server; the intranet class-patrol server is cached with live video streams of each classroom, and each live video stream is correspondingly provided with a video identifier; the device comprises:
The address request module is used for sending an address access request to the IP address service so that the IP address service responds to the address access request and feeds back an outlet IP address corresponding to the client;
the request sending module is used for sending a pull stream request to the course patrol server; wherein: the pull stream request carries an exit IP address corresponding to the client and a video identifier of the target video stream, so that the patrol server determines the position information of the client according to the exit IP address corresponding to the client, and feeds back the pull stream address of the external network corresponding to the video identifier of the target video stream to the client when the position information indicates that the client is located in the external network; or, when the position information indicates that the client is located in the intranet, the tour server feeds back an intranet pull address corresponding to the video identification of the target video stream to the client;
the video pulling module is used for pulling a target video stream from the external network tour server based on the external network streaming address; or pulling the target video stream from the intranet class server based on the intranet stream pulling address.
In a fifth aspect, an embodiment of the disclosure provides an electronic device, including a processor and a memory storing program instructions, where the processor is configured to perform the method of cruising in the first or second aspect when the program instructions are executed.
A sixth aspect, an embodiment of the present disclosure provides a storage medium storing program instructions, where the program instructions, when executed, perform the method of cruising in the first aspect or the second aspect.
The method, the device, the equipment and the storage medium for patrolling lessons provided by the embodiment of the disclosure can realize the following technical effects:
when a user performs online class patrol through a client accessing a class patrol system of a school, before the client transmits a pull stream request to an intranet class patrol server or an extranet class patrol server, the client transmits an address access request to an IP address service deployed on the extranet, and the IP address service responds to the address access request transmitted by the client and feeds back an outlet IP address of the client to the client. When the client sends a pull stream request to the intranet class patrol server or the extranet class patrol server, the pull stream request carries an outlet IP address of the client, so that after the intranet class patrol server or the extranet class patrol server receives the pull stream request, the position information of the client can be judged based on the outlet IP address corresponding to the client, namely whether the client is in the intranet or the extranet is judged, and the pull stream address is fed back to the client according to the position information of the client. Specifically, when the client is in the intranet, according to the video identifier of the target video stream carried in the stream pulling request, the intranet stream pulling address of the target video stream can be fed back to the client, and the client can directly access the intranet class patrol server based on the intranet stream pulling address and pull the target video stream from the intranet class patrol server. And under the condition that the client is in the external network, according to the video identification of the target video stream carried in the stream pulling request, the external network stream pulling address of the target video stream can be fed back to the client, and the client can access an external network class patrol server and pull the target video stream through the external network class patrol server based on the external network stream pulling address. In this way, in the embodiment of the disclosure, when a user accesses the class system of the school to perform online class through the client, the class server can judge the position information of the client, so that the client in the external network pulls the video through the external network class server, and the client in the internal network of the school pulls the video directly at the internal network class server, thereby realizing the hybrid class patrol of the external network and the internal network of the school. Therefore, the flexibility of online tour-by-tour is improved. And moreover, the client side of the intranet in the school directly draws the video through the intranet class patrol server, so that the uplink bandwidth of the school is not required to be additionally occupied, the flow cost is reduced, and the online class patrol cost is further reduced.
The foregoing general description and the following description are exemplary and explanatory only and are not restrictive of the application.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which like reference numerals refer to similar elements, and in which:
fig. 1 is a schematic diagram of a class tour system according to an embodiment of the present disclosure;
FIG. 2 is an interaction diagram of a method of cruising lessons provided in an embodiment of the present disclosure;
FIG. 3 is an interaction diagram of another method of cruising lessons provided in an embodiment of the present disclosure;
fig. 4 is a schematic view of a tour-class device according to an embodiment of the present disclosure;
fig. 5 is a schematic view of another class tour apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of an electronic device provided in an embodiment of the disclosure.
Detailed Description
So that the manner in which the features and techniques of the disclosed embodiments can be understood in more detail, a more particular description of the embodiments of the disclosure, briefly summarized below, may be had by reference to the appended drawings, which are not intended to be limiting of the embodiments of the disclosure. In the following description of the technology, for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the disclosed embodiments. However, one or more embodiments may still be practiced without these details. In other instances, well-known structures and devices may be shown simplified in order to simplify the drawing.
The terms first, second and the like in the description and in the claims of the embodiments of the disclosure and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe embodiments of the present disclosure. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
The term "plurality" means two or more, unless otherwise indicated.
In the embodiment of the present disclosure, the character "/" indicates that the front and rear objects are an or relationship. For example, A/B represents: a or B.
The term "and/or" is an associative relationship that describes an object, meaning that there may be three relationships. For example, a and/or B, represent: a or B, or, A and B.
The term "corresponding" may refer to an association or binding relationship, and the correspondence between a and B refers to an association or binding relationship between a and B.
Schools establish a course system for standardizing the class teaching order and the teaching behaviors of teachers. Schools generally adopt an online class patrol mode to supervise classroom teaching so as to establish good class order and ensure teaching quality. On-line tour class is to deploy audio and video acquisition equipment (such as a camera and a microphone) in a classroom, and acquire the teaching process of a teacher in real time to form videos. The teacher of school educational administration department can be through the customer end, and the video of teacher's teaching in the system of patrolling and broadcasting lessons is looked over at the unscheduled, through the video of teacher's teaching, can know teacher's teaching condition to evaluate teacher's teaching quality, can also give the teaching instruction to teacher's teaching condition, in order to promote teaching quality and classroom teaching effect.
At present, the class system of the school only supports the internal network class or the external network class of the school under the limit of cost and technology. Namely, the system for the course patrol of the school only supports the online course patrol of the users in the inner network of the school through the client, or all the users have to visit the inner network of the school through the outer network to carry out the online course patrol.
However, in the case that the class patrol system of the school only supports the intranet class patrol, the user in the extranet does not have the authority to access the intranet of the school, and cannot carry out online class patrol through the client, so that the class patrol mode is inflexible. In the case that the system for patrolling lessons in the school only supports the outer network for patrolling lessons, both the user in the outer network and the user in the inner network of the school (e.g. the teacher at the school educational administration place) need to visit the inner network of the school through the outer network for patrolling lessons. Therefore, when a user in the school intranet views teaching videos of teachers through the client, the video streams need to be uploaded to the extranet environment, and the client pulls the video streams from the extranet environment for viewing. The uplink bandwidth of the school is additionally occupied, and higher flow expense is generated, so that the online tour cost is correspondingly increased.
In view of this, the embodiments of the present disclosure provide a method, an apparatus, a device, and a storage medium for course patrol, where an extranet course patrol server and an intranet course patrol server are deployed in a course patrol system of a school. The intranet class patrol server is used for caching live video streams of all classrooms, and each live video stream is correspondingly provided with a video identifier. The intranet class-patrol server can push the cached video stream to the external network class-patrol server, or the external network class-patrol server can pull the video stream from the intranet class-patrol server. The foreign network tour server provides a pull stream service for the users of the foreign network. For a user of the external network, a client can acquire a required video stream from an external network class-patrol server; for the users of the intranet, the client can directly acquire the required video stream from the intranet class patrol server. Therefore, the course patrol system realizes the hybrid course patrol of the outer net and the school inner net, and improves the flexibility of online course patrol. And moreover, the client side of the intranet of the school can directly pull the target video from the intranet class patrol server, so that the uplink bandwidth of the school is not required to be additionally occupied, the flow cost is reduced, and the online class patrol cost is further reduced.
Referring to fig. 1, an embodiment of the present disclosure provides a course patrol system to which a course patrol method is applied, where the course patrol system includes an IP address service 11 deployed on an external network, a client 12, an internal network course patrol server 13, and an external network course patrol server 14. Wherein:
in the embodiment of the present disclosure, the IP address service 11 may be a cloud service, a service deployed on the extranet tour server 14, or a server cluster additionally configured in the extranet. The IP address service 11 establishes network connections with the client 12, the intranet class server 13, and the extranet class server 14, respectively.
In the embodiment of the present disclosure, the client 12 may be a client a deployed in an external network or a client B deployed in an internal network. The client 12 establishes network connections with the IP address service 11, the intranet patrol server 13, and the extranet patrol server 14, respectively. Client 12 may be a web client running a web browser. After a user logs in the lesson-taking system through a web browser operated by the client 12, the client 12 displays online lesson-taking links corresponding to each classroom in the school, and the user clicks the online lesson-taking link of a classroom, so that the client 12 plays teaching videos of the classroom.
In the embodiment of the disclosure, the intranet class patrol server 13 is a streaming media server deployed in the intranet, and the intranet class patrol server 13 establishes network connection with the IP address service 11, the client 12 and the external network class patrol server 14 respectively. Video capture devices (e.g., cameras and microphones) are deployed in each classroom of the school and establish a network connection with an intranet lecture server 13 in the lecture system. The teaching video collected by the video collecting device is cached in the intranet course patrol server 13. In addition, in order to distinguish teaching videos of various classrooms, each teaching video is also bound with a unique video identification. The video identification of each teaching video can be represented by the room number and the floor of a classroom. For example, for a teaching video in floor 3, floor 4, 301 classroom, the corresponding video identification may be 34301. Of course, since the IDs of the video capturing devices configured in different teachers are different, the video identifier corresponding to the teaching video in each classroom may also be the ID of the video capturing device. The representation of the video identifier may also be other ways that can be thought of by those skilled in the art, and the embodiments of the present disclosure are not limited in this regard. In addition, in the embodiment of the disclosure, the video identifier corresponding to the teaching video in each classroom has a unique corresponding relationship with the pull stream address of the teaching video, so that the client 12 can be ensured to pull the corresponding teaching video based on the pull stream address, and the pull stream abnormality is avoided.
In the embodiment of the present disclosure, the extranet tour server 14 is a streaming media server deployed on the extranet, and is used to provide a streaming service for the client 12 located on the extranet.
In the embodiment of the present disclosure, the IP address service 11, the intranet class server 13, and the extranet class server 14 are all configured with reverse proxy services. In this way, the IP address service 11, the intranet lecture server 13, or the extranet lecture server 14 can acquire the source IP address of the client 12 when receiving the request transmitted from the client 12.
Referring to fig. 2, an embodiment of the present disclosure provides a method for teaching, which is applied to the teaching system of the above embodiment, and the method is described from the perspective of interaction of an IP address service, a client, an intranet teaching server and an extranet teaching server in the teaching system. The method comprises the following steps:
and S20, sending state information to the IP address service when the intranet patrol server is networked.
S21, the IP address service analyzes the state information to obtain an outlet IP address corresponding to the intranet class-patrol server, and records the outlet IP address corresponding to the intranet class-patrol server to the white list.
S22, when the user accesses the tour system through the client, the client sends an address access request to the IP address service.
S23, the IP address service responds to the address access request and feeds back the outlet IP address corresponding to the client.
S24, the client sends a stream pulling request to the foreign network tour server. The streaming request carries an exit IP address corresponding to the client and a video identifier of the target video stream.
S25, the extranet tour server determines the position information of the client according to the corresponding exit IP address of the client. The step S25 includes the following four sub-steps:
s251, the extranet tour server acquires a white list from the IP address service.
S252, the extranet tour server judges whether an exit IP address corresponding to the client exists in the white list.
And S253, if the client exists, the extranet tour server determines that the client is located in the intranet.
And S254, if the client is not in the foreign network, the foreign network tour server determines that the client is positioned in the foreign network.
S26, when the client is located in the intranet, the extranet tour server feeds back an intranet stream pulling address corresponding to the target video stream to the client.
S27, the client pulls the target video stream from the intranet class server based on the intranet stream pulling address. The step S27 includes the following two sub-steps:
s271, the client sends a request for pulling the target video stream to the intranet class server based on the intranet stream pulling address.
S272, the intranet class server responds to the request for pulling the target video stream and transmits the target video stream to the client.
And S28, when the client is positioned on the external network, the external network tour server feeds back an external network pull stream address corresponding to the target video stream to the client.
And S29, the client pulls the target video stream from the extranet tour server based on the extranet pull stream address. Step S29 includes the following three sub-steps:
s291, the client sends a request for pulling the target video stream to the external network tour server based on the external network pull stream address.
S292, the extranet lesson-patrol server pulls the target video stream from the intranet lesson-patrol server in response to the request for pulling the target video stream.
And S293, the extranet tour server transmits the target video stream to the client.
When the client accesses the class system of the school to carry out online class, the client sends an address access request to the IP address service deployed on the external network before sending a pull stream request to the external network class server, and the IP address service responds to the address access request sent by the client and feeds back the outlet IP address of the client to the client. When the client sends a pull stream request to the external network course patrol server, the pull stream request carries an outlet IP address of the client, so that after the external network course patrol server receives the pull stream request, the position information of the client can be judged based on the outlet IP address corresponding to the client, namely whether the client is in an internal network or an external network is judged, and the pull stream address is fed back to the client according to the position information of the client. Specifically, when the client is in the intranet, according to the video identifier of the target video stream carried in the stream pulling request, the intranet stream pulling address of the target video stream can be fed back to the client, and the client can directly access the intranet class patrol server based on the intranet stream pulling address and pull the target video stream from the intranet class patrol server. And under the condition that the client is in the external network, according to the video identification of the target video stream carried in the stream pulling request, the external network stream pulling address of the target video stream can be fed back to the client, and the client can access an external network class patrol server and pull the target video stream through the external network class patrol server based on the external network stream pulling address. In this way, in the embodiment of the disclosure, when a user accesses the lesson system of the school to perform online lesson through the client, the external network lesson-patrol server can judge the position information of the client, so that the client in the external network pulls the video through the external network lesson-patrol server, and the client in the internal network of the school pulls the video directly at the internal network lesson-patrol server, thereby realizing the hybrid lesson patrol of the external network and the internal network of the school. Therefore, the flexibility of online tour-by-tour is improved. And moreover, the client side of the intranet in the school directly draws the video through the intranet class patrol server, so that the uplink bandwidth of the school is not required to be additionally occupied, the flow cost is reduced, and the online class patrol cost is further reduced.
In the steps S20 and S21, since the client in the school intranet and the intranet class server deployed in the school intranet are in the same intranet under the condition that the client is in the school intranet, the exit IP address corresponding to the intranet class server is the same as the exit IP address corresponding to the client in the intranet. Thus, when the deployment condition of the intranet class-patrol server in the intranet of the school changes, the intranet class-patrol server sends state information to the IP address service under the networking condition, the IP address service obtains an outlet IP address corresponding to the intranet class-patrol service by analyzing the state information, and records the outlet IP address corresponding to the intranet class-patrol server to the white list. Therefore, the automatic construction and maintenance of the white list are realized, and the labor cost for manually maintaining the white list is saved.
In the above steps S22 and S23, for the client in the external network, the exit IP address corresponding to the client is actually the source IP address of the client. For the client in the intranet, because the IP address server is deployed in the extranet environment, when the client sends an address access request to the IP address service, the IP address service is actually sent to the IP address service based on the exit IP address corresponding to the client in the intranet, and the IP address service directly acquires the exit IP address of the client by using the reverse proxy service and feeds back the exit IP address to the client.
In the steps S24 to S26, and in the step S28, after the IP address service feeds back the corresponding exit IP address to the client, the client sends a pull request to the extranet lesson patrol server, where the pull request carries the exit IP address corresponding to the client and the video identifier of the target video stream. Because the exit IP address corresponding to the school intranet recorded in the white list, the extranet tour server can determine the position information of the client by judging whether the exit IP address corresponding to the client exists in the white list. When the exit IP address of the client does not exist in the white list, the client is a pull stream request sent to the external network class patrol server through the external network, the client is determined to be located in the external network, the external network class patrol server can determine which target video stream is needed by the client through the video identification of the target video stream, the external network pull stream address of the target video stream is fed back to the client, and the client can access the external network class patrol server to pull the target video stream based on the external network pull stream address. When the exit IP address of the client exists in the white list, the client is a pull stream request sent to the external network class patrol server in the internal network of the school, the client is determined to be located in the internal network, the external network class patrol server can also determine which target video stream is needed by the client through the video identification of the target video stream, the internal network pull stream address of the target video stream is fed back to the client, and the client can access the internal network class patrol server to pull the target video stream based on the internal network pull stream address. Therefore, the client in the external network is enabled to carry out online patrol through the external network patrol server, and the client in the internal network is enabled to carry out online patrol through the internal network patrol server, so that the hybrid patrol of the internal network and the external network is enabled, and the flexibility of online patrol is improved.
In the step S27, the client in the intranet may pull the target video cached by the intranet class server based on the intranet streaming address. Therefore, when the intranet class patrol server in the intranet transmits the target video stream to the client, the uplink bandwidth of the school is not required to be occupied additionally. Therefore, the flow rate cost is reduced, and the online course patrol cost is further reduced.
In the step S29, since the client in the external network does not have the authority to access the intranet class server, the client in the external network may access the external network class server based on the external network pull stream address, and indirectly pull the video stream from the intranet class server through the external network class server. Therefore, the scheme that the user in the extranet accesses the intranet of the school by using the client to carry out online patrol is realized, and the flexibility of online patrol is improved.
Referring to fig. 3, an embodiment of the present disclosure provides another method for teaching, which is applied to the teaching system of the above embodiment, and the method is described from the perspective of interaction of an IP address service, a client, an intranet teaching server and an extranet teaching server in the teaching system. The method comprises the following steps:
s31, in the case that the user accesses the tour system through the client, the client transmits an address access request to the IP address service.
S32, the IP address service responds to the address access request and feeds back the outlet IP address corresponding to the client.
S33, the client sends a stream pulling request to the intranet class patrol server. The streaming request carries an exit IP address corresponding to the client and a video identifier of the target video stream.
S34, the intranet course patrol server determines the position information of the client according to the corresponding exit IP address of the client. The step S34 includes the following four sub-steps:
s341, the intranet class-patrol server acquires the source IP address of the client carried in the streaming request.
S342, the intranet course patrol server judges whether the source IP address of the client is the same as the corresponding outlet IP address of the client.
S343, if the client is the same, determining that the client is located in the external network.
And S344, if the client is different, determining that the client is located in the intranet.
And S35, feeding back an external network streaming address corresponding to the video identification of the target video to the client by the intranet class server under the condition that the client is positioned on the external network.
S36, the client pulls the target video stream from the extranet tour server based on the extranet pull stream address. The step S36 includes the following three sub-steps:
s361, the client sends a request for pulling the target video stream to the external network tour server based on the external network pull stream address.
S362, the extranet lesson-patrol server pulls the target video stream from the intranet lesson-patrol server in response to the request for pulling the target video stream.
And S363, the extranet tour server transmits the target video stream to the client.
S37, when the client is located in the intranet, the intranet class patrol server feeds back an intranet stream pulling address corresponding to the video identification of the target video stream to the client.
S38, the client pulls the target video stream from the intranet class server based on the intranet stream pulling address. The step S38 includes the following two sub-steps:
s381, the client side sends a request for pulling the target video stream to the intranet class server based on the intranet stream pulling address.
S382, the intranet class server responds to the request for pulling the target video stream and transmits the target video stream to the client.
In the embodiment of the disclosure, when a user performs online class routing through a client accessing a class routing system of a school, before sending a pull stream request to an intranet class routing server, the client sends an address access request to an IP address service deployed on an extranet, and after responding to the address access request sent by the client, the IP address service feeds back an outlet IP address of the client to the client. When the client sends a pull stream request to the intranet course patrol server, the pull stream request carries an outlet IP address of the client, so that after the intranet course patrol server receives the pull stream request, the position information of the client can be judged based on the outlet IP address corresponding to the client, namely whether the client is in the intranet or in the extranet is judged, and the pull stream address is fed back to the client according to the position information of the client. Specifically, when the client is in the intranet, according to the video identifier of the target video stream carried in the stream pulling request, the intranet stream pulling address of the target video stream can be fed back to the client, and the client can directly access the intranet class patrol server based on the intranet stream pulling address and pull the target video stream from the intranet class patrol server. And under the condition that the client is in the external network, according to the video identification of the target video stream carried in the stream pulling request, the external network stream pulling address of the target video stream can be fed back to the client, and the client can access an external network class patrol server and pull the target video stream through the external network class patrol server based on the external network stream pulling address. Thus, in the embodiment of the disclosure, when a user accesses the lesson patrol system of the school through the client to carry out online lesson patrol, the intranet lesson patrol server can judge the position information of the client, so that the client in the external network pulls the video through the external network lesson patrol server, and the client in the school intranet directly pulls the video at the intranet lesson patrol server, thereby realizing the hybrid lesson patrol of the external network and the school intranet. Therefore, the flexibility of online tour-by-tour is improved. And moreover, the client side of the intranet in the school directly draws the video through the intranet class patrol server, so that the uplink bandwidth of the school is not required to be additionally occupied, the flow cost is reduced, and the online class patrol cost is further reduced.
In the above steps S31 and S32, for the client in the external network, the exit IP address corresponding to the client is actually the source IP address of the client. For the client in the intranet, because the IP address server is deployed in the extranet environment, when the client sends an address access request to the IP address service, the IP address service is actually sent to the IP address service based on the exit IP address corresponding to the client in the intranet, and the IP address service directly acquires the exit IP address of the client by using the reverse proxy service and feeds back the exit IP address to the client.
In the steps S33 to S35, and in the step S37, after the IP address service feeds back the corresponding exit IP address to the client, the client sends a pull request to the intranet class-patrol server, where the pull request carries the exit IP address corresponding to the client, the video identifier of the target video stream, and the source IP address of the client. Assuming that the client is located in the external network, the exit IP address corresponding to the client and the source IP address of the client are actually the same. Under the condition that the client is located in the intranet, the outlet IP address corresponding to the client is actually an external network IP address adopted when the intranet in the school accesses the outside, the source IP address of the client is actually an intranet IP address of the client in the intranet in the school, and obviously, the outlet IP address corresponding to the client is not identical with the source IP address of the client. In this way, the intranet course patrol server can determine the position information of the client by judging whether the source IP address of the client is the same as the corresponding outlet IP address of the client. When the client is located on the external network, the external network course patrol server can determine which target video stream is needed by the client through the video identification of the target video stream, and feed back an external network stream pulling address of the target video stream to the client, and the client can access the external network course patrol server to pull the target video stream based on the external network stream pulling address. When the client is located in the intranet, the extranet lesson patrol server can also determine which target video stream is needed by the client through the video identification of the target video stream, and feed back an intranet drawing address of the target video stream to the client, and the client can access the intranet lesson patrol server to draw the target video stream based on the intranet drawing address. Therefore, the online patrol of the client in the external network through the external network patrol server is realized, and the online patrol of the client in the internal network through the internal network patrol server is realized. The method realizes the hybrid course patrol of the internal and external networks, and improves the flexibility of course patrol on line.
In the step S36, since the client in the external network does not have the authority to access the intranet class server, the client in the external network may access the external network class server based on the external network pull stream address, and indirectly pull the video stream from the intranet class server through the external network class server. Therefore, the scheme that the user in the extranet accesses the intranet of the school by using the client to carry out online patrol is realized, and the flexibility of online patrol is improved.
In the step S38, the client in the intranet may pull the target video stream cached by the intranet class server based on the intranet pull address. Therefore, when the intranet class patrol server in the intranet transmits the target video stream to the client, the uplink bandwidth of the school is not required to be occupied additionally. Therefore, the flow rate cost is reduced, and the online course patrol cost is further reduced.
As shown in fig. 4, an embodiment of the present disclosure provides a lecture apparatus integrated with a lecture server of the lecture system in the above embodiment, which includes a request receiving module 401, a location determining module 402, and an address feedback module 403. Wherein:
a request receiving module 401, configured to receive a pull stream request sent by a client; wherein: the streaming request carries an exit IP address corresponding to the client and a video identifier of the target video stream, and the exit IP address corresponding to the client sends an address access request to the IP address service before the client sends the streaming request to the course patrol server, so that the IP address service responds to the address access request and feeds back to the client;
A location determining module 402, configured to determine location information of the client according to the exit IP address corresponding to the client;
the address feedback module 403 is configured to, when the location information indicates that the client is located on the external network, feed back an external network pull stream address corresponding to the video identifier of the target video stream to the client, so that the client pulls the target video stream from the external network tour server based on the external network pull stream address; or feeding back an intranet stream pulling address corresponding to the video identifier of the target video stream to the client under the condition that the position information indicates that the client is located in the intranet, so that the client pulls the target video stream from the intranet class patrol server by the intranet stream pulling address.
Optionally, the IP address service is configured to receive the state information sent by the intranet class server under the networking condition, parse the exit IP address corresponding to the intranet class server carried in the state information, and record the exit IP address corresponding to the intranet class server to the whitelist; accordingly, after the extranet tour server receives the pull stream request sent by the client, the location determining module 402 is specifically configured to: acquiring a white list from an IP address service; judging whether an exit IP address corresponding to the client exists in the white list; if yes, determining that the client is located in the intranet; if not, the client is determined to be located in the external network.
Optionally, after the intranet class-patrol server receives the pull-stream request sent by the client, the location determining module 402 is specifically configured to: acquiring a source IP address of a client carried in a streaming request; judging whether the source IP address of the client is the same as the corresponding outlet IP address of the client; if the client is the same, determining that the client is located in the intranet; if the client is different, the client is determined to be located in the external network.
The course patrol device provided in the embodiment of the present disclosure may perform the action of the course patrol server in the above embodiment, and its implementation principle and technical effect are similar, and will not be described in detail herein.
Referring to fig. 5, an embodiment of the disclosure provides another class-patrol apparatus, which is integrated in the client of the class-patrol system in the above embodiment, and includes an address request module 501, a request sending module 502, and a video pulling module 503, where:
an address request module 501, configured to send an address access request to an IP address service, so that the IP address service responds to the address access request and feeds back an egress IP address corresponding to the client;
a request sending module 502, configured to send a pull stream request to a course server; wherein: the pull stream request carries an exit IP address corresponding to the client and a video identifier of the target video stream, so that the patrol server determines the position information of the client according to the exit IP address corresponding to the client, and feeds back the pull stream address of the external network corresponding to the video identifier of the target video stream to the client when the position information indicates that the client is located in the external network; or, when the position information indicates that the client is located in the intranet, the tour server feeds back an intranet pull address corresponding to the video identification of the target video stream to the client;
A video pulling module 503, configured to pull the target video stream from the external network tour server based on the external network pull stream address; or pulling the target video stream from the intranet class server based on the intranet stream pulling address.
Optionally, when the client receives the external network pull stream address fed back by the lecture server, the video pull module 503 is specifically configured to:
based on the external network pull stream address, a request for pulling the target video stream is sent to an external network tour server, so that the external network tour server responds to the request for pulling the target video stream, the target video stream is pulled from the internal network tour server, and the target video stream is transmitted to the client.
Optionally, when the client receives the intranet pull stream address fed back by the lecture server, the video pull module 503 is specifically configured to:
based on the intranet pulling address, a request for pulling the target video stream is sent to the intranet patrol server, so that the intranet patrol server responds to the request for pulling the target video stream and transmits the target video stream to the client.
The course patrol device provided in the embodiment of the present disclosure may perform the actions of the client in the above embodiment, and its implementation principle and technical effects are similar, and will not be described in detail herein.
As shown in connection with fig. 6, an embodiment of the present disclosure provides an electronic device 600 including a processor (processor) 100 and a memory (memory) 101. Optionally, the electronic device 600 may also include a communication interface (Communication Interface) 102 and a bus 103. The processor 100, the communication interface 102, and the memory 101 may communicate with each other via the bus 103. The communication interface 102 may be used for information transfer. The processor 100 may call logic instructions in the memory 101 to perform the method of patrol in the above-described embodiment.
Further, the logic instructions in the memory 101 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 101 is a computer readable storage medium that can be used to store a software program, a computer executable program, such as program instructions/modules corresponding to the methods in the embodiments of the present disclosure. The processor 100 executes the functional application and the data processing by executing the program instructions/modules stored in the memory 101, i.e., the method of patrol in the above-described embodiment.
The memory 101 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created according to the use of the terminal device, etc. Further, the memory 101 may include a high-speed random access memory, and may also include a nonvolatile memory.
The disclosed embodiments provide a storage medium storing computer-executable instructions configured to perform the method of cruising in the above embodiments.
The storage medium may be a transitory computer readable storage medium or a non-transitory computer readable storage medium.
Embodiments of the present disclosure may be embodied in a software product stored on a storage medium, including one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of a method according to embodiments of the present disclosure. And the aforementioned storage medium may be a non-transitory storage medium including: a plurality of media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or a transitory storage medium.
The above description and the drawings illustrate embodiments of the disclosure sufficiently to enable those skilled in the art to practice them. Other embodiments may involve structural, logical, electrical, process, and other changes. The embodiments represent only possible variations. Individual components and functions are optional unless explicitly required, and the sequence of operations may vary. Portions and features of some embodiments may be included in, or substituted for, those of others. Moreover, the terminology used in the present application is for the purpose of describing embodiments only and is not intended to limit the claims. As used in the description of the embodiments and the claims, the singular forms "a," "an," and "the" (the) are intended to include the plural forms as well, unless the context clearly indicates otherwise. Similarly, the term "and/or" as used in this application is meant to encompass any and all possible combinations of one or more of the associated listed. Furthermore, when used in this application, the terms "comprises," "comprising," and/or "includes," and variations thereof, mean that the stated features, integers, steps, operations, elements, and/or components are present, but that the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof is not precluded. Without further limitation, an element defined by the phrase "comprising one …" does not exclude the presence of other like elements in a process, method or apparatus comprising such elements. In this context, each embodiment may be described with emphasis on the differences from the other embodiments, and the same similar parts between the various embodiments may be referred to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method sections disclosed in the embodiments, the description of the method sections may be referred to for relevance.
Those of skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. The skilled artisan may use different methods for each particular application to achieve the described functionality, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the embodiments disclosed herein, the disclosed methods, articles of manufacture (including but not limited to devices, apparatuses, etc.) may be practiced in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units may be merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form. The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to implement the present embodiment. In addition, each functional unit in the embodiments of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. In the description corresponding to the flowcharts and block diagrams in the figures, operations or steps corresponding to different blocks may also occur in different orders than that disclosed in the description, and sometimes no specific order exists between different operations or steps. For example, two consecutive operations or steps may actually be performed substantially in parallel, they may sometimes be performed in reverse order, which may be dependent on the functions involved. Each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Claims (10)
1. The method for patrolling the lessons is characterized by being applied to a patrolling server in a patrolling system, wherein the patrolling system further comprises a client and an IP address service deployed on an external network; the course patrol server comprises an intranet course patrol server and an extranet course patrol server; the intranet class-patrol server is cached with live video streams of each classroom, and each live video stream is correspondingly provided with a video identifier; the method comprises the following steps:
receiving a stream pulling request sent by a client; wherein: the streaming request carries an exit IP address corresponding to the client and a video identifier of the target video stream, and the exit IP address corresponding to the client sends an address access request to the IP address service before the client sends the streaming request to the course patrol server, so that the IP address service responds to the address access request and feeds back to the client;
determining the position information of the client according to the corresponding exit IP address of the client;
feeding back an external network stream pulling address corresponding to the video identification of the target video stream to the client under the condition that the position information indicates that the client is located on the external network, so that the client pulls the target video stream from the external network course patrol server based on the external network stream pulling address; or feeding back an intranet stream pulling address corresponding to the video identifier of the target video stream to the client under the condition that the position information indicates that the client is located in the intranet, so that the client pulls the target video stream from the intranet class patrol server by the intranet stream pulling address.
2. The method of claim 1, wherein the IP address service is configured to receive status information sent by the intranet class server in the case of networking, parse out an exit IP address corresponding to the intranet class server carried in the status information, and record the exit IP address corresponding to the intranet class server to the whitelist; correspondingly, after the external network lesson-patrol server receives the pull-stream request sent by the client, the external network lesson-patrol server determines the position information of the client according to the outlet IP address corresponding to the client, and the method comprises the following steps:
acquiring a white list from an IP address service;
judging whether an exit IP address corresponding to the client exists in the white list;
if yes, determining that the client is located in the intranet; if not, the client is determined to be located in the external network.
3. The method of claim 1, wherein after the intranet class-patrol server receives the pull-stream request sent by the client, the intranet class-patrol server determines the location information of the client according to the exit IP address corresponding to the client, and the method comprises:
acquiring a source IP address of a client carried in a streaming request;
judging whether the source IP address of the client is the same as the corresponding outlet IP address of the client;
If the client is the same, determining that the client is located in the intranet; if the client is different, the client is determined to be located in the external network.
4. The method for patrolling the lessons is characterized by being applied to a client in a patrolling system, wherein the patrolling system further comprises a patrolling server and an IP address service deployed on an external network; the course patrol server comprises an intranet course patrol server and an extranet course patrol server; the intranet class-patrol server is cached with live video streams of each classroom, and each live video stream is correspondingly provided with a video identifier; the method comprises the following steps:
sending an address access request to the IP address service so that the IP address service responds to the address access request and feeds back an outlet IP address corresponding to the client;
sending a pull stream request to a course patrol server; wherein: the pull stream request carries an exit IP address corresponding to the client and a video identifier of the target video stream, so that the patrol server determines the position information of the client according to the exit IP address corresponding to the client, and feeds back the pull stream address of the external network corresponding to the video identifier of the target video stream to the client when the position information indicates that the client is located in the external network; or, when the position information indicates that the client is located in the intranet, the tour server feeds back an intranet pull address corresponding to the video identification of the target video stream to the client;
Pulling a target video stream from an external network tour server based on the external network pull stream address; or pulling the target video stream from the intranet class server based on the intranet stream pulling address.
5. The method of claim 4, wherein pulling the target video stream from the extranet tour server based on the extranet pull address comprises:
based on the external network pull stream address, a request for pulling the target video stream is sent to an external network tour server, so that the external network tour server responds to the request for pulling the target video stream, the target video stream is pulled from the internal network tour server, and the target video stream is transmitted to the client.
6. The method of claim 4, wherein pulling the target video stream from the intranet class server based on the intranet pull stream address comprises:
based on the intranet pulling address, a request for pulling the target video stream is sent to the intranet patrol server, so that the intranet patrol server responds to the request for pulling the target video stream and transmits the target video stream to the client.
7. The course patrol device is characterized by comprising a course patrol server integrated in a course patrol system, wherein the course patrol system further comprises a client and an IP address service deployed on an external network; the course patrol server comprises an intranet course patrol server and an extranet course patrol server; the intranet class-patrol server is cached with live video streams of each classroom, and each live video stream is correspondingly provided with a video identifier; the device comprises:
The request receiving module is used for receiving a stream pulling request sent by the client; wherein: the streaming request carries an exit IP address corresponding to the client and a video identifier of the target video stream, and the exit IP address corresponding to the client sends an address access request to the IP address service before the client sends the streaming request to the course patrol server, so that the IP address service responds to the address access request and feeds back to the client;
the position determining module is used for determining the position information of the client according to the corresponding exit IP address of the client;
the address feedback module is used for feeding back an external network stream pulling address corresponding to the video identification of the target video stream to the client under the condition that the position information indicates that the client is located on the external network, so that the client pulls the target video stream from the external network course patrol server based on the external network stream pulling address; or feeding back an intranet stream pulling address corresponding to the video identifier of the target video stream to the client under the condition that the position information indicates that the client is located in the intranet, so that the client pulls the target video stream from the intranet class patrol server by the intranet stream pulling address.
8. The course patrol device is characterized by being a client integrated in a course patrol system, wherein the course patrol system further comprises a course patrol server and an IP address service deployed on an external network; the course patrol server comprises an intranet course patrol server and an extranet course patrol server; the intranet class-patrol server is cached with live video streams of each classroom, and each live video stream is correspondingly provided with a video identifier; the device comprises:
The address request module is used for sending an address access request to the IP address service so that the IP address service responds to the address access request and feeds back an outlet IP address corresponding to the client;
the request sending module is used for sending a pull stream request to the course patrol server; wherein: the pull stream request carries an exit IP address corresponding to the client and a video identifier of the target video stream, so that the patrol server determines the position information of the client according to the exit IP address corresponding to the client, and feeds back the pull stream address of the external network corresponding to the video identifier of the target video stream to the client when the position information indicates that the client is located in the external network; or, when the position information indicates that the client is located in the intranet, the tour server feeds back an intranet pull address corresponding to the video identification of the target video stream to the client;
the video pulling module is used for pulling a target video stream from the external network tour server based on the external network streaming address; or pulling the target video stream from the intranet class server based on the intranet stream pulling address.
9. An electronic device comprising a processor and a memory storing program instructions, wherein the processor is configured to perform the method of cruising according to any of claims 1 to 6 when the program instructions are run.
10. A storage medium storing program instructions which, when executed, perform the method of cruising according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410036691.4A CN117896538A (en) | 2024-01-09 | 2024-01-09 | Method and device for patrolling course, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410036691.4A CN117896538A (en) | 2024-01-09 | 2024-01-09 | Method and device for patrolling course, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117896538A true CN117896538A (en) | 2024-04-16 |
Family
ID=90643857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410036691.4A Pending CN117896538A (en) | 2024-01-09 | 2024-01-09 | Method and device for patrolling course, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117896538A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841484A (en) * | 2010-05-12 | 2010-09-22 | 中国科学院计算技术研究所 | Method and system for realizing NAT traversal in structured P2P network |
CN103685583A (en) * | 2012-09-05 | 2014-03-26 | 阿里巴巴集团控股有限公司 | Method and system for resolving domain names |
CN107426502A (en) * | 2017-09-19 | 2017-12-01 | 北京小米移动软件有限公司 | Image pickup method and device, electronic equipment |
CN110602445A (en) * | 2019-08-13 | 2019-12-20 | 万翼科技有限公司 | Video monitoring data acquisition method and device, computer equipment and storage medium |
CN110913038A (en) * | 2019-12-27 | 2020-03-24 | 中国平安人寿保险股份有限公司 | IP address determination method, device, server and computer readable storage medium |
CN113259626A (en) * | 2021-04-30 | 2021-08-13 | 深圳市虹鹏能源科技有限责任公司 | Camera video stream acquisition system and method |
CN114584808A (en) * | 2022-03-01 | 2022-06-03 | 北京字节跳动网络技术有限公司 | Video stream acquisition method, device, system, equipment and medium |
CN115175003A (en) * | 2022-07-11 | 2022-10-11 | 聚好看科技股份有限公司 | Media asset playing method, display device, electronic device and server |
CN116185954A (en) * | 2022-12-29 | 2023-05-30 | 中国电信股份有限公司 | File access method and device, processor and electronic equipment |
-
2024
- 2024-01-09 CN CN202410036691.4A patent/CN117896538A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101841484A (en) * | 2010-05-12 | 2010-09-22 | 中国科学院计算技术研究所 | Method and system for realizing NAT traversal in structured P2P network |
CN103685583A (en) * | 2012-09-05 | 2014-03-26 | 阿里巴巴集团控股有限公司 | Method and system for resolving domain names |
CN107426502A (en) * | 2017-09-19 | 2017-12-01 | 北京小米移动软件有限公司 | Image pickup method and device, electronic equipment |
CN110602445A (en) * | 2019-08-13 | 2019-12-20 | 万翼科技有限公司 | Video monitoring data acquisition method and device, computer equipment and storage medium |
CN110913038A (en) * | 2019-12-27 | 2020-03-24 | 中国平安人寿保险股份有限公司 | IP address determination method, device, server and computer readable storage medium |
CN113259626A (en) * | 2021-04-30 | 2021-08-13 | 深圳市虹鹏能源科技有限责任公司 | Camera video stream acquisition system and method |
CN114584808A (en) * | 2022-03-01 | 2022-06-03 | 北京字节跳动网络技术有限公司 | Video stream acquisition method, device, system, equipment and medium |
CN115175003A (en) * | 2022-07-11 | 2022-10-11 | 聚好看科技股份有限公司 | Media asset playing method, display device, electronic device and server |
CN116185954A (en) * | 2022-12-29 | 2023-05-30 | 中国电信股份有限公司 | File access method and device, processor and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE69928222T2 (en) | Method and system for sending information | |
US6587870B2 (en) | Information sharing system, and information sharing system management apparatus and method | |
RU2219677C2 (en) | Device for video signal access and control through computer network including image correction | |
JP4363421B2 (en) | Monitoring system, monitoring system server and monitoring method | |
US6950119B2 (en) | Videoconference system, terminal equipment included therein and data delivery method | |
DE60119614T2 (en) | Help system for the maintenance of electronic equipment | |
CN101247361B (en) | Member dynamic information display system and method in user group | |
CN111277844B (en) | Live broadcasting system and equipment for teaching | |
US10516856B2 (en) | Network video recorder cluster and method of operation | |
CN113300955B (en) | Method, system and equipment for determining paths between nodes in content distribution network | |
JP2007028586A (en) | Interactive multimedia content production system | |
CN109461334A (en) | One kind being based on the online audio-video Question Log share system of interconnection architecture and method | |
CN104639903A (en) | Code scanning direct broadcasting wireless video monitoring system of mobile terminal | |
CN110769380A (en) | Video distribution method and device | |
CN101291263A (en) | Performance test system and method for content distributing network node | |
CN112367525A (en) | Online classroom video live broadcasting system and method based on classroom old equipment | |
CN109412886A (en) | A kind of distribution recording and broadcasting system and its communication check method, recorded broadcast control method | |
CN114339280B (en) | Multimedia information transmission method and device applied to network teaching | |
CN117896538A (en) | Method and device for patrolling course, equipment and storage medium | |
CN114092865A (en) | Prisoner supervision method and system based on neural network | |
CN106301989A (en) | IPTV service detection method and device | |
DE60320099T2 (en) | DEVICE AND METHOD FOR DISTRIBUTING STREAMED REAL-TIME INFORMATION BETWEEN CLIENTS | |
KR102491793B1 (en) | System and method for managing participants in video conferencing service in small groups | |
CN114449311A (en) | Network video exchange system and method based on high-efficiency video stream forwarding | |
JP2004241817A (en) | Image distribution system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |