CN111200753A - Method for improving Android television network video playing fluency - Google Patents

Method for improving Android television network video playing fluency Download PDF

Info

Publication number
CN111200753A
CN111200753A CN202010106005.8A CN202010106005A CN111200753A CN 111200753 A CN111200753 A CN 111200753A CN 202010106005 A CN202010106005 A CN 202010106005A CN 111200753 A CN111200753 A CN 111200753A
Authority
CN
China
Prior art keywords
network
playing
video
video playing
uid
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
CN202010106005.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.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric 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 Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN202010106005.8A priority Critical patent/CN111200753A/en
Publication of CN111200753A publication Critical patent/CN111200753A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44227Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method for improving the video playing fluency of an Android television network, which comprises the following steps: the background dynamically identifies whether the network video application of the foreground has playing buffer pause behavior in real time; if the network playing buffering pause phenomenon occurs, the UID is used as the identifier, and the filtering discarding processing is carried out on the network data packet of the appointed UID process at the kernel network data link layer, so that unnecessary network bandwidth occupation of the background application is limited; the background dynamically identifies the switching stopping behavior of the foreground network video playing scene in real time, when the network video application scene is switched to other scenes, the filtering limitation of the network data packet of the UID is recovered, and the original receiving, forwarding and sending functional behaviors of the network data packet are recovered; the invention manages and controls the occupation situation of the multi-process network bandwidth of the television local terminal, provides the maximum bandwidth for the foreground playing, ensures that the foreground playing enjoys the maximum network bandwidth, and improves the experience of the television network video playing fluency.

Description

