CN105791936A - Player implementation method and device and player - Google Patents

Player implementation method and device and player Download PDF

Info

Publication number
CN105791936A
CN105791936A CN201410817883.5A CN201410817883A CN105791936A CN 105791936 A CN105791936 A CN 105791936A CN 201410817883 A CN201410817883 A CN 201410817883A CN 105791936 A CN105791936 A CN 105791936A
Authority
CN
China
Prior art keywords
usb
dtv receiver
network
type
dtv
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
Application number
CN201410817883.5A
Other languages
Chinese (zh)
Inventor
陈华岭
曹山
袁堂夫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING FUSION VIDEO TECHNOLOGY Co Ltd
Original Assignee
BEIJING FUSION VIDEO TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by BEIJING FUSION VIDEO TECHNOLOGY Co Ltd filed Critical BEIJING FUSION VIDEO TECHNOLOGY Co Ltd
Priority to CN201410817883.5A priority Critical patent/CN105791936A/en
Publication of CN105791936A publication Critical patent/CN105791936A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a player implementation method and device and a player, and relates to the field of communications. The method comprises the following steps: detecting current states of USB (Universal Serial Bus) digital television receivers, and determining types of accessed USB digital television receivers according to an equipment list, wherein the equipment list includes detection results of the current states of the USB digital television receivers, and the types of the USB digital television receivers include a local USB digital television receiver and a network USB digital television receiver; detecting user selection, and determining whether the type of a used USB digital television receiver is the local USB digital television receiver or the network USB digital television receiver according to the user selection; and calling a corresponding interface to search for programs according to the determined type of the used USB digital television receiver, acquiring a program list, and finishing program playing. Through the scheme of the invention, the problem that a conventional player implementation method is relatively single and cannot adapt to the USB digital television receivers under different use environments is solved.

Description

