Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is that the playlist of the embodiment of the present invention shows control method overall flow figure.As shown in Figure 1, when described playlist is in hidden state, the method comprises:
S101, reception user are to the clicking operation of the list control of described player;
If the described playlist of S102 adopts inside expansion mode, then keep main window width constant, reduce broadcast window, and insert playlist window in described main window;
If the described playlist of S103 adopts outside expansion mode, then keep broadcast window width constant, expand the width of described main window, and insert playlist window in main window after expansion.
When described playlist is in deployed condition, the method for Fig. 1 also comprises:
If the described playlist of S104 adopts inside expansion mode, then keep main window width constant, delete playlist window, broadcast window width is extended to described main window width;
If the described playlist of S105 adopts outside expansion mode, then keep broadcast window width constant, delete playlist window, by main window reduced width to described broadcast window width.
When Fig. 2 and Fig. 3 shows and adopts inside expansion mode, the interface schematic diagram shown by player.Wherein, interface when Fig. 2 is hiding playlist, Fig. 3 is the interface after expanded playlist.
When the main window of player hides playlist, click list control, the width of main window remains unchanged, and vacates display area, final broadcast window width=main window width-playlist width by reducing broadcast window for playlist.If user clicks list control again, then remove list window, amplify broadcast window, final broadcast window width=main window width, circulates successively.
When the main window of player displays the play list, click list control, main window width remains unchanged, and removes list window, and broadcast window amplifies, final broadcast window width=main window width; If user clicks list control again, then remove list window, amplify broadcast window: final broadcast window width=main window width, circulate successively.
When Fig. 4 and Fig. 5 shows and adopts outside expansion mode, the interface schematic diagram shown by player.Wherein, interface when Fig. 4 is expanded playlist, Fig. 5 is the interface of hiding playlist.
When the main window of player hides playlist, click list control, the width of broadcast window remains unchanged, by expansion main window for playlist vacates display area, final main window width=broadcast window width+playlist width.If user clicks list control again, then remove list window, keep broadcast window width constant, final main window width=broadcast window width, circulates successively.
When the main window of player displays the play list, click list control, broadcast window width remains unchanged, and removes list window, final main window width=broadcast window width; If user clicks list control again, then keep broadcast window width constant, expansion main window width, final main window width=broadcast window width+playlist width, circulates successively.
Alternatively, when described player is full desktop display main window, the method for Fig. 1 also comprises:
S106, when described playlist is hidden state, keeps main window width constant, reduce the width of broadcast window, and insert playlist window in described main window;
S107, when described playlist is deployed condition, keeps main window width constant, delete playlist window, broadcast window width is extended to described main window width.
Alternatively, if described playlist adopts inside expansion mode, and when described broadcast window has been contracted to minimum widith, described method also comprises:
S108, the width keeping described broadcast window are minimum widith, and expand the width of described main window, insert playlist window in main window after expansion.
Alternatively, the method for Fig. 1 also comprises:
S100, reception user select, and arrange the expansion mode of described playlist.
Corresponding to the method shown in Fig. 1, the embodiment of the present invention also provides a kind of playlist of player to show control device.Fig. 6 is the functional block diagram that the present embodiment device playlist shows control 60, and as shown in Figure 6, device 60 comprises: user operation unit 601, for receiving the clicking operation of user to the list control of described player; Playlist control module 602, when described playlist is in hidden state, for when described playlist adopts inside expansion mode, keeps main window width constant, reduces broadcast window, and insert playlist window in described main window; When described playlist adopts outside expansion mode, keep broadcast window width constant, expand the width of described main window, and insert playlist window in main window after expansion.
Further, playlist control module 602, when described playlist is in deployed condition, also for when described playlist adopts inside expansion mode, keep main window width constant, delete playlist window, broadcast window width is extended to described main window width; When described playlist adopts outside expansion mode, keep broadcast window width constant, delete playlist window, by main window reduced width to described broadcast window width.
Further, playlist control module 602, also for when described player be full desktop display main window and described playlist is hidden state time, keep main window width constant, reduce the width of broadcast window, and insert playlist window in described main window; When described player is full desktop display main window and described playlist is deployed condition, keeps main window width constant, delete playlist window, broadcast window width is extended to described main window width.
Further, playlist control module 602, also for adopting inside expansion mode when described playlist, and described broadcast window is when being contracted to minimum widith, the width of described broadcast window is kept to be minimum widith, and expand the width of described main window, insert playlist window in main window after expansion.
Because the playlist shown in Fig. 6 shows that the principle of work of control device has been described in detail it in Fig. 1-Fig. 5, repeat no more herein.
The embodiment of the present invention also provides a kind of player, and this player contains the playlist shown in Fig. 6 and shows control device 60.Fig. 7 is the detailed construction schematic diagram of the present embodiment player.As shown in Figure 7: the player of the embodiment of the present invention comprises playback process device 10, user's interface device 20, and transmission control control device 30.Wherein, playlist shows that control device 60 is arranged in user's interface device 20.
Particularly, playback process device 10 mainly comprises: data communication interface, file read module, separation module, audio decoder module, Video decoding module, audio frequency rendering module, Video Rendering module and for the playing controller of dispatching with control.
Each ingredient function of playback process device 10 is as follows: file read module, for by data communication interface from transmission control unit 30 Gains resources data; Separation module, for being classified by resource data, voice data is sent to audio decoder module, video data sends to Video decoding module; Audio decoder module, for decoding to audio file and exporting decoded voice data to audio playing apparatus via after the process of audio frequency rendering module; Video decoding module, for decoding to video file and decoded video data being delivered to user's interface device 20 via Video Rendering module and playback interface, and presents to user by the broadcast window of user receiving device 20.
The transmission control module of transmission control unit 30, carries out communication for the node adopting proprietary protocol or P2P agreement and usertracking server and have a resource data.When playing audio-video document, the resource data received is preserved by memory module or is kept at a Disk Locality or core position temporarily by transmission control unit, and preservation address is sent to data communication interface; The separation module of playback process device 10 constantly reads resource data in the mode of request-reply from preservation position by file read module and data communication module.
User's interface device 20 comprises playlist unit, playlist display unit, main window, broadcast window, header window, control window and playlist and shows control device 60.This playlist shows that control device 60 is for carrying out management and dispatching and control to all modules of user's interface device 20.Main window directly presents to user's display interface by display, in order to give the method for the better video tastes of user and abundanter displaying playlist, control window is provided with progress bar and list control, user can change display list window by operating list control.Playlist is shown control device 60 correspondence adjustment main window, broadcast window, header window and is controlled window simultaneously.
Fig. 8-Figure 11 shows for adopting the system shown in Fig. 7 to carry out playlist the idiographic flow controlled.Wherein Fig. 8 is that main window does not adopt full desktop to show and main window when showing playlist, to the process flow diagram that list control operates; Fig. 9 is that main window does not adopt full desktop to show and main window when concealing playlist, to the process flow diagram that list control operates.Figure 10 and Figure 11 is the process flow diagram of two exceptions, and wherein Figure 10 is main window when adopting full desktop to show, to the process flow diagram that list control operates; Figure 11 runs into the minimum processing flow chart of broadcast window when inwardly launching list.
As shown in Figure 8, when main window does not adopt full desktop to show and main window shows playlist, after user clicks list control, playlist shows that control device 60 judges the expansion mode of playlist.If inwardly launch, then obtained the window information of playlist unit by playlist display unit, keep main window width constant, remove playlist, amplify broadcast window, make final broadcast window width=main window width; If user clicks list control again, then keep main window width constant, insert list window after reducing broadcast window, make final broadcast window width=main window width-playlist width.Said process circulates down by repeatedly clicking list control.
Refer again to Fig. 8, if outwards launch, the same window information being obtained playlist unit by playlist display unit, keep broadcast window width constant, remove playlist, final main window width=current main window width-playlist width=broadcast window width, because main window reduces, therefore need to shorten the width controlling window and header window simultaneously, make itself and main window width synchronization; If user clicks list control again, then expand main window width to insert playlist, final main window width=current main window width+playlist width, in like manner, control window and header window also will carry out accommodation along with main window.Said process circulates down by repeatedly clicking list control.
As shown in Figure 9, when main window does not adopt full desktop to show and main window conceals playlist, after user clicks list control, playlist shows that control device 60 judges the expansion mode of playlist.If inwardly launch, then obtain the window information of playlist unit by playlist display unit, keep main window width constant, reduce illustration playlist after broadcast window, make final broadcast window width=main window width-playlist width; If user clicks list control again, then keep main window width constant, remove playlist, expand broadcast window, make final broadcast window width=main window width.Said process circulates down by repeatedly clicking list control.
Refer again to Fig. 9, if outwards launch, the same window information being obtained playlist unit by playlist display unit, keep broadcast window width constant, playlist after expansion main window width, final main window width=current main window width+playlist width, because main window expands, therefore need to expand the width controlling window and header window simultaneously, make itself and main window width synchronization; If user clicks list control again, then keep broadcast window width constant, remove playlist, make the width of final main window width=current main window width-playlist width=broadcast window, in like manner, control window and header window also will carry out accommodation along with main window.Said process circulates down by repeatedly clicking list control.
As shown in Figure 10, full desktop is adopted to show and main window displays the play when list at main window, after user clicks list control, no matter be inwardly to launch or flared mode all can perform following operation: playlist display unit obtains the window information of playlist unit, remove playlist, amplify broadcast window width, make final broadcast window width=main window width=desktop width.If user clicks list control again, then insert playlist, reduce broadcast window width, make final broadcast window width=main window width-playlist width.Said process circulates down by repeatedly clicking list control.
Refer again to Figure 10, when main window adopts full desktop to show and main window hides playlist, after user clicks list control, no matter be inwardly to launch or flared mode all can perform following operation: playlist display unit obtains the window information of playlist unit, insert playlist, reduce broadcast window width, make final broadcast window width=main window width-playlist width.If user clicks list control again, then remove playlist, expand broadcast window width, make final broadcast window width=main window width=desktop width.Said process circulates down by repeatedly clicking list control.
As shown in figure 11, when main window is hidden playlist and is inwardly expansion, if broadcast window width is greater than minimum widith, then process according to the left-hand branch of Fig. 9; If broadcast window width is less than or equal to minimum widith, then main window width is increased, make final main window width=broadcast window minimum widith+list widths, widen simultaneously and control window and header window, and insert list window.Wherein, the broadcast window minimum widith of the present embodiment indication is the minimum widith not affecting user's viewing, if be less than this width, user cannot normally watch.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above embodiment only in order to the technical scheme of the embodiment of the present invention to be described, is not intended to limit; Although be described in detail the embodiment of the present invention with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of each embodiment technical scheme of the embodiment of the present invention.