CN106559560B - Method and device for displaying information and electronic equipment - Google Patents
Method and device for displaying information and electronic equipment Download PDFInfo
- Publication number
- CN106559560B CN106559560B CN201610920763.7A CN201610920763A CN106559560B CN 106559560 B CN106559560 B CN 106559560B CN 201610920763 A CN201610920763 A CN 201610920763A CN 106559560 B CN106559560 B CN 106559560B
- Authority
- CN
- China
- Prior art keywords
- audio
- video
- playing
- window
- screen
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000004458 analytical method Methods 0.000 claims description 11
- 238000005516 engineering process Methods 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4438—Window management, e.g. event handling following interaction with the user interface
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention discloses a method and a device for displaying information and electronic equipment, relates to an information display technology, and can improve the information display efficiency. The method for displaying information comprises the following steps: analyzing the received notification information, and judging whether the notification information contains audio/video address information or not; if the audio/video address information is contained, acquiring a mapped audio/video file from the audio/video address information; analyzing the audio and video file to obtain audio and video playing parameters and audio and video streams; creating an audio and video playing window according to the audio and video playing parameters, and loading the audio and video stream in the created video playing window; and after the screen is in a lighting state, playing the loaded audio and video stream. The method is suitable for displaying the audio and video data on the screen locked by the screen.
Description
Technical Field
The present invention relates to information display technologies, and in particular, to a method and an apparatus for displaying information, and an electronic device.
Background
With the continuous development of computer communication and internet technology, electronic devices are more and more widely used, for example, smart mobile phones, personal digital assistants, palm computers and notebook computers are more and more widely used, and become important tools for people to obtain information and communicate with each other in daily life and work. With the increasing demand of people, more and more Applications (APPs) are installed in electronic devices, and the provided Application functions are more and more abundant. For example, as a third major social carrier behind characters and pictures, a short video is likely to become a new development trend of social contact, and a user can share the short video through a social platform, and can play a plurality of short videos for watching in a playing interface of a player by using a player of a client, so that the user experience is greatly enhanced and enriched.
In order to enable a user to acquire information more conveniently, an operator of the electronic equipment is provided with a notification area for displaying information summaries on a screen of the electronic equipment, when the screen of the electronic equipment receives information in an unlighted state (screen locking), the information or the information summaries sent by various mobile applications are displayed in a text format in the notification area according to a certain format due to the fact that the size of the screen is limited, and the information or the information summaries are conveniently referred when the screen of the user is lit.
However, the current method for displaying information can only display information in text format in the notification area, and with the development of the information era, users can communicate information such as characters, pictures, videos, audios and the like, and the notification area of the electronic device cannot bear large-capacity multimedia information such as audios and videos. Therefore, the current notification area does not support audio and video display, a text abstract of the audio and video is displayed in the notification area, an audio and video inlet is provided in the notification area, if a user needs to inquire the audio and video, the user can jump to an application program which correspondingly sends notification information in an operating system through the inlet, the application program for playing the audio and video is started, then the audio and video is pulled from the audio and video address according to an audio and video address linked with the inlet to be played completely, for example, for the situation that the received WeChat contains the video, the WeChat application program needs to be entered through the inlet, the WeChat of the WeChat interface is clicked, and the player is started to pull the video to be played, so that the time required for browsing the audio and video is longer, the operation is more complicated, and the information.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for displaying information, and an electronic device, which can improve information display efficiency, so as to solve a problem of low information display efficiency caused by the need to enter an application program through an entry and start a player to pull a video for playing in an existing method for displaying information.
In a first aspect, an embodiment of the present invention provides a method for displaying information, including:
analyzing the received notification information, and judging whether the notification information contains audio/video address information or not;
if the audio/video address information is contained, acquiring a mapped audio/video file from the audio/video address information;
analyzing the audio and video file to obtain audio and video playing parameters and audio and video streams;
creating an audio and video playing window according to the audio and video playing parameters, and loading the audio and video stream in the created video playing window;
and after the screen is in a lighting state, playing the loaded audio and video stream.
With reference to the first aspect, in a first implementation manner of the first aspect, before the parsing the received notification information, the method further includes:
binding the notification information service of the operating system.
With reference to the first aspect or the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the creating an audio/video playing window according to the audio/video playing parameter includes:
if the number of the audio/video files is multiple, inquiring playing attributes;
when the playing attribute is multi-window playing, a corresponding audio/video playing window is created according to audio/video playing parameters obtained by analyzing each audio/video file;
and when the playing attribute is single-window playing, creating a shared audio/video playing window for all audio/video files on the screen.
With reference to the first aspect or the first implementation manner of the first aspect, in a third implementation manner of the first aspect, the creating an audio/video playing window according to the audio/video playing parameter includes:
acquiring a source application program for transmitting an audio and video file corresponding to the audio and video playing parameter;
inquiring whether an audio and video playing window mapped by the source application program is created on the screen, and if not, creating a mapped audio and video playing window for the source application program; and if so, executing the step of loading the audio and video stream in the created video playing window.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the playing the loaded audio and video stream after the screen is in the lighting state includes:
if the current screen is in a lighting state, playing the loaded audio and video stream in the created video playing window; and if the current screen is in a non-lighting state, waiting for the screen to be lighted, and after the current screen is in a lighting state, playing the loaded audio and video stream in the created video playing window.
With reference to the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect, the illuminating the screen includes:
and when the screen in the unlighted state is monitored to receive the lighting operation of the user, confirming that the screen is lighted.
With reference to the fourth implementation manner of the first aspect, in a sixth implementation manner of the first aspect, the playing the loaded audio and video stream in the created video playing window includes:
and if a plurality of audio and video streams are loaded in the created video playing window, playing the loaded audio and video streams according to the loading time sequence.
With reference to the fourth implementation manner of the first aspect, in a seventh implementation manner of the first aspect, the playing the loaded audio and video stream in the created video playing window includes:
if a plurality of audio and video streams are loaded in the created video playing window, the playing priorities of the audio and video streams are obtained, and the loaded audio and video streams are played according to the sequence of the playing priorities from high to low.
In a second aspect, an embodiment of the present invention provides an apparatus for displaying information, including: a notification message analysis module, an audio/video file acquisition module, a file analysis module, a loading module and a playing module, wherein,
the notification message analysis module is used for analyzing the received notification message and judging whether the notification message contains audio and video address information or not;
the audio/video file acquisition module is used for acquiring a mapped audio/video file from the audio/video address information if the audio/video address information is contained;
the file analysis module is used for analyzing the audio and video file to obtain audio and video playing parameters and audio and video streams;
the loading module is used for creating an audio and video playing window according to the audio and video playing parameters and loading the audio and video stream in the created video playing window;
and the playing module is used for playing the loaded audio and video stream after the screen is in the lighting state.
With reference to the second aspect, in a first implementation manner of the second aspect, the apparatus further includes:
and the binding module is used for binding the notification information service of the operating system.
With reference to the second aspect or the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the load module includes: a query unit, a multi-window creating unit, a shared window creating unit, and a loading unit, wherein,
the query unit is used for querying the playing attribute if the number of the audio/video files is multiple; when the playing attribute is multi-window playing, a multi-window creating unit is notified; when the playing attribute is single-window playing, notifying a shared window creating unit;
the multi-window creating unit is used for creating a corresponding audio and video playing window according to the audio and video playing parameters obtained by analyzing each audio and video file;
the shared window creating unit is used for creating a shared audio and video playing window for all the audio and video files on the screen;
and the loading unit is used for loading the audio and video stream in the created video playing window.
With reference to the second aspect or the first implementation manner of the second aspect, in a third implementation manner of the second aspect, the load module includes: a source application program obtaining unit, a playing window inquiring unit, a playing window establishing unit and an audio and video stream loading unit, wherein,
the source application program acquisition unit is used for acquiring a source application program for transmitting the audio and video file corresponding to the audio and video playing parameter;
a playing window inquiring unit, configured to inquire whether an audio/video playing window mapped by the source application program is created on the screen, and if not, notify the playing window creating unit; if yes, informing an audio and video stream loading unit;
a playing window creating unit, configured to create a mapped audio/video playing window for the source application;
and the audio and video stream loading unit is used for loading the audio and video stream in the created video playing window.
With reference to the second aspect, in a fourth implementation manner of the second aspect, the playing module includes: a lighting state judging unit and a playing unit, wherein,
a lighting state judging unit for judging whether the current screen is in a lighting state, if so, informing the playing unit; if not, waiting for the next time period;
and the playing unit is used for playing the loaded audio and video stream in the created video playing window when the screen is lightened.
With reference to the fourth implementation of the second aspect, in a fifth implementation of the second aspect, the illuminating the screen includes:
and when the screen in the unlighted state is monitored to receive the lighting operation of the user, confirming that the screen is lighted.
With reference to the fourth implementation manner of the second aspect, in a sixth implementation manner of the second aspect, the playing the loaded audio and video stream in the created video playing window includes:
and if a plurality of audio and video streams are loaded in the created video playing window, playing the loaded audio and video streams according to the loading time sequence.
With reference to the fourth implementation manner of the second aspect, in a seventh implementation manner of the second aspect, the playing the loaded audio and video stream in the created video playing window includes:
if a plurality of audio and video streams are loaded in the created video playing window, the playing priorities of the audio and video streams are obtained, and the loaded audio and video streams are played according to the sequence of the playing priorities from high to low.
In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the following operations:
analyzing the received notification information, and judging whether the notification information contains audio/video address information or not;
if the audio/video address information is contained, acquiring a mapped audio/video file from the audio/video address information;
analyzing the audio and video file to obtain audio and video playing parameters and audio and video streams;
creating an audio and video playing window according to the audio and video playing parameters, and loading the audio and video stream in the created video playing window;
and after the screen is in a lighting state, playing the loaded audio and video stream.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, configured to store an application program, where the application program is configured to execute a method for presenting information provided in the embodiment of the present invention.
In a fifth aspect, an embodiment of the present invention further provides an application program, configured to execute the method for displaying information provided in the embodiment of the present invention.
According to the method, the device and the electronic equipment for displaying the information, provided by the embodiment of the invention, whether the notification information contains audio and video address information or not is judged by analyzing the received notification information; if the audio/video address information is contained, acquiring a mapped audio/video file from the audio/video address information; analyzing the audio and video file to obtain audio and video playing parameters and audio and video streams; creating an audio and video playing window according to the audio and video playing parameters, and loading the audio and video stream in the created video playing window; after the screen is in a lighting state, the loaded audio and video stream is played, so that the information display efficiency can be improved, and the problem of low information display efficiency caused by the fact that an application program needs to enter through an entrance and a player needs to be started to pull the video for playing in the existing information display method is solved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for displaying information according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a second method for displaying information according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an apparatus for displaying information according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a schematic flow chart of a method for displaying information according to an embodiment of the present invention, as shown in fig. 1, the method according to the embodiment may include:
in this embodiment, for large-capacity multimedia information such as audio and video, the notification information includes the address information of the audio and video, and by analyzing the notification information, if the notification information includes the audio and video address information, it indicates that the large-capacity multimedia information needs to be transmitted. The notification information may be one or more pieces of information.
In this embodiment, as an optional embodiment, before the analyzing the received notification information, the method further includes:
binding the notification information service of the operating system.
In this embodiment, the notification information service of the operating system is bound in advance, so that the notification information sent by each mobile application (program) can be monitored, for example, the chat notification information sent by the QQ application program, the short message sent by the short message application program, the WeChat sent by the WeChat application program, and the like.
102, if the audio/video address information is contained, acquiring a mapped audio/video file from the audio/video address information;
in this embodiment, the audio/video server corresponding to the audio/video address information is connected according to the audio/video address information, and a corresponding audio/video file is downloaded from the audio/video server. As an alternative embodiment, the downloaded audio/video file is stored in a preset temporary folder.
In this embodiment, as an optional embodiment, the method further includes:
and if the received notification information does not contain audio and video address information, displaying the notification information or the notification information abstract in a preset notification area.
In this embodiment, the non-audio/video notification information may be processed according to the prior art process.
In this embodiment, as an optional embodiment, the audio/video address information may be uniform resource locator information, may also be IP address information, may also be hypertext transfer protocol address information, and the like.
103, analyzing the audio and video file to obtain audio and video playing parameters and audio and video stream;
in this embodiment, as an optional embodiment, the audio/video playing parameters include: one or any combination of a playing format, a bit rate, a frame rate, a sampling rate, an audio and video coding mode, audio and video size, an aspect ratio, an audio channel and the like.
104, creating an audio and video playing window according to the audio and video playing parameters, and loading the audio and video stream in the created video playing window;
in this embodiment, as an optional embodiment, creating an audio/video playing window according to the audio/video playing parameter includes:
if the number of the audio/video files is multiple, inquiring playing attributes;
when the playing attribute is multi-window playing, a corresponding audio/video playing window is created according to audio/video playing parameters obtained by analyzing each audio/video file;
and when the playing attribute is single-window playing, creating a shared audio/video playing window for all audio/video files on the screen.
In this embodiment, a user may set an audio/video playing mode on a screen interface, for example, may set multi-window playing of audio/video on a screen, where each window plays an audio/video. And when the number of the obtained audio and video files is more than the window playing number set by the user, sequentially placing the excessive audio and video files in each window.
In this embodiment, as another optional embodiment, creating an audio/video playing window according to the audio/video playing parameter includes:
acquiring a source application program for transmitting an audio and video file corresponding to the audio and video playing parameter;
inquiring whether an audio and video playing window mapped by the source application program is created on the screen, and if not, creating a mapped audio and video playing window for the source application program; and if so, executing the step of loading the audio and video stream in the created video playing window.
In this embodiment, an audio/video playing window may be created for each application program according to the type of the application program, for example, a WeChat audio/video playing window is created for an audio/video from a WeChat application program, and a QQ audio/video playing window is created for an audio/video from a QQ application program.
And 105, playing the loaded audio and video stream after the screen is in a lighting state.
In this embodiment, as an optional embodiment, after the screen is in the lighting state, the playing the loaded audio/video stream includes:
if the current screen is in a lighting state, playing the loaded audio and video stream in the created video playing window; and if the current screen is in a non-lighting state, waiting for the screen to be lighted, and after the current screen is in a lighting state, playing the loaded audio and video stream in the created video playing window.
In this embodiment, as an optional embodiment, the lighting the screen includes:
and when the screen in the unlighted state is monitored to receive the lighting operation of the user, confirming that the screen is lighted.
In this embodiment, when the screen is in an unlighted state (standby or screen lock), the screen may be lit (activated or unlocked) in two ways, one way is that a new notification message is received, the screen is automatically lit, but the duration of the lighting is short; the other mode is the lighting actively performed by the user, that is, the screen is lighted after receiving the lighting operation of the user, for example, an unlocking password is input, or a power key of the electronic device is clicked or pressed, or an unlocking button of the electronic device is operated, wherein, as an alternative embodiment, the screen is in a lighted state that the user presses the power key, and the screen locking screen is in an activated state but the screen locking is not released. In this embodiment, the automatic lighting for receiving new notification information does not belong to the category in which the screen is in a lighting state.
In this embodiment, as an optional embodiment, the playing the loaded audio and video stream in the created video playing window includes:
and if a plurality of audio and video streams are loaded in the created video playing window, playing the loaded audio and video streams according to the loading time sequence.
As another optional embodiment, playing the loaded audio and video stream in the created video playing window includes:
if a plurality of audio and video streams are loaded in the created video playing window, the playing priorities of the audio and video streams are obtained, and the loaded audio and video streams are played according to the sequence of the playing priorities from high to low.
In this embodiment, as for the playing priority of the audio/video stream, the audio/video server may set the playing priority of the audio/video stream in the transmitted audio/video file, or the user may set the playing priority of each audio/video stream on the screen lock screen, for example, the playing priority of the audio/video stream in the WeChat is set to be higher than the playing priority of the audio/video stream in the QQ, and the playing priority of the audio/video stream in the QQ is also higher than the playing priority of the audio/video stream pushed by the operator server, which is not limited in this embodiment.
The following describes the embodiment in further detail by taking the notification information of the wechat application as an example.
Example two
Fig. 2 is a schematic flow chart of a method for displaying information according to a second embodiment of the present invention, as shown in fig. 2, the method according to the present embodiment may include:
step 201, installing a video lock screen monitor for starting a video lock screen, and binding a notification information service of an operating system to enable the video lock screen monitor to monitor notification information sent by a WeChat at any time;
step 202, the screen locking screen in the unlighted state analyzes the notification information received by the video screen locking monitor to obtain audio and video address information;
in this embodiment, the wechat application receives the small video notification information sent by one of the friends, and after the video lock screen monitor monitors the small video notification information, the video lock screen monitor analyzes the small video notification information, and the obtained audio and video address information is:
/sdcard/wechat/videos/file_1.mp4。
step 203, downloading an audio/video file according to the audio/video address information;
in the step, according to the audio and video address information (/ sdcard/wechat/video/file _1.mp4) obtained by analysis, an audio and video file (file _1.mp4) needing to be played is found and downloaded.
in this embodiment, a parameter of the audio/video file is obtained, for example, a playing format of the audio/video file is obtained as mp 4.
and step 206, receiving the operation of triggering the screen to light by the user, lighting the screen, and automatically playing the loaded video stream.
In this embodiment, a user clicks a power key of a mobile phone (handset), the standby state is changed into an active state, the screen is lighted, and a lock screen on the screen automatically starts playing the loaded video stream.
In the method for displaying information in this embodiment, whether the notification information includes audio/video address information is determined by analyzing the received notification information; if the audio/video address information is contained, acquiring a mapped audio/video file from the audio/video address information; analyzing the audio and video file to obtain audio and video playing parameters and audio and video streams; creating an audio and video playing window according to the audio and video playing parameters, and loading the audio and video stream in the created video playing window; and after the screen is in a lighting state, playing the loaded audio and video stream. Therefore, compared with the text abstract information of the common lock screen, the video lock screen can bear more information, is easier to understand, does not need to carry out a complicated operation process, shortens the time required for browsing the audio and video, effectively improves the information display efficiency, and greatly improves the information acquisition efficiency of a user; furthermore, the user does not need to unlock, and can directly finish the preview and play of the video information on the lock screen by providing the lock screen supporting the video play, so that the complex jump logic is avoided, and the method is more convenient and fast.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an apparatus for displaying information according to a third embodiment of the present invention, as shown in fig. 3, the apparatus of this embodiment may include: a notification message analyzing module 31, an audio/video file obtaining module 32, a file analyzing module 33, a loading module 34 and a playing module 35, wherein,
the notification message analysis module 31 is configured to analyze the received notification message and determine whether the notification message includes audio/video address information;
in this embodiment, for large-capacity multimedia information such as audio and video, the notification information includes the address information of the audio and video, and by analyzing the notification information, if the notification information includes the audio and video address information, it indicates that the large-capacity multimedia information needs to be transmitted. The notification information may be one or more pieces of information.
The audio/video file acquisition module 32 is used for acquiring a mapped audio/video file from the audio/video address information if the audio/video address information is contained;
in this embodiment, the audio/video server corresponding to the audio/video address information is connected according to the audio/video address information, and a corresponding audio/video file is downloaded from the audio/video server. As an alternative embodiment, the downloaded audio/video file is stored in a preset temporary folder.
In this embodiment, as an optional embodiment, the audio/video file obtaining module 32 is further configured to, if the received notification information does not include audio/video address information, display the notification information or the notification information summary in a preset notification area.
In this embodiment, as an optional embodiment, the audio/video address information may be uniform resource locator information, may also be IP address information, may also be hypertext transfer protocol address information, and the like.
The file analysis module 33 is configured to analyze the audio/video file to obtain audio/video playing parameters and audio/video streams;
in this embodiment, as an optional embodiment, the audio/video playing parameters include: one or any combination of a playing format, a bit rate, a frame rate, a sampling rate, an audio and video coding mode, audio and video size, an aspect ratio, an audio channel and the like.
The loading module 34 is configured to create an audio/video playing window according to the audio/video playing parameter, and load the audio/video stream in the created video playing window;
in this embodiment, as an optional embodiment, the loading module 34 includes: a query unit, a multi-window creation unit, a shared window creation unit, and a loading unit (not shown in the figure), wherein,
the query unit is used for querying the playing attribute if the number of the audio/video files is multiple; when the playing attribute is multi-window playing, a multi-window creating unit is notified; when the playing attribute is single-window playing, notifying a shared window creating unit;
the multi-window creating unit is used for creating a corresponding audio and video playing window according to the audio and video playing parameters obtained by analyzing each audio and video file;
the shared window creating unit is used for creating a shared audio and video playing window for all the audio and video files on the screen;
and the loading unit is used for loading the audio and video stream in the created video playing window.
In this embodiment, a user may set an audio/video playing mode on a screen interface, for example, may set multi-window playing of audio/video on a screen, where each window plays an audio/video. And when the number of the obtained audio and video files is more than the window playing number set by the user, sequentially placing the excessive audio and video files in each window.
In this embodiment, as another optional embodiment, the loading module 34 includes: a source application program obtaining unit, a playing window inquiring unit, a playing window establishing unit and an audio and video stream loading unit, wherein,
the source application program acquisition unit is used for acquiring a source application program for transmitting the audio and video file corresponding to the audio and video playing parameter;
the playing window inquiring unit is used for inquiring whether an audio/video playing window mapped by the source application program is created on the screen or not, and if not, the playing window creating unit is informed; if yes, informing an audio and video stream loading unit;
a playing window creating unit, configured to create a mapped audio/video playing window for the source application;
and the audio and video stream loading unit is used for loading the audio and video stream in the created video playing window.
In this embodiment, an audio/video playing window may be created for each application program according to the type of the application program, for example, a WeChat audio/video playing window is created for an audio/video from a WeChat application program, and a QQ audio/video playing window is created for an audio/video from a QQ application program.
And the playing module 35 is configured to play the loaded audio and video stream after the screen is in the lighting state.
In this embodiment, as an optional embodiment, the playing module 35 includes: a lighting state judgment unit, and a playback unit (not shown), wherein,
a lighting state judging unit for judging whether the current screen is in a lighting state, if so, informing the playing unit; if not, waiting for the next time period;
and the playing unit is used for playing the loaded audio and video stream in the created video playing window when the screen is lightened.
In this embodiment, the lighting the screen includes:
and when the screen in the unlighted state is monitored to receive the lighting operation of the user, confirming that the screen is lighted.
In this embodiment, as an optional embodiment, the playing the loaded audio and video stream in the created video playing window includes:
and if a plurality of audio and video streams are loaded in the created video playing window, playing the loaded audio and video streams according to the loading time sequence.
In this embodiment, as another optional embodiment, the playing the loaded audio and video stream in the created video playing window includes:
if a plurality of audio and video streams are loaded in the created video playing window, the playing priorities of the audio and video streams are obtained, and the loaded audio and video streams are played according to the sequence of the playing priorities from high to low.
In this embodiment, as an optional embodiment, the apparatus further includes:
and a binding module (not shown) for binding the notification information service of the operating system.
In this embodiment, the notification information service of the operating system is bound in advance, so that the notification information sent by each mobile application (program) can be monitored, for example, the chat notification information sent by the QQ application program, the short message sent by the short message application program, the WeChat sent by the WeChat application program, and the like.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising", without further limitation, means that the element so defined is not excluded from the group consisting of additional identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof.
In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
The embodiment of the invention also provides electronic equipment, and the electronic equipment comprises the device in any one of the embodiments.
Fig. 4 is a schematic structural diagram of an embodiment of an electronic device of the present invention, which can implement the processes of the embodiments shown in fig. 1 to 3 of the present invention, and as shown in fig. 4, the electronic device may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged inside a space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to each circuit or device of the electronic apparatus; the memory 43 is used for storing executable program code; the processor 42 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 43, for performing the following operations:
analyzing the received notification information, and judging whether the notification information contains audio/video address information or not;
if the audio/video address information is contained, acquiring a mapped audio/video file from the audio/video address information;
analyzing the audio and video file to obtain audio and video playing parameters and audio and video streams;
creating an audio and video playing window according to the audio and video playing parameters, and loading the audio and video stream in the created video playing window;
and after the screen is in a lighting state, playing the loaded audio and video stream.
The specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code may refer to the description of the embodiment shown in fig. 1 to 3 of the present invention, and are not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
The embodiment of the invention also provides a storage medium for storing the application program, wherein the application program is used for executing the method for displaying the information provided by the embodiment of the invention.
The embodiment of the invention also provides an application program used for executing the method for displaying the information provided by the embodiment of the invention.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
The above description of the embodiments will make clear to those skilled in the art that the present invention can be implemented
The invention can be implemented by means of software plus a necessary general-purpose hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (15)
1. A method of presenting information, comprising:
analyzing the received notification information, and judging whether the notification information contains audio/video address information or not;
if the audio/video address information is contained, acquiring a mapped audio/video file from the audio/video address information;
analyzing the audio and video file to obtain audio and video playing parameters and audio and video streams;
creating an audio and video playing window according to the audio and video playing parameters, and loading the audio and video stream in the created video playing window; wherein, the creating an audio/video playing window according to the audio/video playing parameter comprises: if the number of the audio/video files is multiple, inquiring playing attributes; when the playing attribute is multi-window playing, a corresponding audio/video playing window is created according to audio/video playing parameters obtained by analyzing each audio/video file; when the playing attribute is single-window playing, a shared audio/video playing window is established for all audio/video files on the screen;
and after the screen is in a lighting state, playing the loaded audio and video stream.
2. The method of claim 1, wherein prior to said parsing the received notification information, the method further comprises:
binding the notification information service of the operating system.
3. The method for displaying information according to claim 1 or 2, wherein the creating an audio/video playing window according to the audio/video playing parameter comprises:
acquiring a source application program for transmitting an audio and video file corresponding to the audio and video playing parameter;
inquiring whether an audio and video playing window mapped by the source application program is created on the screen, and if not, creating a mapped audio and video playing window for the source application program; and if so, executing the step of loading the audio and video stream in the created video playing window.
4. The method of claim 1, wherein playing the loaded audio/video stream after the screen is in an illuminated state comprises:
if the current screen is in a lighting state, playing the loaded audio and video stream in the created video playing window;
and if the current screen is in a non-lighting state, waiting for the screen to be lighted, and after the current screen is in a lighting state, playing the loaded audio and video stream in the created video playing window.
5. The method of presenting information of claim 4, wherein the screen being illuminated comprises:
and when the screen in the unlighted state is monitored to receive the lighting operation of the user, confirming that the screen is lighted.
6. The method for displaying information according to claim 4, wherein the playing the loaded audio/video stream in the created video playing window comprises:
and if a plurality of audio and video streams are loaded in the created video playing window, playing the loaded audio and video streams according to the loading time sequence.
7. The method for displaying information according to claim 4, wherein the playing the loaded audio/video stream in the created video playing window comprises:
if a plurality of audio and video streams are loaded in the created video playing window, the playing priorities of the audio and video streams are obtained, and the loaded audio and video streams are played according to the sequence of the playing priorities from high to low.
8. An apparatus for presenting information, comprising: a notification message analysis module, an audio/video file acquisition module, a file analysis module, a loading module and a playing module, wherein,
the notification message analysis module is used for analyzing the received notification message and judging whether the notification message contains audio and video address information or not;
the audio/video file acquisition module is used for acquiring a mapped audio/video file from the audio/video address information if the audio/video address information is contained;
the file analysis module is used for analyzing the audio and video file to obtain audio and video playing parameters and audio and video streams;
the loading module is used for creating an audio and video playing window according to the audio and video playing parameters and loading the audio and video stream in the created video playing window; the loading module comprises: the device comprises a query unit, a multi-window creating unit, a shared window creating unit and a loading unit, wherein if the number of the audio and video files is multiple, the query unit queries the playing attribute; when the playing attribute is multi-window playing, a multi-window creating unit is notified; when the playing attribute is single-window playing, notifying a shared window creating unit; the multi-window creating unit is used for creating a corresponding audio and video playing window according to the audio and video playing parameters obtained by analyzing each audio and video file; the shared window creating unit is used for creating a shared audio and video playing window for all audio and video files on the screen; the loading unit is used for loading the audio and video stream in the created video playing window;
and the playing module is used for playing the loaded audio and video stream after the screen is in the lighting state.
9. The apparatus for presenting information as recited in claim 8, further comprising:
and the binding module is used for binding the notification information service of the operating system.
10. The apparatus for displaying information as claimed in claim 8 or 9, wherein the loading module comprises: a source application program obtaining unit, a playing window inquiring unit, a playing window establishing unit and an audio and video stream loading unit, wherein,
the source application program acquisition unit is used for acquiring a source application program for transmitting the audio and video file corresponding to the audio and video playing parameter;
a playing window inquiring unit, configured to inquire whether an audio/video playing window mapped by the source application program is created on the screen, and if not, notify the playing window creating unit; if yes, informing an audio and video stream loading unit;
a playing window creating unit, configured to create a mapped audio/video playing window for the source application;
and the audio and video stream loading unit is used for loading the audio and video stream in the created video playing window.
11. The apparatus for displaying information as claimed in claim 8, wherein the playing module comprises: a lighting state judging unit and a playing unit, wherein,
a lighting state judging unit for judging whether the current screen is in a lighting state, if so, informing the playing unit; if not, waiting for the next time period;
and the playing unit is used for playing the loaded audio and video stream in the created video playing window when the screen is lightened.
12. The apparatus for presenting information as recited in claim 11, wherein the screen being illuminated comprises:
and when the screen in the unlighted state is monitored to receive the lighting operation of the user, confirming that the screen is lighted.
13. The apparatus for displaying information as claimed in claim 11, wherein said playing the loaded audio/video stream in the created video playing window comprises:
and if a plurality of audio and video streams are loaded in the created video playing window, playing the loaded audio and video streams according to the loading time sequence.
14. The apparatus for displaying information as claimed in claim 11, wherein said playing the loaded audio/video stream in the created video playing window comprises:
if a plurality of audio and video streams are loaded in the created video playing window, the playing priorities of the audio and video streams are obtained, and the loaded audio and video streams are played according to the sequence of the playing priorities from high to low.
15. An electronic device, characterized in that the electronic device comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the following operations:
analyzing the received notification information, and judging whether the notification information contains audio/video address information or not;
if the audio/video address information is contained, acquiring a mapped audio/video file from the audio/video address information;
analyzing the audio and video file to obtain audio and video playing parameters and audio and video streams;
creating an audio and video playing window according to the audio and video playing parameters, and loading the audio and video stream in the created video playing window; wherein, the creating an audio/video playing window according to the audio/video playing parameter comprises: if the number of the audio/video files is multiple, inquiring playing attributes; when the playing attribute is multi-window playing, a corresponding audio/video playing window is created according to audio/video playing parameters obtained by analyzing each audio/video file; when the playing attribute is single-window playing, a shared audio/video playing window is established for all audio/video files on the screen;
and after the screen is in a lighting state, playing the loaded audio and video stream.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610920763.7A CN106559560B (en) | 2016-10-21 | 2016-10-21 | Method and device for displaying information and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610920763.7A CN106559560B (en) | 2016-10-21 | 2016-10-21 | Method and device for displaying information and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106559560A CN106559560A (en) | 2017-04-05 |
CN106559560B true CN106559560B (en) | 2020-03-24 |
Family
ID=58443852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610920763.7A Active CN106559560B (en) | 2016-10-21 | 2016-10-21 | Method and device for displaying information and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106559560B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107241648B (en) * | 2017-06-26 | 2019-05-24 | 中广热点云科技有限公司 | The mobile terminal of video is played under a kind of screen lock state under video broadcasting method and screen lock state |
CN110069660A (en) * | 2019-04-25 | 2019-07-30 | 北京众纳鑫海网络技术有限公司 | Method and apparatus for showing message |
CN110069231A (en) * | 2019-04-25 | 2019-07-30 | 北京众纳鑫海网络技术有限公司 | Method and apparatus for showing message |
CN111787384A (en) * | 2019-05-07 | 2020-10-16 | 北京沃东天骏信息技术有限公司 | Split-screen playing method, device and equipment for screen locking video and storage medium |
CN116996463A (en) * | 2022-04-26 | 2023-11-03 | Oppo广东移动通信有限公司 | Information processing method, device, mobile terminal and storage medium |
CN115119027B (en) * | 2022-08-29 | 2022-11-25 | 北京陌陌信息技术有限公司 | Video playing method for mobile terminal |
CN115185567B (en) * | 2022-09-09 | 2023-01-10 | 北京陌陌信息技术有限公司 | Display content updating method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1562347B1 (en) * | 2004-02-03 | 2006-12-27 | AT&T Corp. | Methods and apparatus for utilizing user software to communicate with network-resident services |
CN1965314A (en) * | 2004-04-19 | 2007-05-16 | 雅虎公司 | Techniques for inline searching in an instant messenger environment |
CN101102255A (en) * | 2007-08-13 | 2008-01-09 | 腾讯科技(深圳)有限公司 | Processing method and device for instant communication information including hyperlink |
CN102098234A (en) * | 2010-12-15 | 2011-06-15 | 百度在线网络技术(北京)有限公司 | Method and device for providing target content based on hyperlink in instant communication message |
CN104010230A (en) * | 2014-06-17 | 2014-08-27 | 合一网络技术(北京)有限公司 | Video playing method and system in screen-locked state |
CN105988795A (en) * | 2015-02-11 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Message processing method and device |
-
2016
- 2016-10-21 CN CN201610920763.7A patent/CN106559560B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1562347B1 (en) * | 2004-02-03 | 2006-12-27 | AT&T Corp. | Methods and apparatus for utilizing user software to communicate with network-resident services |
CN1965314A (en) * | 2004-04-19 | 2007-05-16 | 雅虎公司 | Techniques for inline searching in an instant messenger environment |
CN101102255A (en) * | 2007-08-13 | 2008-01-09 | 腾讯科技(深圳)有限公司 | Processing method and device for instant communication information including hyperlink |
CN102098234A (en) * | 2010-12-15 | 2011-06-15 | 百度在线网络技术(北京)有限公司 | Method and device for providing target content based on hyperlink in instant communication message |
CN104010230A (en) * | 2014-06-17 | 2014-08-27 | 合一网络技术(北京)有限公司 | Video playing method and system in screen-locked state |
CN105988795A (en) * | 2015-02-11 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Message processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106559560A (en) | 2017-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106559560B (en) | Method and device for displaying information and electronic equipment | |
US11689760B2 (en) | Methods and devices for comment information display and interaction, electronic apparatus, and storage medium | |
US11088973B2 (en) | Conversion of text relating to media content and media extension apps | |
US10664443B2 (en) | Method and apparatus for presenting to-be-cleaned data, and electronic device | |
CN106648325B (en) | Method and device for playing video on screen locking interface and electronic equipment | |
CN106250182B (en) | File processing method and device and electronic equipment | |
EP3041241B1 (en) | Method and apparatus for playing multimedia resource | |
EP4131023A1 (en) | Information pushing method and apparatus, electronic device, and storage medium | |
CN106302087A (en) | Instant communication method, Apparatus and system | |
CN109510881A (en) | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files | |
CN103473341A (en) | Playing list generating method and equipment | |
EP4528551A1 (en) | Multimedia object sharing method and apparatus, electronic device, and storage medium | |
WO2009052311A1 (en) | Method and apparatus for identifying a piece of content | |
WO2018000840A1 (en) | Notification field display method, device, and electronic apparatus | |
CN107967092B (en) | Application related information display method and related equipment | |
CN113672748A (en) | Multimedia information playing method and device | |
US11632581B2 (en) | Playlist switching method, apparatus and system, terminal and storage medium | |
CN106227542A (en) | A lock screen magazine content playback and mobile terminal | |
CN110278273B (en) | Multimedia file uploading method, device, terminal, server and storage medium | |
CN105957541B (en) | Music operation control method and device and mobile device | |
EP4206945A1 (en) | Search content matching method and apparatus, and electronic device and storage medium | |
CN106779844B (en) | Method and device for acquiring value added service information and electronic equipment | |
CN111741350A (en) | File display method and device, electronic equipment and computer readable storage medium | |
CN116033009B (en) | Application pushing method, device, equipment and storage medium | |
KR20120128707A (en) | Data transmission method and device based on slide detection |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |