IP Library Granted Patent US 10,880,583
Granted Patent B2
US 10,880,583 · App. 16/838,920 · Granted Dec 29, 2020

Method, apparatus, terminal, and readable storage medium for offline caching

Inventor: Yixiao Zhou (Hangzhou, CN)
Assignee: ADVANCED NEW TECHNOLOGIES CO., LTD.
H04N21/23106H04N21/2183H04N21/2387H04N21/2407H04N21/4431
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,880,583
App. No.
16/838,920
Granted
Dec 29, 2020
Kind
B2
Abstract

An offline caching method comprises: creating a cache data source module on the framework layer for downloading streaming media and a media cache module on the framework layer for writing data to a cache; downloading, by the cache data source module, a media resource from a storage, and writing the media resource into the media cache module to generate an offline cache file; storing the offline cache file; and providing the stored offline cache file to the application layer for access.

Claims (63)

1. A method for performing offline resource caching on a terminal having an operating system, wherein the operating system comprises a framework layer and an application layer, the method comprising:

modifying a data source module of a media player component on the framework layer to create a cache data source module on the framework layer for downloading streaming media and a media cache module on the framework layer for writing the streaming media to a media player database external to the media player component such that when the data source module is destroyed, the streaming media remain at the media player database;

downloading, by the cache data source module, a media resource from a storage, and writing the media resource into the media cache module to generate an offline cache file;

storing the offline cache file at the media player database; and

providing the stored offline cache file to the application layer for access.

2. The method according to claim 1 , wherein, the modifying a data source module of a media player component on the framework layer comprises:

maintaining a streaming media playback function and a download function of the data source module of the media player component;

modifying a caching policy; and

adding a memory caching maintaining function.

3. The method according to claim 1 , wherein the storing the offline cache file at the media player database comprises:

creating the media player database accessible to the application layer.

4. The method according to claim 3 , wherein the providing the stored offline cache file to the application layer for access comprises:

providing, by the media player database, an access interface to the application layer, for the application layer to read the offline cache file through the access interface.

5. The method according to claim 3 , further comprising:

querying, when the application layer starts resource playback, whether the media player database stores the offline cache file;

if the media player database stores the offline cache file, reading the offline cache file to perform resource playback; and

if the media player database does not store the offline cache file, invoking the media player component to perform video download and playback from the storage.

6. The method according to claim 5 , wherein the reading the offline cache file to perform resource playback comprises:

performing a one-time download function to download the offline cache file; and

playing back the offline cache file.

7. The method according to claim 1 , wherein the storing the offline cache file at the media player database comprises:

invoking a shared-preferences process in the operating system to store the offline cache file.

8. The method according to claim 7 , wherein the providing the stored offline cache file to the application layer for access comprises:

providing, by the shared-preferences process, an access interface to the application layer, for the application layer to read the offline cache file through the access interface.

9. An apparatus for performing offline resource caching on a terminal having an operating system, wherein the operating system comprises a framework layer and an application layer, the apparatus comprising:

a processor; and

a memory storing instructions executable by the one or more processors to causes the apparatus to perform operations comprising:

modifying a data source module of a media player component on the framework layer to create a cache data source module on the framework layer for downloading streaming media and a media cache module on the framework layer for writing the streaming media to a media player database external to the media player component such that when the data source module is destroyed, the streaming media remain at the media player database;

downloading, by the cache data source module, a media resource from a storage and writing the media resource into the media cache module to generate an offline cache file;

storing the offline cache file at the media player database; and

providing the stored offline cache file to the application layer for access.

10. The apparatus according to claim 9 , wherein the modifying a data source module of a media player component on the framework layer comprises:

maintaining a streaming media playback function and a download function of the data source module of the media player component;

modifying a caching policy; and

adding a memory caching maintaining function.

11. The apparatus according to claim 9 , wherein the storing the offline cache file at the media player database comprises:

creating the media player database accessible to the application layer.

12. The apparatus according to claim 11 , wherein the providing the stored offline cache file to the application layer for access comprises:

providing, by the media player database, an access interface to the application layer, for the application layer to read the offline cache file through the access interface.

13. The apparatus according to claim 11 , wherein the operations further comprise:

querying, when the application layer starts resource playback, whether the media player database stores the offline cache file;

if the media player database stores the offline cache file, reading the offline cache file to perform resource playback; and

if the media player database does not store the offline cache file, invoking the media player component to perform video download and playback from the cloud storage.

14. The method according to claim 13 , wherein the reading the offline cache file to perform resource playback comprises:

performing a one-time download function to download the offline cache file; and

playing back the offline cache file.

15. The apparatus according to claim 9 , wherein the storing the offline cached file at the media player database comprises:

invoking a shared-preferences process to store the offline cache file.

16. The apparatus according to claim 15 , wherein the providing the stored offline cache file to the application layer for access comprises:

providing, by the shared-preferences process, an access interface to the application layer, for the application layer to read the offline cache file through the access interface.

17. One or more non-transitory computer-readable storage media configured with instructions executable by one or more processors to cause the one or more processors to perform operations for offline resource caching on a terminal having an operating system, wherein the operating system comprises a framework layer and an application layer, the operations comprising:

modifying a data source module of a media player component on the framework layer to create a cache data source module on the framework layer for downloading streaming media and a media cache module on the framework layer for writing the streaming media to a media player database external to the media player component such that when the data source module is destroyed, the streaming media remain at the media player database;

downloading, by the cache data source module, a media resource from a storage, and writing the media resource into the media cache module to generate an offline cache file;

storing the offline cache file at the media player database; and

providing the stored offline cache file to the application layer for access.

18. The one or more non-transitory computer-readable storage media according to claim 17 , wherein the storing the offline cache file at the media player database comprises:

creating the media player database accessible to the application layer.

19. The one or more non-transitory computer-readable storage media according to claim 18 , wherein the providing the stored offline cache file to the application layer for access comprises:

providing, by the media player database, an access interface to the application layer, for the application layer to read the offline cache file through the access interface.

20. The one or more non-transitory computer-readable storage media according to claim 17 , wherein, the modifying a data source module of a media player component on the framework layer comprises:

maintaining a streaming media playback function and a download function of the data source module of the media player component;

modifying a caching policy; and

adding a memory caching maintaining function.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 16, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053796/0281 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 3, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053702/0392 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 12, 2020
From: ZHOU, YIXIAO
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 052639/0289 →
Priority Claims (1)
CN 2019 1 0345424 · Apr 26, 2019 · national
Continuity (2)
Continuation PCTCN2020071483 · Jan 10, 2020
Related Publication 20200245006A1 · Jul 30, 2020