A kind of method that realizes of player, device and player
Technical field
The present invention relates to the communications field, particularly relate to a kind of method that realizes of player, device and player.
Background technology
In daily life, intelligent television, intelligent network player are ubiquitous.Internet video program can arbitrarily be watched, user also becomes increasingly dependent on the use habit of these equipment and these equipment, but user wants to watch live digital television program with dependence on TV set-top box, need to switch between, make also very inconvenient, therefore, it is proposed to USB DTV receiver.
USB DTV receiver is that one can demodulate digital television signal, digital television signal TS flows (TransportStream, transmission stream) and is converted into the equipment that USB data stream is transferred on smart machine.There is multiple use environment in USB DTV receiver under existing environment, and one is that by USB interface, USB DTV receiver is received smart machine;Another kind is network type, is received with on the router of USB interface, PC etc. by USB interface by USB DTV receiver.Router, PC etc. install corresponding software and can will be processed by the USB data stream of TS circulationization, then pass through network and are distributed.
But, mostly existing player is for the design under a certain use environment of USB DTV receiver, it is impossible to realizes the difference at USB DTV receiver and uses the broadcasting under environment.
Summary of the invention
It is an object of the invention to provide a kind of method that realizes of player, device and player, it is achieved different types of USB DTV receiver is realized method what difference use environment facies adapted to by player.
For reaching above-mentioned purpose, embodiments of the invention provide a kind of player realize method, including:
The current state of detection USB DTV receiver, and according to list of devices, confirm the type of the USB DTV receiver accessed;Wherein, described list of devices includes the testing result of USB DTV receiver current state;The type of described USB DTV receiver includes local USB DTV receiver and network USB DTV receiver;
Detection user selects, and selects to determine that the type using USB DTV receiver is local USB DTV receiver or network USB DTV receiver according to user;
According to it have been determined that by the type of USB DTV receiver, call the interface searching programs of correspondence, after obtaining the rendition list, complete program play.
Wherein, the current state of detection USB DTV receiver, including:
The type of detection USB DTV receiver and device events;Wherein, described device events includes insertion and the dial-out event of local USB DTV receiver, the network insertion of network USB DTV receiver and exit event;
According to described device events, the corresponding type added or delete USB DTV receiver and described USB DTV receiver in list of devices.
Wherein, detect type and the device events of USB DTV receiver, including:
The device events of USB device is detected according to USB application programming interface;
After insertion event USB device being detected is broadcasted, the producer's mark and the product identification that obtain described USB device verify, and are local USB DTV receivers verifying by the described USB device of rear confirmation;
After the event of extracting USB device being detected is broadcasted, the producer's mark and the product identification that obtain described USB device verify, and are local USB DTV receivers verifying by the described USB device of rear confirmation.
Wherein, detect type and the device events of USB DTV receiver, including:
The device events of the network equipment is detected according to network interface;
Add incoming event at the network network equipment being detected, and the described network equipment is after network USB DTV receiver, obtains the facility information of described network USB DTV receiver;Wherein, described facility information includes: device name, the IP address of equipment and Device-General unique identifier UUID;
Exit event at the network network equipment being detected, and the described network equipment is after network USB DTV receiver, obtains the Device-General unique identifier UUID of described network USB DTV receiver.
Wherein, detection user selects, and selects to determine that the type using USB DTV receiver is local USB DTV receiver or network USB DTV receiver according to user, including:
Detection user selects, and selects result to determine the type using USB DTV receiver according to the user detected;
The testing result that user selects is not obtained in the first Preset Time, duplicate detection user selects, until not obtaining the testing result that user selects in the second Preset Time yet, acquiescence determines that the type using USB DTV receiver is local USB DTV receiver.
Wherein, according to it have been determined that by the type of USB DTV receiver, call the interface searching programs of correspondence, after obtaining the rendition list, complete program play, including:
When determining that the type using USB DTV receiver is local USB DTV receiver, call middle alternation of bed interface searching programs, obtain the rendition list and carry out program broadcasting;
When determining that the type using USB DTV receiver is network USB DTV receiver, call web application DLL searching programs according to the IP address of equipment obtained, obtain the rendition list and carry out program broadcasting.
For reaching above-mentioned purpose, what embodiments of the invention additionally provided a kind of player realizes device, including:
Receptor discovery module, for detecting the current state of USB DTV receiver, and according to list of devices, confirms the type of the USB DTV receiver accessed;Wherein, the type of described USB DTV receiver includes local USB DTV receiver and network USB DTV receiver;
Receptor confirms module, is used for detecting user and selects, and selects to determine that the type using USB DTV receiver is local USB DTV receiver or network USB DTV receiver according to user;
Processing module, for according to it have been determined that by the type of USB DTV receiver, call the interface searching programs of correspondence, completing program and play after obtaining the rendition list.
Wherein, described receptor discovery module includes:
Detection sub-module, for detecting type and the device events of USB DTV receiver;Wherein, described device events includes insertion and the dial-out event of local USB DTV receiver, the network insertion of network USB DTV receiver and exit event;
List of devices processes submodule, and for according to described device events, in list of devices, correspondence is added or deletes the type of USB DTV receiver and described USB DTV receiver.
Wherein, described detection sub-module includes:
First detection unit, for detecting the device events of USB device according to USB application programming interface;
First verification unit, after broadcasting in insertion event USB device being detected, the producer's mark and the product identification that obtain described USB device verify, and are local USB DTV receivers verifying by the described USB device of rear confirmation;
Second verification unit, after broadcasting in the event of extracting USB device being detected, the producer's mark and the product identification that obtain described USB device verify, and are local USB DTV receivers verifying by the described USB device of rear confirmation.
Wherein, described detection sub-module includes:
Second detection unit, for detecting the device events of the network equipment according to network interface;
First acquiring unit, for adding incoming event at the network network equipment being detected, and the described network equipment is after network USB DTV receiver, obtains the facility information of described network USB DTV receiver;Wherein, described facility information includes: device name, the IP address of equipment and Device-General unique identifier UUID;
Second acquisition unit, for exiting event at the network network equipment being detected, and the described network equipment is after network USB DTV receiver, obtains the Device-General unique identifier UUID of described network USB DTV receiver.
Wherein, described receptor confirms that module includes:
First confirms submodule, is used for detecting user and selects, selects result to determine the type using USB DTV receiver according to the user detected;
Second confirms submodule, for not obtaining the testing result that user selects in the first Preset Time, duplicate detection user selects, until not obtaining the testing result that user selects in the second Preset Time yet, acquiescence determines that the type using USB DTV receiver is local USB DTV receiver.
Wherein, described processing module includes:
First processing module, for when determining that the type using USB DTV receiver is local USB DTV receiver, calling middle alternation of bed interface searching programs, obtains the rendition list and carries out program broadcasting;
Second confirms module, for when determining that the type using USB DTV receiver is network USB DTV receiver, calling web application DLL searching programs according to the IP address of equipment obtained, obtains the rendition list and carries out program broadcasting.
For reaching above-mentioned purpose, embodiments of the invention additionally provide a kind of player, realize device including player as above.
Having the beneficial effect that of the technique scheme of the present invention:
The player of the embodiment of the present invention realize method, it is achieved detection USB DTV receiver current state, upon completion of the assays, testing result can be revised list of devices.User can be detected afterwards select to determine the type using USB DTV receiver, and after determining the type of USB DTV receiver that player uses, call the interface searching programs that the type USB DTV receiver is corresponding, obtain the rendition list and carry out program broadcasting.So, the method make player USB DTV receiver difference use under environment can normal play program, and for the demand of user, the USB DTV receiver used can be selected, promote Consumer's Experience.
Accompanying drawing explanation
Fig. 1 represents the schematic flow sheet of the method that realizes of the player of the embodiment of the present invention;
Fig. 2 represents the specific implementation that local USB DTV receiver finds;
Fig. 3 represents the specific implementation that network USB DTV receiver finds;
Fig. 4 represents that USB DTV receiver uses the specific implementation selected;
Fig. 5 represents the specific implementation of program searching and broadcasting;
Fig. 6 represents the structural representation realizing device of the player of the embodiment of the present invention.
Detailed description of the invention
For making the technical problem to be solved in the present invention, technical scheme and advantage clearly, it is described in detail below in conjunction with the accompanying drawings and the specific embodiments.
The present invention is directed to existing player to realize method more single, the problem not adapting to use USB DTV receiver under environment in difference, what provide a kind of player realizes method, realizing player uses environment facies to adapt in difference different types of USB DTV receiver, and the demand according to user selects preferably mode to realize program broadcasting.
As it is shown in figure 1, embodiments of the invention provide a kind of player realize method, including:
Step 11, the current state of detection USB DTV receiver, and according to list of devices, confirm the type of the USB DTV receiver accessed;Wherein, described list of devices includes the testing result of USB DTV receiver current state;The type of described USB DTV receiver includes local USB DTV receiver and network USB DTV receiver;
Step 12, detection user selects, and selects to determine that the type using USB DTV receiver is local USB DTV receiver or network USB DTV receiver according to user;
Step 13, according to it have been determined that by the type of USB DTV receiver, call the interface searching programs of correspondence, completes program after obtaining the rendition list and plays.
According to above-mentioned steps, first player can detect the current state of USB DTV receiver, and detection content includes: be currently that local USB DTV receiver inserts or pull out, or network USB DTV receiver accesses or exits etc..Upon completion of the assays, testing result can be revised list of devices, be appreciated that the type of the USB DTV receiver accessing player by Query List.
It should be appreciated that, owing to the demand of user is firstly the need of satisfied, for the selection of different types of USB DTV receiver, user can be detected and select to determine the type using USB DTV receiver.It can also be that user presets the selection reserved that user selects can be the operation that selects that user makes after user's display device list.After determining the type of USB DTV receiver that player uses, call the interface searching programs that the type USB DTV receiver is corresponding, obtain the rendition list and carry out program broadcasting.So, this realize method make player USB DTV receiver difference use under environment can normal play program, and for the demand of user, the USB DTV receiver used can be selected, promote Consumer's Experience.
The embodiment of the present invention player realize in method, in step 11 detect USB DTV receiver current state include:
Step 111, the type of detection USB DTV receiver and device events;Wherein, described device events includes insertion and the dial-out event of local USB DTV receiver, the network insertion of network USB DTV receiver and exit event;
Step 112, according to described device events, the corresponding type added or delete USB DTV receiver and described USB DTV receiver in list of devices.
Owing to USB DTV receiver is to there is local USB DTV receiver or network USB DTV receiver two types, according to step 111, first to detect type and the device events of USB DTV receiver, certainly, device events is the device events of USB DTV receiver type after corresponding detection confirms, subsequently can according to device events corresponding type added or delete USB DTV receiver and this USB DTV receiver in list of devices.
For the detection of local USB DTV receiver, step 111 includes:
Step 1111a, detects the device events of USB device according to USB application programming interface;
Step 1112a1, after insertion event USB device being detected is broadcasted, the producer's mark and the product identification that obtain described USB device verify, and are local USB DTV receivers verifying by the described USB device of rear confirmation;
Step 1112a2, after the event of extracting USB device being detected is broadcasted, the producer's mark and the product identification that obtain described USB device verify, and are local USB DTV receivers verifying by the described USB device of rear confirmation.
It should be appreciated that, local USB DTV receiver accesses player by USB interface, therefore, first the device events of USB device is detected according to USB application programming interface API, and USB device is not necessarily USB DTV receiver, so, no matter the insertion event broadcast of USB device being detected, or detect that the event of extracting of USB device is broadcasted the producer mark VenderID and product identification ProductID also obtaining this USB device and verified, it is local USB DTV receiver verifying by this USB device of rear confirmation, only confirming this USB device is USB DTV receiver, and its type is local USB DTV receiver, corresponding operating could be carried out in list of devices.Certainly if not USB DTV receiver, can directly abandon the event detected, not deal with.
As in figure 2 it is shown, be the specific implementation that finds of local USB DTV receiver, S201 according to system API detect USB device into and out event;S202 detects that USB device inserts event broadcast;S203 verifies VenderID and the ProductID of USB device;S204 verifies by being USB DTV receiver, initializes USB DTV receiver;This USB DTV receiver is added list of devices by S205;S206 verification is not passed through, and directly abandons this event and does not deal with;S207 detects that USB device extracts event broadcast;S208 verifies VenderID and the ProductID of USB device;S209 verifies by being USB DTV receiver, discharges USB DTV receiver;This USB DTV receiver is deleted by S210 in list of devices;S211 verification is not passed through, and directly abandons this event and does not deal with.
For the detection of network USB DTV receiver, step 111 includes:
Step 1111b, detects the device events of the network equipment according to network interface;
Step 1112b1, adds incoming event at the network network equipment being detected, and the described network equipment is after network USB DTV receiver, obtains the facility information of described network USB DTV receiver;Wherein, described facility information includes: device name, the IP address of equipment and Device-General unique identifier UUID;
Step 1112b2, exits event at the network network equipment being detected, and the described network equipment is after network USB DTV receiver, obtains the Device-General unique identifier UUID of described network USB DTV receiver.
nullIn an embodiment of the present invention,Network USB DTV receiver is received on the equipment such as the router with USB interface or PC by USB interface,Owing to controlling USB DTV receiver and carry out various work the equipment such as the router of USB DTV receiver or PC should can be installed software accordingly,Set up DLNA server DLNASERVER to add to player notice/exit network simultaneously,Player is communicated with the equipment such as router or PC by the mode of network AP I interface,It is operated thus controlling network USB DTV receiver,And the equipment such as router or PC can read network USB DTV receiver and digital TV TS stream is converted into USB data stream,And carry out processing and deliver to after reading USB data stream in the webserver HTTPSERVER of player self,So that player plays wherein data.Therefore, the device events of the network equipment can be detected according to network interface.But the same network equipment detected is not necessarily USB DTV receiver, so, no matter adding incoming event at the network network equipment being detected, or the network of the network equipment exits event, it is necessary to confirm whether the network equipment is network USB DTV receiver.Confirming it is after network USB DTV receiver adds, preparing in order to the later stage plays, the facility information that need to obtain network USB DTV receiver includes: device name, the IP address of equipment and Device-General unique identifier UUID.It is after network USB DTV receiver exits confirming, it is also desirable to obtain the Device-General unique identifier UUID of network USB DTV receiver, realize this network USB DTV receiver and exit network.Certainly, due to the network equipment not after access just immediately it can be found that, it is necessary to according to predetermined period carry out find detection, search.
In an embodiment of the present invention, network USB DTV receiver it is found that realized by DLNA DLNA.As it is shown on figure 3, be network USB DTV receiver find specific implementation, S301 starts DLNA;S302 searches for the network equipment;S303 has detected whether that device events occurs;The non-discovering device event of S304 occurs, and sleep 50s returns the search network equipment;S305 discovering device event occurs, and checks event type;S306 detects that the network of the network equipment adds incoming event;S307 detects this network equipment;This network equipment of S308 is network USB DTV receiver, obtains device name, the IP address of equipment and equipment UUID;S309 notifies that application layer adds network USB DTV receiver, adds list of devices;S310 is not network USB DTV receiver, abandons this event, returns the search network equipment;S311 detects that the network of the network equipment exits event;S312 detects this network equipment;This network equipment of S313 is network USB DTV receiver, obtains equipment UUID;S314 notifies that application layer network USB DTV receiver exits network, and deletes in list of devices;S315 is not network USB DTV receiver, abandons this event, returns the search network equipment.
In order to meet the individual demand of user, the player of the embodiment of the present invention realize in method, user can be detected and select to determine when the two types of USB DTV receiver is concurrently accessed the USB DTV receiver type of use, but user just can not make a choice or user does not do selection in the very first time, therefore, on the basis of above-described embodiment, step 12 includes:
Step 121, detection user selects, and selects result to determine the type using USB DTV receiver according to the user detected;
Step 122, the testing result that user selects is not obtained in the first Preset Time, duplicate detection user selects, until not obtaining the testing result that user selects in the second Preset Time yet, acquiescence determines that the type using USB DTV receiver is local USB DTV receiver.
According to step 121, detection user first can be gone to select, just result can be selected to determine the type using USB DTV receiver according to user detecting after user selects.If user does not carry out user's selection in the very first time, so such as step 122, the testing result that user selects is not obtained in the first Preset Time, meeting duplicate detection, if user is just not intended to carry out user's selection, duplicate detection does not obtain, to arriving the second Preset Time, the testing result that user selects yet, it is contemplated that the operational effect of local USB DTV receiver is more preferably, default priority uses local USB DTV receiver, certainly without local USB DTV receiver, first network USB DTV receiver detected is used.
As shown in Figure 4, for the specific implementation of equipment choice, S401 obtains list of devices provides user to select;S402 detects whether user makes USB DTV receiver equipment choice;S403 selects to determine the device type of selection according to user;S404 this locality USB DTV receiver, arranges the type of selection equipment;S405 network USB DTV receiver, arranges the type of selection equipment, now also needs to obtain IP address and the UUID of current device for follow-up play;S406 does not find that user makes a choice, and whether the detection waiting time is overtime;S407 has not timed out, and sleep 10s, returns whether detection user makes USB DTV receiver equipment choice;S408 time-out, the local USB DTV receiver of preferential use, it does not have local USB DTV receiver, use first network USB DTV receiver detected.
After determining the USB DTV receiver type of use, it becomes possible to call corresponding interface searching programs, obtaining the rendition list and complete program broadcasting, step 13 includes:
Step 131a, when determining that the type using USB DTV receiver is local USB DTV receiver, calls middle alternation of bed interface searching programs, obtains the rendition list and carry out program broadcasting;
Step 131b, when determining that the type using USB DTV receiver is network USB DTV receiver, calls web application DLL searching programs according to the IP address of equipment obtained, and obtains the rendition list and carries out program broadcasting.
Shown in Fig. 5, completing program searching and broadcasting, S501 obtains it have been determined that with USB DTV receiver Selective type;S502 detection uses the type of USB DTV receiver;S503 this locality USB DTV receiver, calls middle alternation of bed interface searching programs, obtains the rendition list;S504 program is play;During S505 network USB DTV receiver, call web application DLL searching programs according to the IP address of equipment obtained, obtain the rendition list;S506 program is play.
The realization of above-mentioned method, can be that the DLNA of the protocol layer of player system is responsible for finding network USB DTV receiver, middle alternation of bed is responsible for application layer and the Protocol layer data encapsulation alternately with to protocol layer interface API, and application layer realizes the discovery of dissimilar USB DTV receiver.Certainly, being the discovery that of network USB DTV receiver is searched for realization according to the DLNA middle interactive interface encapsulated by application layer, and application layer can also complete program searching, program broadcasting etc. according to the interface that middle alternation of bed or network AP I provide.The function of CI protocol stack can be completed: be responsible for the scramble process to scrambled program, communicated by USB interface and USB DTV receiver and control the work of USB DTV receiver at protocol layer;Protocol layer also includes the switching of program, search and is responsible for receiving the request of data of client terminal playing software, TS flows program data pack according to http protocol, it is transferred to client player by network, and supports that multi-user accesses the functions such as same set of program simultaneously.
Illustrate to realize process for the ANDROID network player of a terminal unit being applied to router (there is corresponding software) with USB interface below.The application layer of this player is realized by JAVA, middle alternation of bed is realized by JNI, protocol layer is realized by C/C++, player realizes the discovery to local USB DTV receiver according to the USB interface of ANDROID system and adds list of devices, utilizes JNI interface to complete the search of program, switching, broadcasting control.The specific software installed due to router can complete the functions such as the startup of DLNASERVER equipment, program searching, program switching and encapsulate out the network AP I interface of these functions, the mode of the available CGI(Common gateway interface) CGI of interface implemer realizes, player realizes the discovery of network USB DTV receiver according to the JNI DLNA interface encapsulated and adds list of devices, completes the search of program, switching, broadcasting control according to the CGI interface that the router at network USB DTV receiver place provides.
In sum, the player of the embodiment of the present invention realize method, local USB DTV receiver is found according to USBAPI, network USB DTV receiver is found according to network interface, and after user selects confirmation, according to confirming that the USB DTV receiver used calls corresponding interface and completes program searching broadcasting.
As shown in Figure 6, what embodiments of the invention additionally provided a kind of player realizes device, including:
Receptor discovery module 10, for detecting the current state of USB DTV receiver, and according to list of devices, confirms the type of the USB DTV receiver accessed;Wherein, the type of described USB DTV receiver includes local USB DTV receiver and network USB DTV receiver;
Receptor confirms module 20, is used for detecting user and selects, and selects to determine that the type using USB DTV receiver is local USB DTV receiver or network USB DTV receiver according to user;
Processing module 30, for according to it have been determined that by the type of USB DTV receiver, call the interface searching programs of correspondence, completing program and play after obtaining the rendition list.
Wherein, described receptor discovery module includes:
Detection sub-module, for detecting type and the device events of USB DTV receiver;Wherein, described device events includes insertion and the dial-out event of local USB DTV receiver, the network insertion of network USB DTV receiver and exit event;
List of devices processes submodule, and for according to described device events, in list of devices, correspondence is added or deletes the type of USB DTV receiver and described USB DTV receiver.
Wherein, described detection sub-module includes:
First detection unit, for detecting the device events of USB device according to USB application programming interface;
First verification unit, after broadcasting in insertion event USB device being detected, the producer's mark and the product identification that obtain described USB device verify, and are local USB DTV receivers verifying by the described USB device of rear confirmation;
Second verification unit, after broadcasting in the event of extracting USB device being detected, the producer's mark and the product identification that obtain described USB device verify, and are local USB DTV receivers verifying by the described USB device of rear confirmation.
Wherein, described detection sub-module includes:
Second detection unit, for detecting the device events of the network equipment according to network interface;
First acquiring unit, for adding incoming event at the network network equipment being detected, and the described network equipment is after network USB DTV receiver, obtains the facility information of described network USB DTV receiver;Wherein, described facility information includes: device name, the IP address of equipment and Device-General unique identifier UUID;
Second acquisition unit, for exiting event at the network network equipment being detected, and the described network equipment is after network USB DTV receiver, obtains the Device-General unique identifier UUID of described network USB DTV receiver.
Wherein, described receptor confirms that module includes:
First confirms submodule, is used for detecting user and selects, selects result to determine the type using USB DTV receiver according to the user detected;
Second confirms submodule, for not obtaining the testing result that user selects in the first Preset Time, duplicate detection user selects, until not obtaining the testing result that user selects in the second Preset Time yet, acquiescence determines that the type using USB DTV receiver is local USB DTV receiver.
Wherein, described processing module includes:
First processing module, for when determining that the type using USB DTV receiver is local USB DTV receiver, calling middle alternation of bed interface searching programs, obtains the rendition list and carries out program broadcasting;
Second confirms module, for when determining that the type using USB DTV receiver is network USB DTV receiver, calling web application DLL searching programs according to the IP address of equipment obtained, obtains the rendition list and carries out program broadcasting.
The player of the embodiment of the present invention realize device, first receptor discovery module can detect the current state of USB DTV receiver, upon completion of the assays, testing result can be revised list of devices, be appreciated that the type of the USB DTV receiver accessing player by Query List.User can be detected afterwards select to determine the type using USB DTV receiver, and after determining the type of USB DTV receiver that player uses, call the interface searching programs that the type USB DTV receiver is corresponding, obtain the rendition list and carry out program broadcasting.So, this realize device make player USB DTV receiver difference use under environment can normal play program, and for the demand of user, the USB DTV receiver used can be selected, promote Consumer's Experience.
It should be noted that this player realize the device that device is the method that realizes applying above-mentioned player, the implementation of the method that realizes of above-mentioned player be applicable to this device, also can reach identical technique effect.
Embodiments of the invention additionally provide a kind of player, realize device including player as above.
This player can be a network player, it is also possible to is with USB interface and has the entity device with network equipments such as USB routers, it is achieved the current state of detection USB DTV receiver, upon completion of the assays, testing result can be revised list of devices.User can be detected afterwards select to determine the type using USB DTV receiver, and after determining the type of USB DTV receiver that player uses, call the interface searching programs that the type USB DTV receiver is corresponding, obtain the rendition list and carry out program broadcasting.So, player realize USB DTV receiver difference use under environment can normal play program, and for the demand of user, the USB DTV receiver used can be selected, promote Consumer's Experience.
It should be noted that this player is the player of the method that realizes applying above-mentioned player, the implementation of the method that realizes of above-mentioned player is applicable to this player, also can reach identical technique effect.
The above is the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from principle of the present invention; can also making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (13)