Method for improving Android television network video playing fluency
Technical Field
The invention relates to the technical field of Android televisions, in particular to a method for improving the video playing fluency of an Android television network.
Background
At present, the Android smart television is used by vast users, one of the main use scenes of the users is live and on-demand content of network videos, and the users pursue higher definition of the videos on the one hand and require better video playing fluency experience on the other hand. The Android system is a multi-task operating system, the system runs in multiple processes simultaneously, besides interface application processes of a foreground, dozens of applications or even hundreds of applications still run in the background, the processes running in the background perform a great number of network downloading behaviors in the background, occupy and seize network bandwidth resources with foreground applications simultaneously, directly cause buffer blocking phenomenon in foreground playing when the network bandwidth resources seize and reach saturation critical, and greatly reduce user experience.
Disclosure of Invention
The invention aims to solve the problems in the prior art and provides a method for improving the video playing fluency of an android id television network.
In order to achieve the purpose, the invention adopts the technical scheme that: a method for improving Android television network video playing fluency comprises the following steps:
s10, the background dynamically identifies whether the network video application of the foreground has playing buffer stuck behavior in real time;
s20, if the network play buffer pause phenomenon occurs, using the UID as the identifier, filtering and discarding the network data packet of the appointed UID process at the kernel network data link layer, and limiting unnecessary network bandwidth occupation of the background application;
and S30, the background dynamically identifies the switching stop behavior of the foreground network video playing scene in real time, and when the network video application scene is switched to other scenes, the filtering limitation of the network data packets of all the application UIDs in the step S20 is removed, and the original receiving, forwarding and sending functional behaviors of the network data packets are recovered.
As a preferred embodiment, the step S10 specifically includes the following steps:
s11, capturing a URL address header of the network video in real time from a native layer of the Android MediaPlayer player, and if the URL address header starts with http://, marking that the currently played video is the network video;
s12, capturing play buffer start and end messages of the MediaPlayer player in real time, stamping time stamp information for the start and end messages, calculating the time interval of each group of start and end according to the time stamp information, and recognizing that a network play buffer pause phenomenon occurs if the time interval is greater than a set threshold value, wherein the time interval is used as a trigger time for limiting unnecessary network bandwidth occupation of background application.
In another preferred embodiment, in step S12, the threshold is set to 3S.
As another preferred embodiment, the step S30 specifically includes:
and capturing and recording the Activity stack top packet name information in real time, judging that the network video playing scene exits if the former scene is the network video playing scene every time the stack top packet name changes, and removing the limitation on receiving, sending and forwarding the application UID network data packet specified in the step S20 in the kernel.
The invention has the beneficial effects that:
the invention provides an intelligent and automatic mode, which is based on the aspect of network bandwidth occupation, limits the occupation of the network bandwidth of background application when the playing of the network video is started and the playing buffering occurs in a network video playing scene, preferentially provides the network bandwidth of a television local machine for the playing of foreground network video, ensures that the network video occupies the maximum network bandwidth resource, and has beneficial effect on smooth playing experience of the television network video.
Drawings
FIG. 1 is a block flow diagram of an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Examples
As shown in fig. 1, a method for improving Android television network video playing fluency is directed at network video playing, and a video playing process is buffered and blocked due to network bandwidth preemption and network jitter occurring at a television home terminal, according to the scheme, the video playing start and video buffering and blocking phenomena are automatically detected and identified from the perspective of a network, a network bandwidth occupation strategy at the television home terminal is adjusted, a background unnecessary application is forbidden to occupy a bandwidth, a maximum bandwidth is provided for a foreground playing application, and after the network video playing is finished, an original network bandwidth occupation strategy is automatically adjusted and recovered; the method specifically comprises the following steps:
step one, a background dynamically identifies the start and play buffer pause behaviors of a network video of a foreground in real time, ① captures a URL address header of the network video in real time from a native layer of an Android MediaPlayer player, if the URL address header starts with http://, namely, the URL address header is marked as the current play video which is the network video, ② captures messages 701 and 702 for starting and ending the play buffer in real time, time stamp information is printed on each message, the time stamp interval between each group 702 and 701 is calculated, and when the time interval is larger than a set threshold value, the phenomenon of network play pause is identified to occur, wherein ① and ② are used as triggering opportunities for limiting unnecessary network bandwidth occupation of the background application.
And step two, the UID is used as the identifier, and the filtering and discarding processing is carried out on the network data packet of the appointed UID process at the kernel network data link layer. And capturing, distinguishing and identifying all processes of the current television foreground and background in real time, analyzing and acquiring the UID corresponding to each process, setting a network packet filtering rule for the specified UID in the kernel by taking the UID as a mark, and filtering the received, sent and forwarded data packet.
And step three, the background dynamically identifies the switching stopping behavior of the foreground network playing scene in real time, and when the network video application scene is switched to other scenes, the filtering limitation of all the UIDs on the network data packet is recovered in the step two, and the original receiving, forwarding and sending functional behaviors of the network data packet are recovered.
This embodiment is further illustrated below:
after the television is started, a background resident Service is created, defined as S-Center, and has three functions: the method comprises the following steps of firstly, monitoring the start and end behaviors of network video playing buffering in real time, secondly, carrying out specified UID network data packet restriction management, and thirdly, carrying out network video playing scene switching identification, and concretely realizing the following steps:
establishing a resident service S-Center:
after the television is started, a resident Service, namely S-Center, is created, and a local Socket server is created in the S-Center, defined as S-Socket, and used for receiving information sent by a Socket client, in the embodiment, two kinds of information are received, namely, a MEDIA player native layer MEDIA _ INFO related message specifically comprising (1), a network video URL address, (2), a play buffer start message, an identification number 701, (3), a play buffer end message, an identification number 702; second, the Activity stack top applies the package name information.
Establishing an information reporting client and reporting information:
firstly, a local Socket Client corresponding to an S-Socket is established in a native layer of a MediaPlayer player and is defined as S-Client-1, so that a communication channel for transmitting information with an S-Center is established. And setting the network video URL address to the network video URL information in the setDataSource through the S-Client-1 channel, and reporting the information of the buffering start (with the identification number of 701) and the buffering end (with the identification number of 702) in the MEDIA _ INFO callback information to an S-Socket end. Secondly, a local Socket Client corresponding to the S-Socket is established in an Android Framework layer activity Stack and defined as S-Client-2, and the name of the application package at the top of the application stack is reported to the S-Socket terminal through the S-Client-2 channel.
The method comprises the following steps of starting playing and performing pause identification on network video playing:
a method for identifying the start of playing of a network video comprises the following steps: monitoring video URL information sent from S-Client-1 in real time in S-Socket, when URL information exists, analyzing URL string head, if the URL information starts with character string http://, judging that the current network video starts playing, and marking the current network playing scene. Secondly, a network video playing card pause identification method comprises the following steps: monitoring playing buffer information sent from S-Client-2 in real time in S-Socket, starting buffering (identification number is 701) and ending buffering (identification number is 702), setting a buffering pause time threshold value to be 3 seconds, recording a timestamp of the beginning buffering after the S-Socket receives the beginning buffering (identification number is 701), setting 3-second timeout processing, and judging that the phenomenon of playing video pause occurs in network video playing if no buffering pause (identification number is 702) message is received within 3 seconds.
The method for switching and identifying the network video playing scene comprises the following steps:
monitoring application stack top application packet name information sent from S-Client-2 in real time in S-Socket and storing the packet name information, comparing the packet name information with the packet name stored and recorded last time each time the packet name information is received, if the packet names are different, further judging, if the former scene is the stored network playing scene and the current packet name is different from the former packet name, judging that the network playing scene is switched away.
Background application network packet filtering:
and filtering and discarding the network data packet of the appointed UID process at a kernel network data link layer according to the UID as the identifier. And capturing, distinguishing and identifying all processes of the current television foreground and background in real time, analyzing and acquiring the UID corresponding to each process, setting a network packet filtering rule for the appointed UID by taking the UID as an identifier and the background application process as an identifier, and filtering the received, sent and forwarded data packet.
Dynamic allocation of network bandwidth:
when the network video is played or the network video is played in a pause state, all background application lists are obtained, the UID of each application is obtained through analysis, kernel network data packet filtering rules are set according to the UID, network data receiving, sending and forwarding packets of the appointed UID are filtered and discarded, and when a network video playing scene exits, the limitation of filtering of the appointed UID network data packet in the kernel is automatically removed.
The above-mentioned embodiments only express the specific embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.

