FMUSER Wirless Transmit Video And Audio More Easier !
es.fmuser.org
it.fmuser.org
fr.fmuser.org
de.fmuser.org
af.fmuser.org ->Afrikaans
sq.fmuser.org ->Albanian
ar.fmuser.org ->Arabic
hy.fmuser.org ->Armenian
az.fmuser.org ->Azerbaijani
eu.fmuser.org ->Basque
be.fmuser.org ->Belarusian
bg.fmuser.org ->Bulgarian
ca.fmuser.org ->Catalan
zh-CN.fmuser.org ->Chinese (Simplified)
zh-TW.fmuser.org ->Chinese (Traditional)
hr.fmuser.org ->Croatian
cs.fmuser.org ->Czech
da.fmuser.org ->Danish
nl.fmuser.org ->Dutch
et.fmuser.org ->Estonian
tl.fmuser.org ->Filipino
fi.fmuser.org ->Finnish
fr.fmuser.org ->French
gl.fmuser.org ->Galician
ka.fmuser.org ->Georgian
de.fmuser.org ->German
el.fmuser.org ->Greek
ht.fmuser.org ->Haitian Creole
iw.fmuser.org ->Hebrew
hi.fmuser.org ->Hindi
hu.fmuser.org ->Hungarian
is.fmuser.org ->Icelandic
id.fmuser.org ->Indonesian
ga.fmuser.org ->Irish
it.fmuser.org ->Italian
ja.fmuser.org ->Japanese
ko.fmuser.org ->Korean
lv.fmuser.org ->Latvian
lt.fmuser.org ->Lithuanian
mk.fmuser.org ->Macedonian
ms.fmuser.org ->Malay
mt.fmuser.org ->Maltese
no.fmuser.org ->Norwegian
fa.fmuser.org ->Persian
pl.fmuser.org ->Polish
pt.fmuser.org ->Portuguese
ro.fmuser.org ->Romanian
ru.fmuser.org ->Russian
sr.fmuser.org ->Serbian
sk.fmuser.org ->Slovak
sl.fmuser.org ->Slovenian
es.fmuser.org ->Spanish
sw.fmuser.org ->Swahili
sv.fmuser.org ->Swedish
th.fmuser.org ->Thai
tr.fmuser.org ->Turkish
uk.fmuser.org ->Ukrainian
ur.fmuser.org ->Urdu
vi.fmuser.org ->Vietnamese
cy.fmuser.org ->Welsh
yi.fmuser.org ->Yiddish
The open source code live555 is the SDK used to implement the streaming media transmission function. Use the play Common.cpp in the teSTProgs folder in the SDK to design the transmission module of the IP TV set-top box, and together with the playback module constitute the streaming media player of the IPTV set-top box process. playCommon. cpp is a bridge connecting the server and the client. Its working principle is that when the client requests data from the server, it obtains the SDP description information from the server URL and creates a multimedia session based on the SDP, and finally plays the data stream.
introduced the design process of IPTV set-top box streaming media player, using the function of playCommON.cpp in live555 open source code, combined with the software structure design of IPTV set-top box, developed the transmission module of IPTV set-top box. Then the transmission module is connected with the middleware through the message queue, and at the same time is connected with the playback module through the entry function of the playback module, and finally constitutes the streaming media player of the IPTV set-top box. The player has been tested and has stable performance.
1 IPTV set-top box streaming media player design
1. 1 IPTV set-top box software structure
The software code of set-top box is divided into 4 parts: hardware driver, operating system, middleware, application layer.
1) The hardware driver connects the underlying hardware and the upper operating system. 2) Operating system The free open source code Linux is used here. 3) Middleware The software adaptation layer that isolates the upper application layer from the underlying operating system and hardware. The core modules of the middleware mainly include: (1) Browser: Obtain the URL from the server and display the corresponding EPG page. (2) Graphical user interface management: provide graphic functions such as user interface control (such as buttons, lists) and graphic image drawing for applications. 4) The application layer realizes the playback of audio and video media files.
1.2 IPTV set-top box streaming media player system structure
In the Live555 open source code, playCommon.cpp realizes the function of using a computer as a receiving terminal, receiving and playing with VLC software, and finally displaying it on the computer. The content of the research is to integrate playCommon.cpp into the software code of the set-top box, and finally realize the function of using the IPTV set-top box as the receiving terminal and playing it and displaying it on the TV. This puts forward new requirements for the design of the code: On the one hand, playCommon.cpp obtains the URL of the server by entering rtsp ://local IP address: port number/file name to be played in the RTSP column of VLC. Acquired. However, for the IPTV set-top box, the URL obtained by the transmission module is the corresponding URL when the user selects the program on the EPG through the remote control. This URL is read by the browser in the middleware, so it is necessary to connect the middleware and the transmission module stand up. On the other hand, the data stream sent by playCommon.cpp is received and played through VLC. For IPTV set-top boxes, the data stream sent by the transmission module is received and played through the playback module. Therefore, it is necessary to connect the transmission module and the playback module.
In order to connect the middleware, the output module and the playback module, a message queue is designed to realize the data communication between these three modules. In addition, pt hread create () is also designed in the program to create thread rt spmain() to realize the concurrency of the program.
1.3 Program structure analysis
1.3.1 Transmission module.
1) main function (1) void initMsgQ () initializes the message queue. dataQid represents the message queue of data, which contains some data transmitted on the network. Finally, the data in the message queue is sent to the player through the void send data to player () function. msgkeyQid represents the message queue of the message key value. The transmission module receives the remote control key value command obtained from the middleware and sends it to the player to realize fast forward, fast rewind, stop, and playback operations. fromeMiddleQid represents the message queue of the middleware. The transmission module receives the URL sent from the middleware as the destination address when the client player requests data from the server. playerStateQid represents the message queue of the playing state. The transmission module is used to send and receive the state of the player, and to control whether the player is on-demand, live or time shift. (2) phread_create(&g_session_thread_info ,&tattr,(void*(*)(void*))rtsp_main ,(void*)&urlInform); Create rtsp_main() thread. Ensure that the communication of the message queue and the transmission of the streaming media run simultaneously.
2) rtsp_main function. (1) recvMiddlewareMsg(fromeMiddleQid, url): The value of the url passed from the middleware is assigned to the variable url. (The definition of url is completed in the middleware, so it needs to be obtained from the middleware); (2) playCommon.cpp Function: When the client sends a request to the server, the server responds to the request, creates a media session and plays the data stream. (3) main_player_entry(gTrans. first Create): The client receives the stream and calls the player's entry function to initialize the player. (4) void send_data_to_player(): call the player, send the data received from the Internet to the player, and start playing.
|
Enter email to get a surprise
es.fmuser.org
it.fmuser.org
fr.fmuser.org
de.fmuser.org
af.fmuser.org ->Afrikaans
sq.fmuser.org ->Albanian
ar.fmuser.org ->Arabic
hy.fmuser.org ->Armenian
az.fmuser.org ->Azerbaijani
eu.fmuser.org ->Basque
be.fmuser.org ->Belarusian
bg.fmuser.org ->Bulgarian
ca.fmuser.org ->Catalan
zh-CN.fmuser.org ->Chinese (Simplified)
zh-TW.fmuser.org ->Chinese (Traditional)
hr.fmuser.org ->Croatian
cs.fmuser.org ->Czech
da.fmuser.org ->Danish
nl.fmuser.org ->Dutch
et.fmuser.org ->Estonian
tl.fmuser.org ->Filipino
fi.fmuser.org ->Finnish
fr.fmuser.org ->French
gl.fmuser.org ->Galician
ka.fmuser.org ->Georgian
de.fmuser.org ->German
el.fmuser.org ->Greek
ht.fmuser.org ->Haitian Creole
iw.fmuser.org ->Hebrew
hi.fmuser.org ->Hindi
hu.fmuser.org ->Hungarian
is.fmuser.org ->Icelandic
id.fmuser.org ->Indonesian
ga.fmuser.org ->Irish
it.fmuser.org ->Italian
ja.fmuser.org ->Japanese
ko.fmuser.org ->Korean
lv.fmuser.org ->Latvian
lt.fmuser.org ->Lithuanian
mk.fmuser.org ->Macedonian
ms.fmuser.org ->Malay
mt.fmuser.org ->Maltese
no.fmuser.org ->Norwegian
fa.fmuser.org ->Persian
pl.fmuser.org ->Polish
pt.fmuser.org ->Portuguese
ro.fmuser.org ->Romanian
ru.fmuser.org ->Russian
sr.fmuser.org ->Serbian
sk.fmuser.org ->Slovak
sl.fmuser.org ->Slovenian
es.fmuser.org ->Spanish
sw.fmuser.org ->Swahili
sv.fmuser.org ->Swedish
th.fmuser.org ->Thai
tr.fmuser.org ->Turkish
uk.fmuser.org ->Ukrainian
ur.fmuser.org ->Urdu
vi.fmuser.org ->Vietnamese
cy.fmuser.org ->Welsh
yi.fmuser.org ->Yiddish
FMUSER Wirless Transmit Video And Audio More Easier !
Contact
Address:
No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620
Categories
Newsletter