CN106782623A - A kind of video player - Google Patents

A kind of video player Download PDF

Info

Publication number
CN106782623A
CN106782623A CN201710020840.8A CN201710020840A CN106782623A CN 106782623 A CN106782623 A CN 106782623A CN 201710020840 A CN201710020840 A CN 201710020840A CN 106782623 A CN106782623 A CN 106782623A
Authority
CN
China
Prior art keywords
file
video
module
broadcasting
video player
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
CN201710020840.8A
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.)
Zhejiang New Svnlan Technology Co Ltd
Original Assignee
Zhejiang New Svnlan 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 Zhejiang New Svnlan Technology Co Ltd filed Critical Zhejiang New Svnlan Technology Co Ltd
Priority to CN201710020840.8A priority Critical patent/CN106782623A/en
Publication of CN106782623A publication Critical patent/CN106782623A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B19/00Driving, starting, stopping record carriers not specifically of filamentary or web form, or of supports therefor; Control thereof; Control of operating function ; Driving both disc and head
    • G11B19/02Control of operating function, e.g. switching from recording to reproducing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/11Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information not detectable on the record carrier

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a kind of video player of field of computer technology, including System menu module, video display module, add file, playing module, interface module and database composition, player can normally run on the PC without RealPlayer, and .ebh video files are decoded, the interface module includes mode standard, screen mode toggle and mini mode capabilities, the database supports that data are imported and data are deleted, of the invention to have obvious advantage compared with traditional video player:Play smooth;Occupy little space, simple interface understands, user-friendly;Energy perfection runs on a variety of system platforms;It is multiple functional, the sequence of operations such as F.F., rewind, stopping, full frame can be carried out;The play history information of user, convenient viewing next time can be preserved by database;.Ebh format video files can be played, with wide market prospects.

Description