Claims (4)

1. A method for improving the video playing fluency of an Android television network is characterized by comprising the following steps:
s10, the background dynamically identifies whether the network video application of the foreground has playing buffer stuck behavior in real time;
s20, if the network play buffer pause phenomenon occurs, using the UID as the identifier, filtering and discarding the network data packet of the appointed UID process at the kernel network data link layer, and limiting unnecessary network bandwidth occupation of the background application;
and S30, the background dynamically identifies the switching stop behavior of the foreground network video playing scene in real time, and when the network video application scene is switched to other scenes, the filtering limitation of the network data packets of all the application UIDs in the step S20 is removed, and the original receiving, forwarding and sending functional behaviors of the network data packets are recovered.
2. The method for improving fluency of video playing in Android television network according to claim 1, wherein the step S10 specifically comprises the following steps:
s11, capturing a URL address header of the network video in real time from a native layer of the Android MediaPlayer player, and if the URL address header starts with http://, marking that the currently played video is the network video;
s12, capturing play buffer start and end messages of the MediaPlayer player in real time, stamping time stamp information for the start and end messages, calculating the time interval of each group of start and end according to the time stamp information, and recognizing that a network play buffer pause phenomenon occurs if the time interval is greater than a set threshold value, wherein the time interval is used as a trigger time for limiting unnecessary network bandwidth occupation of background application.
3. The method for improving fluency of video playing in Android television network according to claim 2, wherein in the step S12, the set threshold is 3S.
4. The method for fluency of video playing in Android television network according to claim 1, wherein the step S30 specifically comprises:
and capturing and recording the Activity stack top packet name information in real time, judging that the network video playing scene exits if the former scene is the network video playing scene every time the stack top packet name changes, and removing the limitation on receiving, sending and forwarding the application UID network data packet specified in the step S20 in the kernel.
CN202010106005.8A 2020-02-20 2020-02-20 Method for improving Android television network video playing fluency Pending CN111200753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010106005.8A CN111200753A (en) 2020-02-20 2020-02-20 Method for improving Android television network video playing fluency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010106005.8A CN111200753A (en) 2020-02-20 2020-02-20 Method for improving Android television network video playing fluency

Publications (1)

Publication Number Publication Date
CN111200753A true CN111200753A (en) 2020-05-26

Family

ID=70747470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010106005.8A Pending CN111200753A (en) 2020-02-20 2020-02-20 Method for improving Android television network video playing fluency

Country Status (1)