1. a player realize method, it is characterised in that including:
The current state of detection USB DTV receiver, and according to list of devices, confirm the type of the USB DTV receiver accessed;Wherein, described list of devices includes the testing result of USB DTV receiver current state;The type of described USB DTV receiver includes local USB DTV receiver and network USB DTV receiver;
Detection user selects, and selects to determine that the type using USB DTV receiver is local USB DTV receiver or network USB DTV receiver according to user;
According to it have been determined that by the type of USB DTV receiver, call the interface searching programs of correspondence, after obtaining the rendition list, complete program play.
2. player according to claim 1 realize method, it is characterised in that detection USB DTV receiver current state, including:
The type of detection USB DTV receiver and device events;Wherein, described device events includes insertion and the dial-out event of local USB DTV receiver, the network insertion of network USB DTV receiver and exit event;
According to described device events, the corresponding type added or delete USB DTV receiver and described USB DTV receiver in list of devices.
3. player according to claim 2 realize method, it is characterised in that the detection type of USB DTV receiver and device events, including:
The device events of USB device is detected according to USB application programming interface;
After insertion event USB device being detected is broadcasted, the producer's mark and the product identification that obtain described USB device verify, and are local USB DTV receivers verifying by the described USB device of rear confirmation;
After the event of extracting USB device being detected is broadcasted, the producer's mark and the product identification that obtain described USB device verify, and are local USB DTV receivers verifying by the described USB device of rear confirmation.
4. player according to claim 2 realize method, it is characterised in that the detection type of USB DTV receiver and device events, including:
The device events of the network equipment is detected according to network interface;
Add incoming event at the network network equipment being detected, and the described network equipment is after network USB DTV receiver, obtains the facility information of described network USB DTV receiver;Wherein, described facility information includes: device name, the IP address of equipment and Device-General unique identifier UUID;
Exit event at the network network equipment being detected, and the described network equipment is after network USB DTV receiver, obtains the Device-General unique identifier UUID of described network USB DTV receiver.
5. player according to claim 1 realize method, it is characterized in that, detection user selects, and selects to determine that the type using USB DTV receiver is local USB DTV receiver or network USB DTV receiver according to user, including:
Detection user selects, and selects result to determine the type using USB DTV receiver according to the user detected;
The testing result that user selects is not obtained in the first Preset Time, duplicate detection user selects, until not obtaining the testing result that user selects in the second Preset Time yet, acquiescence determines that the type using USB DTV receiver is local USB DTV receiver.
6. player according to claim 1 realize method, it is characterised in that according to it have been determined that by the type of USB DTV receiver, call the interface searching programs of correspondence, after obtaining the rendition list, complete program play, including:
When determining that the type using USB DTV receiver is local USB DTV receiver, call middle alternation of bed interface searching programs, obtain the rendition list and carry out program broadcasting;
When determining that the type using USB DTV receiver is network USB DTV receiver, call web application DLL searching programs according to the IP address of equipment obtained, obtain the rendition list and carry out program broadcasting.
7. a player realize device, it is characterised in that including:
Receptor discovery module, for detecting the current state of USB DTV receiver, and according to list of devices, confirms the type of the USB DTV receiver accessed;Wherein, the type of described USB DTV receiver includes local USB DTV receiver and network USB DTV receiver;
Receptor confirms module, is used for detecting user and selects, and selects to determine that the type using USB DTV receiver is local USB DTV receiver or network USB DTV receiver according to user;
Processing module, for according to it have been determined that by the type of USB DTV receiver, call the interface searching programs of correspondence, completing program and play after obtaining the rendition list.
8. player according to claim 7 realize device, it is characterised in that described receptor discovery module includes:
Detection sub-module, for detecting type and the device events of USB DTV receiver;Wherein, described device events includes insertion and the dial-out event of local USB DTV receiver, the network insertion of network USB DTV receiver and exit event;
List of devices processes submodule, and for according to described device events, in list of devices, correspondence is added or deletes the type of USB DTV receiver and described USB DTV receiver.
9. player according to claim 8 realize device, it is characterised in that described detection sub-module includes:
First detection unit, for detecting the device events of USB device according to USB application programming interface;
First verification unit, after broadcasting in insertion event USB device being detected, the producer's mark and the product identification that obtain described USB device verify, and are local USB DTV receivers verifying by the described USB device of rear confirmation;
Second verification unit, after broadcasting in the event of extracting USB device being detected, the producer's mark and the product identification that obtain described USB device verify, and are local USB DTV receivers verifying by the described USB device of rear confirmation.
10. player according to claim 8 realize device, it is characterised in that described detection sub-module includes:
Second detection unit, for detecting the device events of the network equipment according to network interface;
First acquiring unit, for adding incoming event at the network network equipment being detected, and the described network equipment is after network USB DTV receiver, obtains the facility information of described network USB DTV receiver;Wherein, described facility information includes: device name, the IP address of equipment and Device-General unique identifier UUID;
Second acquisition unit, for exiting event at the network network equipment being detected, and the described network equipment is after network USB DTV receiver, obtains the Device-General unique identifier UUID of described network USB DTV receiver.
11. player according to claim 7 realize device, it is characterised in that described receptor confirm module include:
First confirms submodule, is used for detecting user and selects, selects result to determine the type using USB DTV receiver according to the user detected;
Second confirms submodule, for not obtaining the testing result that user selects in the first Preset Time, duplicate detection user selects, until not obtaining the testing result that user selects in the second Preset Time yet, acquiescence determines that the type using USB DTV receiver is local USB DTV receiver.
12. player according to claim 7 realize device, it is characterised in that described processing module includes:
First processing module, for when determining that the type using USB DTV receiver is local USB DTV receiver, calling middle alternation of bed interface searching programs, obtains the rendition list and carries out program broadcasting;
Second confirms module, for when determining that the type using USB DTV receiver is network USB DTV receiver, calling web application DLL searching programs according to the IP address of equipment obtained, obtains the rendition list and carries out program broadcasting.
13. a player, it is characterised in that what include the player as described in any one of claim 7 to 12 realizes device.
CN201410817883.5A 2014-12-24 2014-12-24 Player implementation method and device and player Pending CN105791936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410817883.5A CN105791936A (en) 2014-12-24 2014-12-24 Player implementation method and device and player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410817883.5A CN105791936A (en) 2014-12-24 2014-12-24 Player implementation method and device and player