A kind of video player
Technical field
The present invention relates to field of computer technology, specially a kind of video player.
Background technology
With the popularization of computer application, the extensive use of calculating network, various media playback softwares occur commercially. Wherein RealPlayer, Apple company for surely belonging to MediaPlayer, RealNetworks company of Microsoft of fashion the most The mainstream media such as QuickTime player.But these software functions are fixed, without flexibility.The concept of multimedia technology Phase early 1980s is come across with application, for current various media formats, how all kinds of media is simply and easily played Turn into people's question of common concern, and the exploitation of media player also becomes particularly significant.Therefore, we have proposed one kind Video player comes into operation, to solve the above problems.
The content of the invention
It is an object of the invention to provide a kind of video player, to solve the problems, such as to be proposed in above-mentioned background technology.
To achieve the above object, the present invention provides following technical scheme:A kind of video player, including System menu mould Block, video display module, add file, playing module, interface module and database composition, the playing module are temporary comprising playing Stop, fast forwarding and fast rewinding and upper next collection, the playing module solves the problems, such as TrealAudio component registers, and player can not have Have on the PC of RealPlayer and normally run, and .ebh video files are decoded, the interface module includes standard Pattern, screen mode toggle and mini mode capabilities, the database support that data are imported and data are deleted.
Preferably, when the playing module is decoded to .ebh video files, WaveInStream is first played;Calculate Total reproduction time, is displayed in playing progress bar;The 3rd trifle data that loop play is taken out;Call successively CanvasStreasm、ImageStream、MemoryNormal、MemoryCompression、BGImageStream、 LogoJpgStream, Mp3Stream, FlashStream, FileObjStream, MemoryFile data;According to ACMIndex Time delay and synchronization are adjusted with SleepTickCount;Broadcasting terminates, into next trifle.
Preferably, the interface module includes main window, six menus and five open file dialogs, main window Mouthful title is set to " Media Player Classic Home Cinema ", window show " file ", " checking ", " broadcasting ", " navigation ", " collection ", the Help menu, video viewing area are black background display Media Player Classic Home Cinema version identifiers;
System interface devises indicative button " Select " and " Play ", has catered to and has got used to using indicative button User's request;Player text message highlight also is devised using Edit edit box components simultaneously, for making up RealAudio The deficiency of information alert.
File menu item divides into fastopen, the drop-down menu opened file, opening equipment, open catalogue, " fast The media file all types containing opening under speed opening file " item;
The dialog box is opened by OpenDialog components in the design of select file dialog box, can be to polytype text Part is selected and can be switched selection, the .Filter that optional file type passes through component between different file types:Attribute enters The corresponding setting of row.
Preferably, the playing module be mainly " play/pause ", " stopping ", " frame stepping ", " tinter ", " volume ", The basic broadcasting control item of " terminating after playback ", DMF media frameworks provide MediaPlayer and the classes of RealPlayer two are basic Broadcasting control assembly, by RealAudio media players integrated " broadcasting ", " pause ", " stopping ", " song progress adjust Section ", the control item of " sound regulation ".
Preferably, the also built-in nformation alert module of the video player, described information reminding module is used for user The related effective information of currently playing file is provided:Current title title, the type of played file, current play status, broadcast Put the information of duration/current time and currently playing progress.
Preferably, the video display module is set for showing currently playing video by the attribute of RealAudio Realize, by program:RealAudio.SetControls (' ImageWindow '), or the property value of Controls is set For:IMAGEWINDOW, or by setting the Display attributes of TMediaPlayer, realize that video player is broadcast in video file Obtained when putting and play display window.
Preferably, the System menu module, is an integration module, and comprising " logging off ", " logging off " uses Call DoStop events to stop current broadcasting, completed in addition " Application.Terminate " code terminator, or By two events of FreeOnRelease and Destory of RealAudio come completion system Safe withdrawing.
Compared with prior art, the beneficial effects of the invention are as follows:It is of the invention compared with traditional video player have it is bright Aobvious advantage:
1. play smooth, the video files such as MP4, MPEG, AVI, WMV, EBH can be played;
2. occupy little space, simple interface understands, user-friendly;
3. energy perfection runs on a variety of system platforms, such as XP, win7, win10 etc.;
4. multiple functional, the sequence of operations such as F.F., rewind, stopping, full frame can be carried out;
5. the play history information of user, convenient viewing next time can be preserved by database;
6. .Ebh format video files can be played, with wide market prospects.
Brief description of the drawings
Fig. 1 is functional block diagram of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is referred to, the present invention provides a kind of technical scheme:A kind of video player, including System menu module, video Display module, add file, playing module, interface module and database composition, the playing module include broadcasting pause, F.F. Rewind and upper next collection, the playing module solve the problems, such as TrealAudio component registers, and player can not have Normally run on the PC of RealPlayer, and .ebh video files are decoded, the interface module includes master die Formula, screen mode toggle and mini mode capabilities, the database support that data are imported and data are deleted.
Wherein, when the playing module is decoded to .ebh video files, WaveInStream is first played;Calculate total Reproduction time, be displayed in playing progress bar;The 3rd trifle data that loop play is taken out;Call successively CanvasStreasm、ImageStream、MemoryNormal、MemoryCompression、BGImageStream、 LogoJpgStream, Mp3Stream, FlashStream, FileObjStream, MemoryFile data;According to ACMIndex Time delay and synchronization are adjusted with SleepTickCount;Broadcasting terminates, and into next trifle, is loaded into ebh by ebh players and regards During frequency file, player is first parsed【Ebh files describe head】Whether preceding 44 fixed bytes are ebh files.
Particular by judging that EBH files describe the value of the Ident of head and judged, if the numerical value of Ident is " EBH ", file checking passes through, then again with evidence【Ebh files describe head】PageCount circulation parsings in 44 fixed bytes are regarded Frequently【Ebh trifles describe head】And generate display video.
Wherein, system default is to play in order, by loading ebh file headers, judges mark, version, password, issue Code, calculates cycle P ageCount times, calculates total reproduction time, is presented on player and plays total time and progress bar.
User can also click on the trifle that selection is played by mouse, and when user click trifle, ebh players are loaded into The data segment of video trifle, the Position that head is described by parsing trifle finds the starting position of data playback, by parsing Trifle describes the size that head Size obtains data segment, and after being loaded into trifle data segment, circulation immediately is loaded into and parses data volume 【Ebh document section data volumes】And restoring data is shown to user.
Further, include file in .ebh video files all the time and describe head, trifle and describe head, trifle data volume, trifle Have in data volume StreamZlibPageV31, StreamZlibPageV32, StreamZlibPageV33 ..., StreamZlibPageV3n, and the traffic flow information such as Data.If the trifle video of user click the 3rd, now, file description Head PageCount=3, take out Data in the 3rd trifle data, and by the 3rd trifle data be categorized into CanvasStreasm, ImageStream、MemoryNormal、MemoryCompression、BGImageStream、LogoJpgStream、 The stream class such as Mp3Stream, FlashStream, FileObjStream, MemoryFile,
Further, CanvasStreasm be frames images data flow, ImageStream be image data stream, MemoryNormal is common memory data flow, MemoryCompression is compression memory data flow, BGImageStream For image background data flow, LogoJpgStream be LOGO data flows, Mp3Stream be Mp3 voice data streams, FlashStream is Flash video data streams, FileObjStream is file destination data flow, MemoryFile is interior poke According to stream.And each data flow has a StreamZlibHeaderV3 file header, then plays out.
The player interface includes main window, six menus and five open file dialogs.Main window mark Topic is set to " Media Player Classic Home Cinema ".Window show " file ", " checking ", " broadcasting ", " lead The menu item such as boat ", " collection ", " help ", video viewing area is black background display Media Player Classic Home Cinema version identifiers.
System interface devises indicative button " Select " and " Play ", has catered to and has got used to using indicative button User's request;Player text message highlight also is devised using Edit edit box components simultaneously, for making up RealAudio The deficiency of information alert.
File menu item divides into fastopen, opens file, opening equipment, opens the drop-down menus such as catalogue.It is " fast The media file all types containing opening under speed opening file " item.
The dialog box is opened by OpenDialog components in the design of select file dialog box, can be to polytype text Part is selected and can be switched selection, the .Filter that optional file type passes through component between different file types:Attribute enters The corresponding setting of row.For example:
OpenDialog1.Filter:=' MPG (* .mpg) | * .mpg | '+' AVI (* .avi) | * .avi | '+...+ ‘EBH(*.ebh)|*.ebh|’。
The play control module be mainly " play/pause ", " stoppings ", " frame stepping ", " tinter ", " volume ", " time End after putting " etc. is basic to play control item.DMF media frameworks provide MediaPlayer and the classes of RealPlayer two are basic Play control assembly.By RealAudio media players integrated " broadcasting ", " pause ", " stopping ", " song progress is adjusted The control item such as section ", " sound regulation ".
Described information reminding module, the related effective information for providing the user with currently playing file:Current title Title, the type of played file, current play status, the information such as playing duration/current time and currently playing progress.Using RealAudio plays the functions such as integrated " broadcast state bar ", " playing progress bar " of control assembly.By Copy () function with ExtractFileName () function, while a predefined local string variable, then the filename for passing through OpenDialog Extract to may be implemented in and shown on text box the current song name and file type to be played.So as to realize predetermined text prompt work( Energy.
For example:Predefined Var FNStr.string, OpenDialog1.FileName is set to extract content, and assignment Give FNStr (FNStr:=ExtractFileName (OpenDialog1.FileName)), will finally by copy function Copy FNStr copy contents are to (edtFileName.Text in edit box text:=Copy (FNSTr, 1, Length (FNStr)- 4))。
The video display module, for showing currently playing video.Set by the attribute of RealAudio and realized, By program:RealAudio.SetControls (' ImageWindow '), or set Controls property value be: IMAGEWINDOW, it is also possible to by the Display attributes for setting TMediaPlayer, it is possible to achieve player is in video file Obtained during broadcasting and play display window.
The System menu module, is an integration module, and comprising " logging off ", " logging off " uses and call DoStop events stop current broadcasting, are completed in addition " Application.Terminate " code terminator.Also can lead to Two events of FreeOnRelease and Destory for crossing RealAudio carry out completion system Safe withdrawing.Its program is as follows:
Procedure TRealAudio1.N19Click(Sender:TObject);
Begin
RealAudio1.FreeOnRelease;
RealAudio1.Destory;
End;
" song played in order " is designed using Timer1 components.First for Timer1 writes OnTimer event handling journeys in advance Sequence
Procedure
TRealAudio1.N20click(Sender:TObject);
Begin
Timer1.Enabled:=true;
End;
The Enabled attributes for setting Timer are true, so as to trigger Ontimer events, finally realize that the order of song is broadcast Put.
Procedure TRealAudio1.N15Click(Sender:Tobject);
Begin
RealAudio1.DoStop;
Timer1.Enabled:=false;
End;
False is set to by the Enable attributes of Timer and terminates song broadcasting.
Described, playlist module, the song of the broadcasting for that can like oneself is added and deletes, can be right Song in list plays out control, for example:Click is clicked, double-click is played, played in order or shuffle etc..Played column In table design, the modification of user interface is realized by Image components.The Picture attributes of Image components can be adjusted to bitmap With.By ListBox components, for song provides list area, routine:
Although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with Understanding can carry out various changes, modification, replacement to these embodiments without departing from the principles and spirit of the present invention And modification, the scope of the present invention be defined by the appended.

Claims (7)

1. a kind of video player, it is characterised in that:Including System menu module, video display module, add file, broadcasting mould Block, interface module and database composition, the playing module include broadcasting pause, fast forwarding and fast rewinding and upper next collection, the broadcasting Module solves the problems, such as TrealAudio component registers, and player can normally run on the PC without RealPlayer, And .ebh video files are decoded, the interface module includes mode standard, screen mode toggle and mini mode capabilities, institute State database and support that data are imported and data are deleted.
2. a kind of video player according to claim 1, it is characterised in that:The playing module is to .ebh video files When being decoded, WaveInStream is first played;Total reproduction time is calculated, is displayed in playing progress bar;Loop play The 3rd trifle data taken out;Call successively CanvasStreasm, ImageStream, MemoryNormal, MemoryCompression、BGImageStream、LogoJpgStream、Mp3Stream、FlashStream、 FileObjStream, MemoryFile data;According to ACMIndex and SleepTickCount adjustment time delay and synchronization;Play Terminate, into next trifle.
3. a kind of video player according to claim 1, it is characterised in that:The interface module includes a main window Mouth, six menus and five open file dialogs, main window title are set to " MediaPlayer Classic Home Cinema ", window shows " file ", " checking ", " broadcasting ", " navigation ", " collection ", the Help menu, video viewing area For black background shows Media Player Classic Home Cinema version identifiers;
System interface devises indicative button " Select " and " Play ", has catered to the user for getting used to using indicative button Demand;Player text message highlight also is devised using Edit edit box components simultaneously, for making up RealAudio information The deficiency of prompting.
File menu item divides into fastopen, the drop-down menu opened file, opening equipment, open catalogue, " quickly beats The media file all types containing opening under open file " item;
The dialog box is opened by OpenDialog components in the design of select file dialog box, polytype file can be entered Row is selected and can switch selection, the .Filter that optional file type passes through component between different file types:It is right that attribute is carried out The setting answered.
4. a kind of video player according to claim 1, it is characterised in that:The playing module is mainly " broadcasting/temporary Stop ", " stopping ", " frame stepping ", " tinter ", " volume ", the basic broadcasting control item of " after playback terminate ", DMF media frameworks There is provided the basic broadcasting control assembly of MediaPlayer and the classes of RealPlayer two, by RealAudio media player collection Into " broadcasting ", " pause ", " stopping ", " regulation of song progress ", " sound regulation " control item.
5. a kind of video player according to claim 1, it is characterised in that:The also built-in information of the video player Reminding module, described information reminding module is used to provide the user with the related effective information of currently playing file:Current title The information of title, the type of played file, current play status, playing duration/current time and currently playing progress.
6. a kind of video player according to claim 1, it is characterised in that:The video display module is used to show works as The video of preceding broadcasting, is set by the attribute of RealAudio and realized, by program:RealAudio.SetControls (' ImageWindow '), or set Controls property value be:IMAGEWINDOW, or by setting TMediaPlayer Display attributes, realize video player obtained when video file is played broadcasting display window.
7. a kind of video player according to claim 1, it is characterised in that:The System menu module, is one comprehensive Matched moulds block, comprising " logging off ", " logging off " is being added using calling DoStop events to stop current broadcasting " Application.Terminate " code terminator is completed, or FreeOnRelease by RealAudio and Two events of Destory carry out completion system Safe withdrawing.
CN201710020840.8A 2017-01-12 2017-01-12 A kind of video player Pending CN106782623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710020840.8A CN106782623A (en) 2017-01-12 2017-01-12 A kind of video player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710020840.8A CN106782623A (en) 2017-01-12 2017-01-12 A kind of video player

Publications (1)

Publication Number Publication Date
CN106782623A true CN106782623A (en) 2017-05-31

Family

ID=58947803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710020840.8A Pending CN106782623A (en) 2017-01-12 2017-01-12 A kind of video player

Country Status (1)

Country Link
CN (1) CN106782623A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505514A (en) * 2019-08-13 2019-11-26 数字视觉云(北京)科技发展有限公司 A kind of video player based on ipfs network
WO2020007010A1 (en) * 2018-07-06 2020-01-09 北京微播视界科技有限公司 Volume display method and apparatus, terminal device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517154A (en) * 2012-06-26 2014-01-15 深圳中兴网信科技有限公司 Method for preloading video files and system thereof
CN104618817A (en) * 2015-02-26 2015-05-13 北京奇艺世纪科技有限公司 Method and device for controlling playing of website video
US20150195578A1 (en) * 2014-01-08 2015-07-09 Qualcomm Incorporated Carriage of hevc extension bitstreams and buffer model with mpeg-2 systems
CN104811795A (en) * 2014-01-24 2015-07-29 贝壳网际(北京)安全技术有限公司 Online video playing method and online video playing device
CN105025337A (en) * 2015-07-20 2015-11-04 合一网络技术(北京)有限公司 Video playing method and device
US20160171233A1 (en) * 2004-02-03 2016-06-16 Music Public Broadcasting, Inc. Method and system for preventing unauthorized recording of media content on an apple operating system
CN106535008A (en) * 2016-11-04 2017-03-22 浙江新盛蓝科技有限公司 Ebh file format and method for reading ebh files

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160171233A1 (en) * 2004-02-03 2016-06-16 Music Public Broadcasting, Inc. Method and system for preventing unauthorized recording of media content on an apple operating system
CN103517154A (en) * 2012-06-26 2014-01-15 深圳中兴网信科技有限公司 Method for preloading video files and system thereof
US20150195578A1 (en) * 2014-01-08 2015-07-09 Qualcomm Incorporated Carriage of hevc extension bitstreams and buffer model with mpeg-2 systems
CN104811795A (en) * 2014-01-24 2015-07-29 贝壳网际(北京)安全技术有限公司 Online video playing method and online video playing device
CN104618817A (en) * 2015-02-26 2015-05-13 北京奇艺世纪科技有限公司 Method and device for controlling playing of website video
CN105025337A (en) * 2015-07-20 2015-11-04 合一网络技术(北京)有限公司 Video playing method and device
CN106535008A (en) * 2016-11-04 2017-03-22 浙江新盛蓝科技有限公司 Ebh file format and method for reading ebh files

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020007010A1 (en) * 2018-07-06 2020-01-09 北京微播视界科技有限公司 Volume display method and apparatus, terminal device, and storage medium
GB2589789A (en) * 2018-07-06 2021-06-09 Beijing Microlive Vision Tech Co Ltd Volume display method and apparatus, terminal device, and storage medium
US11126399B2 (en) 2018-07-06 2021-09-21 Beijing Microlive Vision Technology Co., Ltd Method and device for displaying sound volume, terminal equipment and storage medium
CN110505514A (en) * 2019-08-13 2019-11-26 数字视觉云(北京)科技发展有限公司 A kind of video player based on ipfs network

Similar Documents

Publication Publication Date Title
US9996538B2 (en) Effects application based on object clustering
US9936184B2 (en) Code execution in complex audiovisual experiences
US9462309B2 (en) Playing and editing linked and annotated audiovisual works
US7440675B2 (en) AV information reproducing system and a reproducing method applied to the same system
US8526782B2 (en) Switched annotations in playing audiovisual works
US9330724B2 (en) Data recording method, data erasure method, data display method, storage device, storage medium, and program
KR101354739B1 (en) State-based timing for interactive multimedia presentations
TWI286294B (en) Meta data for moving picture
US20010033296A1 (en) Method and apparatus for delivery and presentation of data
US20060236219A1 (en) Media timeline processing infrastructure
JP2006518063A5 (en)
KR100370247B1 (en) Video browser based on character relation
CN110364189A (en) Transcriber and reproducting method
CN106782623A (en) A kind of video player
CN106899881B (en) Audio and video file playing method and device
JP2005322285A (en) Disk recording and reproducing apparatus
CA2539862A1 (en) An apparatus and method for displaying multimedia data combined with text, and recording medium containing a program for performing the same method
WO2006030995A9 (en) Index-based authoring and editing system for video contents
JP2009500909A (en) Synchronicity of interactive multimedia presentation management
Vicars-Harris Advanced Systems Format
Vicars-Harris OVERVIEW OF THE ADVANCED SYSTEMS FORMAT

Legal Events

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

Application publication date: 20170531

WD01 Invention patent application deemed withdrawn after publication