[go: up one dir, main page]

CN105872103A - Traffic saving showing and interacting method and system for network pictures in IOS - Google Patents

Traffic saving showing and interacting method and system for network pictures in IOS Download PDF

Info

Publication number
CN105872103A
CN105872103A CN201610409534.9A CN201610409534A CN105872103A CN 105872103 A CN105872103 A CN 105872103A CN 201610409534 A CN201610409534 A CN 201610409534A CN 105872103 A CN105872103 A CN 105872103A
Authority
CN
China
Prior art keywords
network
picture
network picture
ios
module
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.)
Granted
Application number
CN201610409534.9A
Other languages
Chinese (zh)
Other versions
CN105872103B (en
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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201610409534.9A priority Critical patent/CN105872103B/en
Publication of CN105872103A publication Critical patent/CN105872103A/en
Application granted granted Critical
Publication of CN105872103B publication Critical patent/CN105872103B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种IOS中省流量网络图片的展示交互方法及系统,涉及IOS中应用类APP的开发领域。该方法的步骤为:设置网络图片的URL并区分网络图片;当IOS客户端中不存在该网络图片、并处于非WIFI网络环境、且移动数据流量多的情况时,根据预先设置,选择相应的网络图片操作:“无图模式”操作、“小图模式”操作和直接下载网络图片操作。本发明能够根据网络环境和移动数据流量的具体情况,提供多样化并且合适用户的网络图片浏览方式,不仅通过不同的浏览方式降低了开发成本,而且浏览体验较好,能够满足用户的需求。

The invention discloses a method and system for displaying and interacting with traffic-saving network pictures in IOS, and relates to the development field of application-type APPs in IOS. The steps of the method are: setting the URL of the network picture and distinguishing the network picture; when the network picture does not exist in the IOS client, and is in a non-WIFI network environment, and there is a lot of mobile data traffic, according to the preset, select the corresponding Network picture operation: "no picture mode" operation, "small picture mode" operation and direct download network picture operation. According to the network environment and the specific conditions of mobile data traffic, the present invention can provide diversified and suitable user-friendly browsing modes of network pictures, which not only reduces the development cost through different browsing modes, but also has better browsing experience and can meet the needs of users.

Description

IOS中省流量网络图片的展示交互方法及系统Display interaction method and system for traffic-saving network pictures in IOS

技术领域technical field

本发明涉及IOS(Internetwork Operating System,互联网操作系统)中应用类APP的开发领域,具体一种IOS中省流量网络图片的展示交互方法及系统。The invention relates to the development field of application APP in IOS (Internetwork Operating System, Internet operating system), specifically a method and system for displaying and interacting with traffic-saving network pictures in IOS.

背景技术Background technique

目前,采用IOS客户端浏览网络图片时,若用户认为IOS客户端的移动数据流量较高时,可以通过“无图模式”浏览网络图片(即将网络图片通过默认图的方式进行呈现)。但是,由于“无图模式”只能浏览默认图,用户无法通过“无图模式”详细浏览网络图片,因此“无图模式”的浏览体验较差,难以满足用户需求。At present, when using the IOS client to browse network pictures, if the user thinks that the mobile data traffic of the IOS client is relatively high, the user can browse the network pictures through the "no picture mode" (that is, the network pictures are presented by default). However, since the "no picture mode" can only browse the default picture, the user cannot browse the network pictures in detail through the "no picture mode", so the browsing experience of the "no picture mode" is poor, and it is difficult to meet the needs of users.

发明内容Contents of the invention

针对现有技术中存在的缺陷,本发明解决的技术问题为:根据网络环境和移动数据流量的具体情况,提供多样化并且合适用户的网络图片浏览方式。本发明不仅能够通过不同的浏览方式降低开发成本,而且浏览体验较好,能够满足用户的需求。Aiming at the defects existing in the prior art, the technical problem solved by the present invention is: according to the specific conditions of the network environment and mobile data flow, provide diversified and suitable ways for users to browse network pictures. The invention can not only reduce the development cost through different browsing modes, but also has better browsing experience and can meet the needs of users.

为达到以上目的,本发明提供的IOS中省流量网络图片的展示交互方法,该方法包括以下步骤:In order to achieve the above object, the display interaction method of the traffic-saving network picture in the IOS provided by the present invention comprises the following steps:

A:IOS客户端设置需要浏览的网络图片的URL、并对网络图片进行普通图片或视频缩略图的区分,转到步骤B;A: The IOS client sets the URL of the network pictures that need to be browsed, and distinguishes the network pictures from ordinary pictures or video thumbnails, then go to step B;

B:判断IOS客户端中是否存在与步骤A中设置的URL相同的网络图片,若是,转到步骤G,否则转到步骤C;B: Determine whether there is a network image identical to the URL set in step A in the IOS client, if so, go to step G, otherwise go to step C;

C:若当前IOS客户端处于非WIFI网络环境、且IOS客户端的移动数据流量未超过预设值,则根据流量低于预设值的预先设置,选择相应的网络图片操作:若预先设置为“无图模式”,转到步骤D,若预先设置为“小图模式”,转到步骤E,若未进行预先设置,转到步骤F;C: If the current IOS client is in a non-WIFI network environment, and the mobile data flow of the IOS client does not exceed the preset value, then according to the preset setting that the flow rate is lower than the preset value, select the corresponding network picture operation: if the preset is " No picture mode", go to step D, if it is preset to "small picture mode", go to step E, if not preset, go to step F;

D:若当前网络图片为普通图片,则在IOS客户端中显示普通默认图,若当前网络图片为视频缩略图,则在IOS客户端中显示视频默认图;当普通默认图或视频默认图被点击时,转到步骤F;D: If the current network picture is a normal picture, the normal default picture will be displayed on the IOS client; if the current network picture is a video thumbnail, the video default picture will be displayed on the IOS client; when the normal default picture or the video default picture is When clicked, go to step F;

E:IOS客户端从服务器获取当前网络图片的缩略图;当缩略图被点击时,若当前网络图片为普通图片,转到步骤F,若当前网络图片为视频缩略图,则跳转至视频连接进行浏览;E: The IOS client obtains the thumbnail of the current network picture from the server; when the thumbnail is clicked, if the current network picture is a normal picture, go to step F, if the current network picture is a video thumbnail, then jump to the video connection to browse;

F:建立当前网络图片的下载链接,网络图片下载完成后进行保存,转到步骤G;F: Establish the download link of the current network picture, save the network picture after downloading, and go to step G;

G:在IOS客户端上展示当前网络图片。G: Display the current network picture on the IOS client.

本发明提供的实现上述方法的IOS中省流量网络图片的展示交互系统,该系统包括位于IOS客户端中的网络地址设置模块、网络图片检测模块、网络环境检测模块、无图模式操作模块、小图模式操作模块、网络图片下载保存模块和网络图片展示模块;The present invention provides an interactive system for displaying traffic-saving network pictures in IOS that realizes the above method. The system includes a network address setting module, a network picture detection module, a network environment detection module, a picture-less mode operation module, and a small Graphic mode operation module, network picture download and save module and network picture display module;

网络地址设置模块用于:设置需要浏览的网络图片的URL、并对网络图片进行普通图片或视频缩略图的区分,向网络图片检测模块发送网络图片检测信号;The network address setting module is used to: set the URL of the network picture that needs to be browsed, and carry out the distinction of common pictures or video thumbnails to the network picture, and send the network picture detection signal to the network picture detection module;

网络图片检测模块用于:收到网络图片检测信号后,判断IOS客户端中是否存在与网络地址设置模块设置的URL相同的网络图片,若是,向网络图片展示模块发送网络图片展示信号,否则向网络环境检测模块发送网络环境检测信号;The network picture detection module is used for: after receiving the network picture detection signal, judge whether there is the same network picture with the URL that the network address setting module is set in the IOS client, if so, send the network picture display signal to the network picture display module, otherwise send the network picture display signal to the network picture display module The network environment detection module sends a network environment detection signal;

网络环境检测模块用于:收到网络环境检测信号后,若当前IOS客户端处于非WIFI网络环境、且IOS客户端的移动数据流量未超过预设值,则根据流量低于预设值的预先设置,选择相应的网络图片操作:若预先设置为“无图模式”,向无图模式操作模块发送无图模式操作信号,若预先设置为“小图模式”,向小图模式操作模块发送小图模式操作信号,若未进行预先设置,向网络图片下载保存模块发送网络图片下载保存信号;The network environment detection module is used for: after receiving the network environment detection signal, if the current IOS client is in a non-WIFI network environment, and the mobile data traffic of the IOS client does not exceed the preset value, then according to the preset value that the traffic is lower than the preset value , select the corresponding network picture operation: if it is preset as "no picture mode", send no picture mode operation signal to the no picture mode operation module, if it is preset as "small picture mode", send a small picture to the small picture mode operation module Mode operation signal, if not pre-set, send a network picture download and save signal to the network picture download and save module;

无图模式操作模块用于:收到无图模式操作信号后,若当前网络图片为普通图片,则显示普通默认图,若当前网络图片为视频缩略图,则显示视频默认图;当普通默认图或视频默认图被点击时,向网络图片下载保存模块发送网络图片下载保存信号;The operation module of no-picture mode is used for: after receiving the operation signal of no-picture mode, if the current network picture is a normal picture, then display the normal default picture; if the current network picture is a video thumbnail, then display the video default picture; when the normal default picture Or when the video default image is clicked, a network image download and save signal is sent to the network image download and save module;

小图模式操作模块用于:收到小图模式操作信号后,从服务器获取当前网络图片的缩略图;当缩略图被点击时,若当前网络图片为普通图片,向网络图片下载保存模块发送网络图片下载保存信号,若当前网络图片为视频缩略图,则跳转至视频连接进行浏览;The thumbnail mode operation module is used to: obtain the thumbnail of the current network picture from the server after receiving the thumbnail mode operation signal; when the thumbnail is clicked, if the current network picture is a normal picture, send a network Image download and save signal, if the current network image is a video thumbnail, jump to the video link for browsing;

网络图片下载保存模块用于:收到网络图片下载保存信号后,建立当前网络图片的下载链接,网络图片下载完成后进行保存、并向网络图片展示模块发送网络图片展示信号;The network picture download and save module is used for: after receiving the network picture download and save signal, set up the download link of the current network picture, save the network picture after the download is completed, and send the network picture display signal to the network picture display module;

网络图片展示模块用于:收到网络图片展示信号后,展示当前网络图片。The network picture display module is used for displaying the current network picture after receiving the network picture display signal.

与现有技术相比,本发明的优点在于:Compared with the prior art, the present invention has the advantages of:

(1)本发明在IOS客户端需要浏览网络图片时,根据网络环境和移动数据流量的具体情况,能够为IOS客户端提供不同的网络图片浏览方式:WIFI网络环境自动下载浏览、非WIFI网络环境且移动数据流量多则自定义浏览、非WIFI网络环境且移动数据流量少则通过“小图模式”或者不消耗移动数据流量的“无图模式”浏览。(1) The present invention can provide different network picture browsing modes for the IOS client according to the specific circumstances of the network environment and mobile data flow when the IOS client needs to browse the network picture: WIFI network environment automatically downloads and browses, non-WIFI network environment And the mobile data traffic is more than custom browsing, the non-WIFI network environment and the mobile data traffic is small, browse through the "small picture mode" or the "no picture mode" that does not consume mobile data traffic.

有鉴于此,本发明能够通过合理的逻辑为用户提供多样化并且合适用户的网络图片浏览方式,还能够根据用户的需求决定是否详细浏览网络图片;因此,本发明不仅能够通过不同的浏览方式降低开发成本,而且浏览体验较好,能够满足用户的需求。In view of this, the present invention can provide users with diversified and suitable Internet picture browsing methods through reasonable logic, and can also decide whether to browse network pictures in detail according to user needs; therefore, the present invention can not only reduce The development cost is low, and the browsing experience is better, which can meet the needs of users.

(2)本发明能够实时告知用户移动数据流量的消耗情况,不仅能够避免用户在不知情的情况下,被网络图片消耗太多的移动数据流量;而且能够结合用户的设置提供更加人性化的人机交互方式。(2) The present invention can inform the user of the consumption of mobile data flow in real time, not only can avoid the user from being consumed too much mobile data flow by network pictures without knowing it; machine interaction.

(3)本发明对已经浏览过的网络图片会进行内存缓存及本地缓存处理,避免网络图片多次缓存;本发明会将正在下载的网络图片进行记录,避免同一张网络图片被多次下载。(3) The present invention will perform memory cache and local cache processing on the browsed network pictures to avoid multiple caches of network pictures; the present invention will record the network pictures being downloaded to avoid multiple downloads of the same network picture.

附图说明Description of drawings

图1为本发明实施例中的IOS中省流量网络图片的展示交互方法的流程图。FIG. 1 is a flowchart of a method for displaying and interacting with traffic-saving network pictures in IOS according to an embodiment of the present invention.

具体实施方式detailed description

以下结合附图及实施例对本发明作进一步详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.

参见图1所示,本发明实施例中的IOS中省流量网络图片的展示交互方法,包括以下步骤:Referring to Fig. 1, the display interaction method of traffic-saving network pictures in IOS in the embodiment of the present invention includes the following steps:

S1:用户通过IOS客户端向服务器发起浏览网络图片的请求时(即用户需要浏览网络图片),服务器返回网络图片;IOS客户端设置网络图片的URL(网络地址)、并对网络图片进行普通图片或视频缩略图的区分,转到S2。S1: When the user initiates a request for browsing network pictures to the server through the IOS client (that is, the user needs to browse the network pictures), the server returns the network picture; Or the distinction of video thumbnails, go to S2.

S1中IOS客户端设置网络图片的URL、并对网络图片进行普通图片或视频缩略图的区分的具体流程为:The specific process of setting the URL of the network picture on the IOS client in S1, and distinguishing the normal picture or video thumbnail from the network picture is as follows:

S101:确定服务器返回的网络图片的类型,若网络图片为普通图片,则转到S102;若网络图片为视频缩略图,则转到S103。S101: Determine the type of the network picture returned by the server. If the network picture is a common picture, go to S102; if the network picture is a video thumbnail, go to S103.

S102:通过本地接口设置网络图片的URL,若网络图片显示的大小未设置,则设置在网络图片下载成功后将网络图片的尺寸进行回调(回调至调用本地接口的地方)。S102: Set the URL of the network picture through the local interface. If the displayed size of the network picture is not set, set the size of the network picture to be called back after the network picture is successfully downloaded (call back to the place where the local interface is called).

S103:通过本地接口设置网络图片的URL,设置当网络图片被点击时,将网络图片进行回调(回调至调用本地接口的地方)。S103: Set the URL of the network picture through the local interface, and set the network picture to be called back when the network picture is clicked (call back to the place where the local interface is called).

S102的具体程式为:The specific program of S102 is:

-(void)setImageWithURL:(NSString*)urldidResetFrame:(BOOL)didResetFrame success:(void(^)(CGSizeimageSize))success。-(void)setImageWithURL:(NSString*)urldidResetFrame:(BOOL)didResetFrame success:(void(^)(CGSizeimageSize))success.

S103的具体程式为:The specific program of S103 is:

-(void)setVideoThumbImageWithURL:(NSString*)urlpopToVideoView:(void(^)())toVideoView。-(void)setVideoThumbImageWithURL:(NSString*)urlpopToVideoView:(void(^)())toVideoView.

上述程式中的参数释义为:The parameters in the above program are interpreted as:

参数url:NSString类型字符串变量,网络图片的网络地址。Parameter url: NSString type string variable, the network address of the network image.

参数didResetFrame:BOOL类型变量,是否设置过该网络图片显示的大小。Parameter didResetFrame: BOOL type variable, whether the size of the network picture display has been set.

参数success:block回调类型代码块,当下载网络图片成功后将网络图片的尺寸回调给调用本接口的地方(imageSize为CGSize类型变量,即回调时的网络图片尺寸)。Parameter success: block callback type code block, when the network picture is successfully downloaded, the size of the network picture is called back to the place where this interface is called (imageSize is a CGSize type variable, that is, the size of the network picture at the time of callback).

参数toVideoView:block回调类型代码块,当该网络图片是一个视频缩略图的时候,网络图片被点击时回调给调用本接口的地方。Parameter toVideoView: block callback type code block, when the network picture is a video thumbnail, when the network picture is clicked, it will be called back to the place where this interface is called.

S2:判断IOS客户端中是否存在与S1中设置的URL相同的网络图片,若是,转到S10,否则转到S3。S2: Determine whether there is a network picture identical to the URL set in S1 in the IOS client, if so, go to S10, otherwise go to S3.

S2的具体流程为:The specific process of S2 is:

S201:调用程序S201: call program

-(UIImage*)imageFromMemoryCacheForKey:(NSString*)key(key为网络图片的URL),判断IOS客户端的内存缓存中是否存在与S1中设置的URL相同的网络图片,若是,转到S10;否则转到S202。-(UIImage*)imageFromMemoryCacheForKey:(NSString*)key (key is the URL of the network image), determine whether there is the same network image as the URL set in S1 in the memory cache of the IOS client, if so, go to S10; otherwise go to S202.

S202:调用程序S202: call program

-(UIImage*)imageFromDiskCacheForKey:(NSString*)key(key为网络图片的URL),判断IOS客户端的硬盘缓存中是否存在与S1中设置的URL相同的网络图片,若是,转到S10;否则转到S203。-(UIImage*)imageFromDiskCacheForKey:(NSString*)key (key is the URL of the network image), determine whether there is the same network image as the URL set in S1 in the hard disk cache of the IOS client, if so, go to S10; otherwise go to S203.

S203:在IOS客户端中,根据S1中设置的URL查询当前网络图片是否已经建立连接、并处于正在下载状态,若是,在网络图片下载完成后转到S10;否则转到S3。S203: In the IOS client, query according to the URL set in S1 whether the current network picture has been connected and is in the downloading state, if so, go to S10 after the download of the network picture is completed; otherwise go to S3.

S3:检测当前IOS客户端的网络环境:判断当前IOS客户端是否处于WIFI网络环境,若是,自动下载网络图片,下载完成后转到S10;否则转到S4。S3: Detect the network environment of the current IOS client: judge whether the current IOS client is in the WIFI network environment, if so, automatically download the network picture, and turn to S10 after the download is completed; otherwise turn to S4.

S3中判断当前IOS客户端是否处于WIFI网络环境具体实施时,调用-(BOOL)isReachableViaWiFi,该方法返回一个BOOL类型的值,可确定当前IOS客户端是否处于WIFI网络环境下。In S3, when judging whether the current IOS client is in the WIFI network environment, call -(BOOL)isReachableViaWiFi, which returns a BOOL value to determine whether the current IOS client is in the WIFI network environment.

S4:检测当前IOS客户端的移动数据流量使用情况:判断IOS客户端的移动数据流量是否超过预设值(本实施例中默认为300M),若是(即移动数据流量使用较多),转到S5,否则(即移动数据流量使用较少)转到S6。S4: Detect the mobile data traffic usage situation of current IOS client: judge whether the mobile data traffic of IOS client exceeds preset value (default is 300M in this embodiment), if (being that mobile data traffic uses more), go to S5, Otherwise (ie less mobile data traffic usage) go to S6.

S5:弹窗提示是否打开“无图模式”,若是,转到S7,否则转到S6。无图模式会在每个月首次使用时(即用户第一次启动APP时)检测移动数据流量的使用情况,若此时移动数据流量低于预设值则将“无图模式”关闭。S5: A pop-up window prompts whether to open the "no picture mode", if yes, go to S7, otherwise go to S6. The no-picture mode will detect the usage of mobile data traffic when it is used for the first time every month (that is, when the user starts the APP for the first time), and if the mobile data traffic is lower than the preset value at this time, the "no-picture mode" will be turned off.

S6:根据流量低于预设值的预先设置,选择相应的网络图片操作(此时会弹窗提示,若用户设置过“不再提示”,则不进行弹窗):若预先设置为“无图模式”,转到S7,若预先设置为“小图模式”,转到S8,若未进行预先设置,转到S9。S6: According to the pre-setting that the traffic is lower than the preset value, select the corresponding network picture operation (at this time, a pop-up window will prompt, if the user has set "no more prompt", the pop-up window will not be performed): if the pre-setting is "none Figure mode", go to S7, if preset to "small picture mode", go to S8, if not preset, go to S9.

S6中“无图模式”和“小图模式”共称为“省流量模式”,“无图模式”和“小图模式”不会共存;当执行“无图模式”、“小图模式”或未进行预先设置的相应操作后,会将操作所用的移动数据流量存入本地记录,以供S4进行移动数据流量的判断。"No image mode" and "small image mode" in S6 are collectively referred to as "flow-saving mode", and "no image mode" and "small image mode" will not coexist; when executing "no image mode" and "small image mode" Or after the preset corresponding operation is not performed, the mobile data traffic used for the operation will be stored in the local record for S4 to judge the mobile data traffic.

S6中的预先设置的具体操作为:根据S1调用的接口方法不同确定要显示的是普通图片的默认图还是视频缩略图的默认图:若为普通图片的默认图,当默认图被点击时自动下载并显示(即执行与S9相同的操作);若视频缩略图的默认图,则调用S1中的toVideoView执行相关的跳转操作。The specific operation of the preset in S6 is: according to the interface method called by S1, it is determined whether the default picture of the normal picture or the default picture of the video thumbnail is to be displayed: if it is the default picture of a normal picture, when the default picture is clicked, it will automatically Download and display (that is, perform the same operation as S9); if the video thumbnail is the default image, call toVideoView in S1 to perform related jump operations.

S7:若当前网络图片为普通图片,则在IOS客户端中显示一张普通默认图,若当前网络图片为视频缩略图,则在IOS客户端中显示一张视频默认图;当普通默认图或视频默认图被点击时,转到S9。S7: If the current network picture is a common picture, then display a common default picture in the IOS client, if the current network picture is a video thumbnail, then display a video default picture in the IOS client; when the common default picture or When the video default image is clicked, go to S9.

S8:IOS客户端从服务器获取一张当前网络图片的缩略图以供展示;缩略图被点击时,若当前网络图片为普通图片,转到S9,若当前网络图片为视频缩略图,则跳转至视频连接进行浏览。S8: The IOS client obtains a thumbnail of the current network picture from the server for display; when the thumbnail is clicked, if the current network picture is a normal picture, go to S9; if the current network picture is a video thumbnail, then jump Go to the video link to browse.

S9:建立当前网络图片(大图)的下载链接,网络图片下载完成后进行保存(保存位置为内存缓存和本地缓存),转到S10。S9: Establish the download link of the current network picture (big picture), save the network picture after the download is completed (the storage location is memory cache and local cache), and turn to S10.

S9中建立网络图片下载链接时,以key-value的形式将网络图片URL做key对该下载操作进行记录,以供S203查询,当网络图片下载成功或者失败时清除掉该key-value。When the download link of the network picture is established in S9, the URL of the network picture is used as a key in the form of key-value to record the download operation for S203 query, and the key-value is cleared when the network picture download succeeds or fails.

S10:在IOS客户端上展示当前网络图片,若当前网络图片为视频缩略图,则为当前网络图片覆盖视频标识。S10: displaying the current network picture on the IOS client, if the current network picture is a video thumbnail, covering the current network picture with a video logo.

本发明实施例中的实现上述方法的IOS中省流量网络图片的展示交互系统,该系统包括位于IOS客户端中的网络地址设置模块、网络图片检测模块、网络环境检测模块、无图模式操作模块、小图模式操作模块、网络图片下载保存模块和网络图片展示模块。In the embodiment of the present invention, the interactive system for displaying traffic-saving network pictures in IOS that realizes the above method, the system includes a network address setting module, a network picture detection module, a network environment detection module, and a picture-free mode operation module located in the IOS client. , small picture mode operation module, network picture download and save module and network picture display module.

网络地址设置模块用于:设置需要浏览的网络图片的URL、并对网络图片进行普通图片或视频缩略图的区分,向网络图片检测模块发送网络图片检测信号。The network address setting module is used for: setting the URL of the network picture to be browsed, and distinguishing the network picture from common pictures or video thumbnails, and sending a network picture detection signal to the network picture detection module.

网络图片检测模块用于:收到网络图片检测信号后,判断IOS客户端中是否存在与网络地址设置模块设置的URL相同的网络图片,若是,向网络图片展示模块发送网络图片展示信号,否则向网络环境检测模块发送网络环境检测信号。The network picture detection module is used for: after receiving the network picture detection signal, judge whether there is the same network picture with the URL that the network address setting module is set in the IOS client, if so, send the network picture display signal to the network picture display module, otherwise send the network picture display signal to the network picture display module The network environment detection module sends a network environment detection signal.

网络图片检测模块具体用于:判断IOS客户端的内存缓存中是否存在与网络地址设置模块设置的URL相同的网络图片,若是,向网络图片展示模块发送网络图片展示信号;否则:The network picture detection module is specifically used for: judging whether there is the same network picture with the URL that the network address setting module is set in the memory cache of judging IOS client, if so, sending network picture display signal to the network picture display module; Otherwise:

判断IOS客户端的硬盘缓存中是否存在与网络地址设置模块中设置的URL相同的网络图片,若是,向网络图片展示模块发送网络图片展示信号;否则:Judging whether there is the same network picture with the URL set in the network address setting module in the hard disk cache of the IOS client, if so, sending a network picture display signal to the network picture display module; otherwise:

在IOS客户端中,根据网络地址设置模块中设置的URL查询当前网络图片是否已经建立连接、并处于正在下载状态,若是,在网络图片下载完成后向网络图片展示模块发送网络图片展示信号;否则向网络环境检测模块发送网络环境检测信号。In the IOS client, according to the URL provided in the network address setting module, query whether the current network picture has established a connection and is in a downloading state, if so, send a network picture display signal to the network picture display module after the network picture download is complete; otherwise Send a network environment detection signal to the network environment detection module.

网络环境检测模块用于:收到网络环境检测信号后:The network environment detection module is used for: after receiving the network environment detection signal:

若当前IOS客户端处于非WIFI网络环境、且IOS客户端的移动数据流量未超过预设值,则根据流量低于预设值的预先设置,选择相应的网络图片操作:若预先设置为“无图模式”,向无图模式操作模块发送无图模式操作信号,若预先设置为“小图模式”,向小图模式操作模块发送小图模式操作信号,若未进行预先设置,向网络图片下载保存模块发送网络图片下载保存信号;If the current IOS client is in a non-WIFI network environment, and the mobile data traffic of the IOS client does not exceed the preset value, then select the corresponding network picture operation according to the preset traffic flow lower than the preset value: if the preset is set to "no picture" Mode", send the no-picture mode operation signal to the no-picture mode operation module, if it is preset as "small picture mode", send the small picture mode operation signal to the small picture mode operation module, if not preset, download and save the picture to the network The module sends a network picture download and save signal;

若当前IOS客户端处于WIFI网络环境,则自动下载网络图片,下载完成后向网络图片展示模块发送网络图片展示信号;If the current IOS client is in the WIFI network environment, then automatically download the network picture, and send a network picture display signal to the network picture display module after the download is completed;

若IOS客户端的移动数据流量超过预设值时,弹窗提示是否打开“无图模式”,若是,向无图模式操作模块发送无图模式操作信号,否则继续根据流量低于预设值的预先设置,选择相应的网络图片操作。If the mobile data flow of the IOS client exceeds the preset value, a pop-up window will prompt whether to open the "no-image mode". Settings, select the corresponding network picture operation.

无图模式操作模块用于:收到无图模式操作信号后,若当前网络图片为普通图片,则显示普通默认图,若当前网络图片为视频缩略图,则显示视频默认图;当普通默认图或视频默认图被点击时,向网络图片下载保存模块发送网络图片下载保存信号。The operation module of no-picture mode is used for: after receiving the operation signal of no-picture mode, if the current network picture is a normal picture, then display the normal default picture; if the current network picture is a video thumbnail, then display the video default picture; when the normal default picture Or when the video default image is clicked, a network image download and save signal is sent to the network image download and save module.

小图模式操作模块用于:收到小图模式操作信号后,从服务器获取当前网络图片的缩略图;当缩略图被点击时,若当前网络图片为普通图片,向网络图片下载保存模块发送网络图片下载保存信号,若当前网络图片为视频缩略图,则跳转至视频连接进行浏览。The thumbnail mode operation module is used to: obtain the thumbnail of the current network picture from the server after receiving the thumbnail mode operation signal; when the thumbnail is clicked, if the current network picture is a normal picture, send a network Image download and save signal, if the current network image is a video thumbnail, jump to the video link for browsing.

网络图片下载保存模块用于:收到网络图片下载保存信号后,建立当前网络图片的下载链接,网络图片下载完成后进行保存、并向网络图片展示模块发送网络图片展示信号。The network picture download and save module is used for: after receiving the network picture download and save signal, establish the download link of the current network picture, save the network picture after the download is completed, and send the network picture display signal to the network picture display module.

网络图片展示模块用于:收到网络图片展示信号后,展示当前网络图片,若网络图片为视频缩略图,则为网络图片覆盖视频标识。The network picture display module is used for displaying the current network picture after receiving the network picture display signal, and if the network picture is a video thumbnail, the network picture covers the video logo.

本发明不局限于上述实施方式,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围之内。本说明书中未作详细描述的内容属于本领域专业技术人员公知的现有技术。The present invention is not limited to the above-mentioned embodiments. For those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications are also considered protection of the present invention. within range. The content not described in detail in this specification belongs to the prior art known to those skilled in the art.

Claims (10)

1. an IOS saves the displaying exchange method of capaciated flow network picture, it is characterised in that The method comprises the following steps:
A:IOS client is arranged needs the URL of the network picture browsed and to network picture Carry out the differentiation of normal picture or video thumbnails, forward step B to;
B: judge that the URL whether existing in IOS client with arranging in step A is identical Network picture, if so, forwards step G to, otherwise forwards step C to;
C: if current IOS client is in non-WIFI network environment and IOS client Mobile data traffic is not less than preset value, then according to flow pre-setting less than preset value, choosing Select the operation of corresponding network picture: if being set in advance as " without chart-pattern ", forward step D to, If being set in advance as " little chart-pattern ", forwarding step E to, if pre-setting, forwarding to Step F;
D: if current network picture is normal picture, then in IOS client, display is common silent Recognize figure, if current network picture is video thumbnails, then in IOS client, show that video is write from memory Recognize figure;When generic default figure or video acquiescence figure are clicked, forward step F to;
E:IOS client obtains the thumbnail of current network picture from server;Work as thumbnail Time clicked, if current network picture is normal picture, forward step F to, if current network figure Sheet is video thumbnails, then jump to video connection and browse;
F: set up the download link of current network picture, network picture is protected after having downloaded Deposit, forward step G to;
G: show current network picture in IOS client.
2. IOS as claimed in claim 1 saves the displaying exchange method of capaciated flow network picture, It is characterized in that: the idiographic flow of step B is:
B01: judge whether exist in the memory cache of IOS client and setting in step A Network picture identical for URL, if so, forwards step G to;Otherwise forward step B02 to;
B02: judge whether exist in the hard disk cache of IOS client and setting in step A Network picture identical for URL, if so, forwards step G to;Otherwise forward step B03 to;
B03: in IOS client, inquires about current net according to the URL arranged in step A Whether network picture has built up connection and is in just in download state, if so, at network picture Download forwards step G to after completing;Otherwise forward step C to.
3. IOS as claimed in claim 1 saves the displaying exchange method of capaciated flow network picture, It is characterized in that: step C is further comprising the steps of: if current IOS client is in WIFI Network environment, the most automatically downloads network picture, forwards step G after having downloaded to;If IOS When the mobile data traffic of client exceedes preset value, whether pop-up prompting opens " without chart-pattern ", If so, forward step D to, otherwise forward to described according to flow pre-setting less than preset value, Select the flow process that corresponding network picture operates.
4. the IOS as described in any one of claims 1 to 3 saves the exhibition of capaciated flow network picture Show exchange method, it is characterised in that: save location described in step F is memory cache and this locality Caching.
5. the IOS as described in any one of claims 1 to 3 saves the exhibition of capaciated flow network picture Show exchange method, it is characterised in that: show current described in step G in IOS client After network picture, if current network picture is video thumbnails, then cover for current network picture Lid video labeling.
6. the IOS as described in any one of claims 1 to 3 saves the exhibition of capaciated flow network picture Show exchange method, it is characterised in that: need obtaining of the network picture browsed described in step A Taking flow process is: after IOS user end to server initiates the request of browse network picture, server Return network picture.
7. one kind realizes saving in the IOS of method described in any one of claim 1 to 6 flow network The displaying interactive system of network picture, it is characterised in that: this system includes being positioned in IOS client The network address arrange module, network picture detecting module, network environment detection module, without figure Mode operation module, little chart-pattern operation module, network picture are downloaded and are preserved module and network Sheet display module;
The network address arrange module for: arrange the URL of network picture needing to browse and Network picture is carried out the differentiation of normal picture or video thumbnails, to network picture detecting module Send network picture detection signal;
Network picture detecting module is used for: after receiving network picture detection signal, it is judged that IOS Whether client exists the network picture identical for URL that module is arranged is set with the network address, If so, network display picture signal is sent to network picture display module, otherwise to network environment Detection module sends network environment detection signal;
Network environment detection module is used for: after receiving network environment detection signal, if current IOS Client be in the mobile data traffic of non-WIFI network environment and IOS client not less than Preset value, then according to flow pre-setting less than preset value, select corresponding network picture to grasp Making: if being set in advance as " without chart-pattern ", sending without chart-pattern to without chart-pattern operation module Operation signal, if being set in advance as " little chart-pattern ", sends little to little chart-pattern operation module Chart-pattern operation signal, if pre-setting, downloading to network picture and preserving module transmission Network picture is downloaded and is preserved signal;
Operation module without chart-pattern is used for: after receiving without chart-pattern operation signal, if current network Picture is normal picture, then show generic default figure, if current network picture is video thumbnails, Then show video acquiescence figure;When generic default figure or video acquiescence figure are clicked, to network Sheet is downloaded and is preserved module transmission network picture download preservation signal;
Little chart-pattern operation module is used for: after receiving little chart-pattern operation signal, obtain from server Take the thumbnail of current network picture;When thumbnail is clicked, if current network picture is general Logical picture, downloads preservation module transmission network picture download to network picture and preserves signal, if working as Front network picture is video thumbnails, then jump to video connection and browse;
Network picture is downloaded preservation module and is used for: after receiving network picture download preservation signal, build The download link of vertical current network picture, network picture carries out preserving and to net after having downloaded Network picture presentation module sends network display picture signal;
Network picture display module is used for: after receiving network display picture signal, shows current net Network picture.
8. IOS as claimed in claim 7 saves the displaying interactive system of capaciated flow network picture, It is characterized in that, described network picture detecting module specifically for: judge the interior of IOS client Deposit whether caching exists and the network picture identical for URL that module is arranged be set with the network address, If so, network display picture signal is sent to network picture display module;Otherwise:
Judge whether the hard disk cache of IOS client exists to arrange in module with the network address The network picture identical for URL arranged, if so, sends network to network picture display module Display picture signal;Otherwise:
In IOS client, the URL inquiry arranged is set according to the network address works as in module Whether front network picture has built up connection and is in just in download state, if so, at network Picture sends network display picture signal to network picture display module after having downloaded;Otherwise to Network environment detection module sends network environment detection signal.
9. IOS as claimed in claim 7 saves the displaying interactive system of capaciated flow network picture, It is characterized in that: after described network environment detection module receives network environment detection signal, if working as Front IOS client is in WIFI network environment, the most automatically downloads network picture, and download completes Network display picture signal is sent afterwards to network picture display module;If the movement of IOS client When data traffic exceedes preset value, pop-up prompting whether open " without chart-pattern ", if so, to Operation module without chart-pattern sends and operates signal without chart-pattern, otherwise continues according to flow less than pre- If pre-setting of value, corresponding network picture is selected to operate.
10. the IOS as described in any one of claim 7 to 9 saves the exhibition of capaciated flow network picture Show interactive system, it is characterised in that: after described network picture display module shows network picture, If network picture is video thumbnails, then cover video labeling for network picture.
CN201610409534.9A 2016-06-12 2016-06-12 The displaying exchange method and system of capaciated flow network picture are saved in IOS Expired - Fee Related CN105872103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610409534.9A CN105872103B (en) 2016-06-12 2016-06-12 The displaying exchange method and system of capaciated flow network picture are saved in IOS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610409534.9A CN105872103B (en) 2016-06-12 2016-06-12 The displaying exchange method and system of capaciated flow network picture are saved in IOS

Publications (2)

Publication Number Publication Date
CN105872103A true CN105872103A (en) 2016-08-17
CN105872103B CN105872103B (en) 2019-05-17

Family

ID=56650266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610409534.9A Expired - Fee Related CN105872103B (en) 2016-06-12 2016-06-12 The displaying exchange method and system of capaciated flow network picture are saved in IOS

Country Status (1)

Country Link
CN (1) CN105872103B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372109A (en) * 2016-08-19 2017-02-01 中国银联股份有限公司 Internet resource file caching method and apparatus
CN106453041A (en) * 2016-09-28 2017-02-22 北京小米移动软件有限公司 Method, device, and system for browsing multimedia, terminal equipment and server
CN109218357A (en) * 2017-07-01 2019-01-15 武汉斗鱼网络科技有限公司 Method, storage medium, electronic equipment and the system of web advertisement load
CN110691108A (en) * 2018-07-04 2020-01-14 武汉斗鱼网络科技有限公司 Picture downloading and saving method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682026A (en) * 2011-03-16 2012-09-19 腾讯科技(深圳)有限公司 Photo browsing method and client side
CN102740251A (en) * 2012-06-29 2012-10-17 奇智软件(北京)有限公司 System, terminal, method and server for transmitting and receiving multimedia information
CN103646115A (en) * 2013-12-26 2014-03-19 浙江宇天科技股份有限公司 Method and system for client side to access to webpage
CN104253836A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Wireless network based image displaying method and system and mobile terminal
CN104731808A (en) * 2013-12-20 2015-06-24 腾讯科技(深圳)有限公司 Browser webpage loading method and browser webpage loading device
CN105302899A (en) * 2015-10-23 2016-02-03 努比亚技术有限公司 Mobile terminal and picture processing method
CN105487640A (en) * 2015-12-15 2016-04-13 北京京东尚科信息技术有限公司 Image pre-loading and caching method of Android watch
CN105550245A (en) * 2015-12-08 2016-05-04 四川长虹电器股份有限公司 Optimization system and method for network picture loading and caching based on Android platform

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102682026A (en) * 2011-03-16 2012-09-19 腾讯科技(深圳)有限公司 Photo browsing method and client side
CN102740251A (en) * 2012-06-29 2012-10-17 奇智软件(北京)有限公司 System, terminal, method and server for transmitting and receiving multimedia information
CN104253836A (en) * 2013-06-27 2014-12-31 腾讯科技(深圳)有限公司 Wireless network based image displaying method and system and mobile terminal
CN104731808A (en) * 2013-12-20 2015-06-24 腾讯科技(深圳)有限公司 Browser webpage loading method and browser webpage loading device
CN103646115A (en) * 2013-12-26 2014-03-19 浙江宇天科技股份有限公司 Method and system for client side to access to webpage
CN105302899A (en) * 2015-10-23 2016-02-03 努比亚技术有限公司 Mobile terminal and picture processing method
CN105550245A (en) * 2015-12-08 2016-05-04 四川长虹电器股份有限公司 Optimization system and method for network picture loading and caching based on Android platform
CN105487640A (en) * 2015-12-15 2016-04-13 北京京东尚科信息技术有限公司 Image pre-loading and caching method of Android watch

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372109A (en) * 2016-08-19 2017-02-01 中国银联股份有限公司 Internet resource file caching method and apparatus
CN106453041A (en) * 2016-09-28 2017-02-22 北京小米移动软件有限公司 Method, device, and system for browsing multimedia, terminal equipment and server
CN109218357A (en) * 2017-07-01 2019-01-15 武汉斗鱼网络科技有限公司 Method, storage medium, electronic equipment and the system of web advertisement load
CN110691108A (en) * 2018-07-04 2020-01-14 武汉斗鱼网络科技有限公司 Picture downloading and saving method and electronic equipment
CN110691108B (en) * 2018-07-04 2022-09-09 武汉斗鱼网络科技有限公司 Picture downloading and saving method and electronic equipment

Also Published As

Publication number Publication date
CN105872103B (en) 2019-05-17

Similar Documents

Publication Publication Date Title
US8989715B2 (en) Method and system for rendering content on a wireless device
CN105095107B (en) Clear up data cached method and device
US8103865B2 (en) Server method and system for rendering content on a wireless device
TWI536242B (en) Presenting an application change through a tile
KR101496875B1 (en) Apparatus and methods for retrieving/downloading content on a communication device
CN104106048B (en) The resource for having installed application is updated using cache is applied
CN104252284A (en) File display method and device
CN108647068B (en) Method, system and media product for implementing application recommendation on APP startup page
CN105872103A (en) Traffic saving showing and interacting method and system for network pictures in IOS
US20120304094A1 (en) Method and apparatus for editing text using multiple selection and multiple paste
CN103428251B (en) A kind of downloading task distribution method and device
CN107402781B (en) Open screen page display management method, terminal and computer readable storage medium
CN105740425A (en) File storage method and apparatus
KR20140028029A (en) Presentation format for an application tile
CN103677517B (en) A kind of picture searching method and apparatus
CN105138226A (en) A desktop management method and device for an intelligent terminal
CN106873844B (en) Picture viewing method and device
WO2014194688A1 (en) Webpage processing method and terminal device
CN104793966A (en) Display and loading method and system of Android local application
CN106126244A (en) A kind of document processing method and device
CN106201736A (en) Pre-cache method and device thereof
CN105183890A (en) Webpage loading method based on browser and browser device
CN115617225A (en) Application interface display method, device, electronic device and storage medium
CN104252308A (en) Method and device for storing webpage content
CN102841750B (en) File opening method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20160817

Assignee: Hubei Special Automobile Network Technology Co.,Ltd.

Assignor: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

Contract record no.: X2023980034618

Denomination of invention: Interactive Method and System for Displaying Provincial Traffic Network Images in IOS

Granted publication date: 20190517

License type: Common License

Record date: 20230413

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190517