Publications (1)

Publication Number Publication Date
CN105791936A true CN105791936A (en) 2016-07-20

Family

ID=56378434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410817883.5A Pending CN105791936A (en) 2014-12-24 2014-12-24 Player implementation method and device and player

Country Status (1)

Country Link
CN (1) CN105791936A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112533038A (en) * 2020-11-27 2021-03-19 卡莱特(深圳)云科技有限公司 Playing box wireless connection switching method and playing box capable of automatically switching wireless connection

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008024167A3 (en) * 2006-08-24 2008-09-25 Sbc Knowledge Ventures Lp Methods and apparatus for sending stored advertising data
CN101296331A (en) * 2007-04-24 2008-10-29 深圳Tcl新技术有限公司 Broadcasting device
CN101489061A (en) * 2009-01-13 2009-07-22 深圳创维数字技术股份有限公司 Digital television receiver and expanded interface system thereof with peripheral unit
CN101686341A (en) * 2008-09-22 2010-03-31 宝利微电子系统控股公司 Method for realizing program sharing among television, set top box and mobile equipment
CN102238427A (en) * 2010-05-07 2011-11-09 Tcl集团股份有限公司 Digital television capable of searching network sources
CN102932682A (en) * 2011-08-09 2013-02-13 上海广电电子科技有限公司 Internet TV stick
CN103686299A (en) * 2013-07-05 2014-03-26 郑州威科姆科技股份有限公司 Universal digital TV playing method based on android terminal device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008024167A3 (en) * 2006-08-24 2008-09-25 Sbc Knowledge Ventures Lp Methods and apparatus for sending stored advertising data
CN101296331A (en) * 2007-04-24 2008-10-29 深圳Tcl新技术有限公司 Broadcasting device
CN101686341A (en) * 2008-09-22 2010-03-31 宝利微电子系统控股公司 Method for realizing program sharing among television, set top box and mobile equipment
CN101489061A (en) * 2009-01-13 2009-07-22 深圳创维数字技术股份有限公司 Digital television receiver and expanded interface system thereof with peripheral unit
CN102238427A (en) * 2010-05-07 2011-11-09 Tcl集团股份有限公司 Digital television capable of searching network sources
CN102932682A (en) * 2011-08-09 2013-02-13 上海广电电子科技有限公司 Internet TV stick
CN103686299A (en) * 2013-07-05 2014-03-26 郑州威科姆科技股份有限公司 Universal digital TV playing method based on android terminal device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112533038A (en) * 2020-11-27 2021-03-19 卡莱特(深圳)云科技有限公司 Playing box wireless connection switching method and playing box capable of automatically switching wireless connection
CN112533038B (en) * 2020-11-27 2022-11-25 卡莱特云科技股份有限公司 Playing box wireless connection switching method and playing box capable of automatically switching wireless connection

