1. Field of the Invention
The present invention relates to a device for providing a real-time live video data stream file and method thereof, and particularly to a device and a method that can utilize a video file which is a fake non-real-time multimedia file to provide a real-time live video data stream file.
2. Description of the Prior Art
In the Internet, a server generally utilizes a Real-time Transport Protocol (RTP) to transmit a real-time multimedia data stream to a client device, where the real-time transport protocol includes a transport protocol and a Real-time Transport Control Protocol (RTCP), where the transport protocol is used for transmitting the real-time multimedia data stream, and the Real-time Transport Control Protocol is used for transmitting a transmission condition of the Internet to adjust a compression ratio of the real-time multimedia data stream or acts as an adjustment principle of Quality of Service (QoS) of the Internet.
A Digital Living Network Alliance integrates multimedia data into a Universal Plug and Play (UPnP) technology, where the Digital Living Network Alliance can support a HyperText Transfer Protocol (HTTP) in transmission of the multimedia data. The Digital Living Network Alliance is mainly applied to sharing and playback of home digital multimedia files. For example, when a television acts as a Digital Media Renderer (DMR), the television can search a home computer which acts as a Digital Media Server (DMS) on the same local area network. Then, the television can access multimedia files stored in the home computer through the HyperText Transfer Protocol, and display the accessed multimedia files. The Digital Living Network Alliance is a common industry standard mainly established by several consumer electronic and information technology companies, where the Digital Living Network Alliance can support a Plug and Play function of consumer electronics products. That is to say, consumer electronics products which support the Digital Living Network Alliance can transmit multimedia files through a local area network without predetermined application programs. However, in the Digital Living Network Alliance, a server can only transmit present multimedia files stored in the server to a client device, not transmitting a real-time multimedia data stream to the client device.
Although the Digital Living Network Alliance can support the Plug and Play function of consumer electronics products, the server can only transmit present multimedia files stored in the server to the client device under a specification of the Digital Living Network Alliance, so practicality of the Digital Living Network Alliance is decreased.
An embodiment provides a device for providing a real-time live video data stream file on request of a Universal Plug and Play (UPnP) client device. The device includes a memory, a processor, and a buffer. The memory is used for storing a first video file. The processor is used for receiving a first access command generated by the Universal Plug and Play client device for accessing the first video file, and converting an original real-time video data stream to a real-time video data stream file with a predetermined format according to the first access command. The buffer is used for storing the real-time video data stream file temporarily, wherein the real-time video data stream file stored in the buffer is provided to the Universal Plug and Play client device to access and play.
Another embodiment provides a method for providing a real-time live video data stream file, where the method is used for being provided to a device to implement, and the device includes a processor and a buffer. The method includes the processor receiving a first access command for accessing a first video file from a Universal Plug and Play client device; and the processor storing a real-time video data stream file with a predetermined format in the buffer temporarily, wherein the real-time video data stream file stored in the buffer is provided to the Universal Plug and Play client device to access and play.
The present invention provides a device for providing a real-time live video data stream file and a method for providing a real-time live video data stream file. The device and the method utilize a first video file which is a fake non-real-time multimedia file to provide a real-time live video data stream file to a Universal Plug and Play client device under a specification of a Digital Living Network Alliance. Thus, the present invention not only can increase willingness of a user to utilize consumer electronic products which support the Digital Living Network Alliance, but can also increase practicality of the Digital Living Network Alliance.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
As shown in
Please refer to
Please refer to
Step 300: Start.
Step 302: When the processor 106 receives a first access command AS1 for accessing the first video file 1042 from the Universal Plug and Play client device 112, go to Step 304; when the processor 106 receives a second access command AS2 for accessing the second video file 1044 from the Universal Plug and Play client device 112, go to Step 310.
Step 304: The processor 106 converts an original real-time video data stream ORVDS displayed by the player 102 to a real-time video data stream file RVDSF with the predetermined format.
Step 306: The processor 106 stores the real-time video data stream file RVDSF in the buffer 108 temporarily.
Step 308: The real-time video data stream file RVDSF stored in the buffer 108 is accessed and played by the Universal Plug and Play client device 112.
Step 310: The processor 106 stores the video data file VDF of the second video file 1044 in the buffer 108 temporarily.
Step 312: The video data file VDF of the second video file 1044 stored in the buffer 108 is accessed and played by the Universal Plug and Play client device 112.
In Step 302, after the user utilizes the Universal Plug and Play client device 112 to search the device 100 on the local area network or the Internet, the user can utilize the Universal Plug and Play client device 112 to generate the first access command AS1 for accessing the first video file 1042, and the Universal Plug and Play client device 112 can transmit the first access command AS1 to the device 100 through the transmission line or the wireless network. In Step 304, the processor 106 converts the original real-time video data stream ORVDS displayed by the player 102 to the real-time video data stream file RVDSF with the predetermined format according to the first access command AS1, where the predetermined format can be the H.264 format, and the name, the size, and the contents of the first video file 1042 can be relevant or irrelevant to the real-time video data stream file RVDS. In Step 308, the Universal Plug and Play client device 112 can access and play the real-time video data stream file RVDSF stored in the buffer 108 through the transmission line or the wireless network, where the Universal Plug and Play client device 112 accesses the real-time video data stream file RVDSF stored in the buffer 108 through the HyperText Transfer Protocol. Therefore, although the Universal Plug and Play client device 112 generates the first access command AS1 for accessing the first video file 1042, in fact, the Universal Plug and Play client device 112 can continuously access the real-time video data stream file RVDSF to play the real-time video data stream file RVDSF through the buffer 108. Because the first video file 1042 does not store the real-time video data stream file RVDSF, the size of the first video file 1042 does not increase with time.
In Step 302, after the user utilizes the Universal Plug and Play client device 112 to search the device 100 on the local area network or the Internet, the user can utilize Universal Plug and Play client device 112 to generate the second access command AS2 for accessing the second video file 1044, and the Universal Plug and Play client device 112 can transmit the second access command AS2 to the device 100 through the transmission line or the wireless network. In Step 310, the processor 106 can transmit the video data file VDF of the second video file 1044 to the buffer 108 according to the second access command AS2. Meanwhile, the buffer 108 can store the video data file VDF of the second video file 1044 temporarily. In Step 312, the Universal Plug and Play client device 112 can access and play the video data file VDF of the second video file 1044 stored in the buffer 108 through the transmission line or the wireless network, where the Universal Plug and Play client device 112 accesses the video data file VDF of the second video file 1044 stored in the buffer 108 through the HyperText Transfer Protocol.
Please refer to
Step 400: Start.
Step 402: The remote controller 214 generates and transmits a trigger signal TS to the processor 106.
Step 404: When the processor 106 notifies the Universal Plug and Play client device 112 to generate a first access command AS1 for accessing the first video file 1042 according to the trigger signal TS, go to Step 406; when the processor 106 notifies the Universal Plug and Play client device 112 to generate a second access command AS2 for accessing the second video file 1044 according to the trigger signal TS, go to Step 414.
Step 406: The processor 106 receives the first access command AS1.
Step 408: The processor 106 converts an original real-time video data stream ORVDS displayed by the player 102 to a real-time video data stream file RVDSF with the predetermined format.
Step 410: The processor 106 stores the real-time video data stream file RVDSF in the buffer 108 temporarily.
Step 412: The real-time video data stream file RVDSF stored in the buffer 108 is accessed and played by the Universal Plug and Play client device 112.
Step 414: The processor 106 receives the second access command AS2.
Step 416: The processor 106 stores a video data file VDF of the second video file 1044 in the buffer 108 temporarily.
Step 418: The video data file VDF of the second video file 1044 stored in the buffer 108 is accessed and played by the Universal Plug and Play client device 112.
A difference between the embodiment in
To sum up, the device for providing a real-time live video data stream file and the method for providing a real-time live video data stream file utilize a first video file which is a fake non-real-time multimedia file to provide a real-time live video data stream file to the Universal Plug and Play client device under a specification of the Digital Living Network Alliance. Thus, the present invention not only can increase willingness of the user to utilize consumer electronic products which support the Digital Living Network Alliance, but can also increase practicality of the Digital Living Network Alliance.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
100149958 | Dec 2011 | TW | national |