# US 2017/0289214 A1 · Method and apparatus for playing media stream on web browser

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0289214 A1
- Document ID: US20170289214A1
- Status: Published application
- Kind: A1
- Application number: 15/393,936
- Filed: 2016-12-29
- Published: 2017-10-05
- Earliest claimed: 2016-04-05
- Assignees: Hanwha Techwin Co., Ltd.
- Applicants: Hanwha Techwin Co., Ltd.
- Inventors: Sung Bong CHO; Sujith KUNHI RAMAN; Yogavanan MATHIVANAN; Tarak Ramgopal ANUMOLU; Venkateswara Rao ARAVAPALLI
- Web page: https://patentgrep.com/patent/US20170289214A1

## CPC

- H04L 65/4015: {where at least one of the additional parallel sessions is real time or time sensitive, e.g. white board sharing, collaboration or spawning of a subconference}
- H04L 65/1059: End-user terminal functionalities specially adapted for real-time communication
- H04L 65/61: for supporting one-way streaming services, e.g. Internet radio
- H04L 65/65: Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
- H04L 65/70: Media network packetisation
- H04L 65/764: {at the destination (reformatting of additional data in video clients H04N21/4355)}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 21/2187: Live feed
- H04N 21/6437: Real-time Transport Protocol [RTP]
- H04N 21/8173: {End-user applications, e.g. Web browser, game}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## 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.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

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.

### Claim 22 (depends on 21)

The media stream playing apparatus of claim 21, wherein the streaming module is further configured to transmit or receive Real Time Streaming Protocol (RTSP) packets for controlling transmission of the RTP packets to or from the media service device, and
wherein the communication connection established by the transmission module comprises a Transmission Control Protocol (TCP) connection.

### Claim 23 (depends on 21)

The media stream playing apparatus of claim 21, wherein the web browser supports an HTML5 standard.

### Claim 24 (depends on 21)

The media stream playing apparatus of claim 21, further comprising:
a video renderer configured to perform video processing on the reconstructed video to render the reconstructed video; and
an output device configured to display the rendered video through the web browser.

### Claim 25 (depends on 24)

The media stream playing apparatus of claim 24, wherein the streaming module and the media decoder are configured to be implemented by JavaScript without a plug-in program in the web browser.

### Claim 26 (depends on 25)

The media stream playing apparatus of claim 25, wherein the media decoder comprises a video decoder and an audio decoder which are implemented by the JavaScript.

### Claim 27 (depends on 26)

The media stream playing apparatus of claim 26, wherein the media decoder further comprises an audio encoder configured to encode audio captured by the media stream playing apparatus for two-way audio communication between the media stream playing apparatus and the media service device.

### Claim 28

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.

### Claim 29 (depends on 28)

The media service device of claim 28, wherein the RTP packets transmitted over the websocket protocol comprise a websocket header, an RTP header, and a media stream.

### Claim 30 (depends on 28)

The media service device of claim 28, further comprising a camera module configured to capture the real-time live video, and a media encoder configured to encode the captured video,
wherein the web server is configured to transmit the encoded video in real time to the media stream playing apparatus.

### Claim 31 (depends on 28)

The media service device of claim 28, wherein the media server is configured to buffer the captured video, packetize the buffered video, and generate the RTP packets, and
wherein the web server is configured to establish a communication session with the media stream playing apparatus for transmission of the RTP packets, transmit the RTP packets over the websocket protocol to the media stream playing apparatus, and perform transmission controls on the transmitted RTP packets.

### Claim 32 (depends on 28)

The media service device of claim 28, wherein the web server is configured to support an HTML5 standard.

### Claim 33 (depends on 28)

The media service device of claim 28, further comprising a proxy socket configured to encode communication data transmitted by the media server into websocket packets to be transmitted to the media stream playing apparatus, and decode websocket packets received from the media stream playing apparatus in a data format supported by the media server.

### Claim 34 (depends on 33)

The media service device of claim 33, wherein the proxy socket is further configured to relay data transmission and reception between the media server and the web server through a predetermined socket.

### Claim 35 (depends on 30)

The media service device of claim 30, wherein the video encoded by the media encoder is stored for long-term storage, or temporarily stored to support streaming via the media server.

### Claim 36 (depends on 28)

The media service device of claim 28, wherein the media service device comprises a real-time video camera or a network video recorder,
wherein the media stream playing apparatus comprises a web browser, and
wherein the connection established by the web server comprises a Transmission Control Protocol (TCP) connection and a websocket connection established based on the TCP connection.

### Claim 37

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.

### Claim 38 (depends on 37)

The media service method of claim 37, wherein the RTP packets transmitted over the websocket protocol comprise a websocket header, an RTP header, and a media stream.

### Claim 39 (depends on 37)

The media service method of claim 37, further comprising capturing the real-time live video by a camera module, and encoding the captured video,
wherein the transmitting the RTP packets comprises transmitting in real time the encoded video to the media stream playing apparatus by a web server.

### Claim 40 (depends on 37)

The media service method of claim 37, wherein the converting the encoded video into RTP packets comprises buffering the captured video, packetizing the buffered video, and generating the RTP packets, and
wherein the transmitting the RTP packets comprises establishing a communication session with the media stream playing apparatus for transmission of the RTP packets, transmitting the RTP packets over the websocket protocol to the media stream playing apparatus, and performing transmission controls on the transmitted RTP packets.