Similar Documents

Publication Publication Date Title
RU2594295C1 (en) Device and method for processing of interactive service
CN101159577B (en) Apparatus for receiving adaptive broadcast signal and method thereof
CN102823238B (en) Media facility
WO2017084246A1 (en) Account login method and apparatus
CN102547443B (en) Multi-terminal system resource sharing and interaction realizing method
EP1883228A1 (en) A broadcast system with a local electronic service guide generation
JP2015073316A (en) Discovery information for ip multicast
CN104919808A (en) Storing non-real-time content
CN103974125A (en) Method and system for previewing and playing video streaming
CN102421027A (en) Program playing method and system
US20160309234A1 (en) Method and system for displaying rebroadcast watermark
CN101064841B (en) Network TV set up box, network television system and method for providing stream media
CN104427363A (en) Remote on-demand broadcasting system, a network set-top box and remote on-demand broadcasting method
KR20160068740A (en) Reception device, reception method, transmission device, and transmission method for media streaming
Ghiglieri I know what you watched last sunday-a new survey of privacy in HbbTV
CN103685303A (en) Method and system for processing connection content delivery network
CN101854249B (en) Internet information application method, system and terminal based on one-way broadcasting network
CN102137307B (en) Service entry addressing method, related terminal and system
CN105791936A (en) Player implementation method and device and player
US20100306794A1 (en) Method and device for channel management
JP2005151098A (en) Method and system for collecting audio-visual information
Kunić et al. Analysis of the hybrid broadcast broadband television standard-hbbtv
CN105338375A (en) Method and apparatus for transmitting specific data in digital video broadcasting, and receiving terminal
KR20080005693A (en) Data broadcasting signal, a receiver and a processing method for data broadcasting signal
CN103297822A (en) Set-top box and digital signal processing method thereof for television programs

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160720