Method and apparatus for playing media stream on web browser
First Claim
1. A media stream playing apparatus comprising at least one processor to implement:
- a transmission module configured to establish a communication connection at a transport layer level with a media service device;
a websocket module configured to establish a websocket connection with the media service device based on the communication connection, and transmit or receive websocket packets to or from the media service device while maintaining the websocket connection;
a streaming module configured to receive Real-time Transport Protocol (RTP) packets carried by the websocket packets; and
a media decoder configured to decode a media stream obtained from the RTP packets to reconstruct video for displaying through a web browser,wherein the websocket module is configured to, in response to receiving a Real Time Streaming Protocol (RTSP) command from the streaming module, transmit a description command to the media service device, and in response to receiving a subsequent RTSP command, transmit a setup command to the media service device.
5 Assignments
0 Petitions
Accused Products
Abstract
A media stream playing apparatus for receiving a media stream transmitted from a media service unit and playing the media stream on a web browser is provided. The media stream playing apparatus includes a transmission module configured to establish a communication connection at a transport layer level with the media service unit, a websocket module configured to establish a websocket connection with the media service unit via a handshake procedure based on the communication connection and transmit or receive websocket packets to or from the media service unit while maintaining the websocket connection, a streaming module configured to receive Real-time Transport Protocol (RTP) packets carried by the websocket packets, a media decoder configured to decode the media stream obtained from the RTP packets to reconstruct video, and an output device configured to display the reconstructed video on a screen by embedding the reconstructed video in the web browser.
-
Citations
23 Claims
-
1. A media stream playing apparatus comprising at least one processor to implement:
-
a transmission module configured to establish a communication connection at a transport layer level with a media service device; a websocket module configured to establish a websocket connection with the media service device based on the communication connection, and transmit or receive websocket packets to or from the media service device while maintaining the websocket connection; a streaming module configured to receive Real-time Transport Protocol (RTP) packets carried by the websocket packets; and a media decoder configured to decode a media stream obtained from the RTP packets to reconstruct video for displaying through a web browser, wherein the websocket module is configured to, in response to receiving a Real Time Streaming Protocol (RTSP) command from the streaming module, transmit a description command to the media service device, and in response to receiving a subsequent RTSP command, transmit a setup command to the media service device. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A media service device comprising at least one processor to implement:
-
a media server configured to convert a real-time live video or stored video into Real-time Transport Protocol (RTP) packets; and a web server configured to establish a connection with a media stream playing apparatus, and transmit the RTP packets over a websocket protocol to the media stream playing apparatus in response to a request from the media stream playing apparatus, wherein, prior to transmission of the RTP packets, a Real Time Streaming Protocol (RTSP) is set up between the media service device and the media stream playing apparatus, based on a websocket connection between the media service device and the media stream playing apparatus. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A media service method comprising:
-
converting a real-time live video or stored video into Real-time Transport Protocol (RTP) packets; establishing a connection with a media stream playing apparatus; and transmitting the RTP packets over a websocket protocol to the media stream playing apparatus in response to a request from the media stream playing apparatus, wherein, prior to the transmitting the RTP packets, the media service method further comprises performing a Real Time Streaming Protocol (RTSP) setup procedure with the media stream playing apparatus, based on a websocket connection with the media stream playing apparatus. - View Dependent Claims (21, 22, 23)
-
Specification