Country Link
CN (1) CN111200753A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114896011A (en) * 2022-05-09 2022-08-12 北京达佳互联信息技术有限公司 Method and device for playing dynamic content in page, electronic equipment and storage medium
CN116347488A (en) * 2023-02-21 2023-06-27 荣耀终端有限公司 Network blocking processing method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120209946A1 (en) * 2011-02-14 2012-08-16 Microsoft Corporation Background Transfer Service for Applications on Mobile Devices
CN106250759A (en) * 2016-07-15 2016-12-21 乐视控股(北京)有限公司 A kind of method of application managed in terminal, Apparatus and system
CN106792165A (en) * 2016-12-02 2017-05-31 武汉斗鱼网络科技有限公司 A kind of resource dynamic regulation method and device
CN107770092A (en) * 2017-11-06 2018-03-06 珠海市魅族科技有限公司 A kind of data transmission method, device, mobile terminal and storage medium
CN109286854A (en) * 2018-10-23 2019-01-29 四川长虹电器股份有限公司 The detection of network flow-medium Caton and optimization system and method based on WiFi network
CN109684090A (en) * 2018-12-19 2019-04-26 三星电子(中国)研发中心 A kind of resource allocation methods and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120209946A1 (en) * 2011-02-14 2012-08-16 Microsoft Corporation Background Transfer Service for Applications on Mobile Devices
CN106250759A (en) * 2016-07-15 2016-12-21 乐视控股(北京)有限公司 A kind of method of application managed in terminal, Apparatus and system
CN106792165A (en) * 2016-12-02 2017-05-31 武汉斗鱼网络科技有限公司 A kind of resource dynamic regulation method and device
CN107770092A (en) * 2017-11-06 2018-03-06 珠海市魅族科技有限公司 A kind of data transmission method, device, mobile terminal and storage medium
CN109286854A (en) * 2018-10-23 2019-01-29 四川长虹电器股份有限公司 The detection of network flow-medium Caton and optimization system and method based on WiFi network
CN109684090A (en) * 2018-12-19 2019-04-26 三星电子(中国)研发中心 A kind of resource allocation methods and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114896011A (en) * 2022-05-09 2022-08-12 北京达佳互联信息技术有限公司 Method and device for playing dynamic content in page, electronic equipment and storage medium
CN114896011B (en) * 2022-05-09 2023-12-26 北京达佳互联信息技术有限公司 Method and device for playing dynamic content in page, electronic equipment and storage medium
CN116347488A (en) * 2023-02-21 2023-06-27 荣耀终端有限公司 Network blocking processing method, device and storage medium
CN116347488B (en) * 2023-02-21 2023-10-20 荣耀终端有限公司 Network blocking processing method, device and storage medium

Similar Documents

Publication Publication Date Title
CN111246284B (en) Video stream playing method, system, terminal and storage medium
KR100651486B1 (en) Apparatus and Method for transporting MPEG contents through Internet Protocol Network
CN108200447B (en) Live broadcast data transmission method and device, electronic equipment, server and storage medium
CN111200753A (en) Method for improving Android television network video playing fluency
EP1924028A1 (en) Method and system for providing qos service
WO2013097593A1 (en) Method, device and system for monitoring internet access service quality of mobile terminal
CN111432169B (en) Video transmission method, device, equipment and system
CN108174295B (en) Method and device for notifying anchor state and method and device for prompting anchor state
CN105471869A (en) Internet television content request connection reuse method and system thereof
CN102111814A (en) Method, device and system for identifying service type
CN113891175B (en) Live broadcast push flow method, device and system
CN106658065B (en) Audio and video synchronization method, device and system
CN103430562A (en) Method and apparatus for transmitting a multimedia data packet using cross-layer optimization
CN110572698B (en) Method, device, equipment and medium for counting inspection and monitoring playing records
CN110740289A (en) system and method for obtaining alarm
CN111200760A (en) Data processing method and device and electronic equipment
CN102457494B (en) Method and device for improving monitoring success rate based on session initiation protocol (SIP) signaling
CN111263113B (en) Data packet sending method and device and data packet processing method and device
US20230337266A1 (en) Method, and electronic device for allocating routing resources of wifi6 router
CN116614675A (en) Wi-Fi (wireless fidelity) back connection automatic detection method and system for smart television box and readable storage medium
CN112866345A (en) Websocket-based streaming media low-delay communication implementation method, electronic device and storage medium
CN108880925B (en) Method and system for monitoring flow
CN106817619A (en) One kind identification video pause state, the method for improving OTT video quality monitoring accuracies
CN108574609B (en) Transmission monitoring method and device
CN106412661B (en) Method and system for collecting network video playing information of smart television

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200526

RJ01 Rejection of invention patent application after publication