WebAPI/TVAPI: Difference between revisions

m
Line 40: Line 40:
* For recording scheduling, the app may utilize [[WebAPI/DataStore | DataStore API]] (or some other storage mechanisms) as a centralized schedule pool and handle potential time conflicts between requests. It can also use TV Manager API to get the data of TV series and listen to possible updates if necessary. Besides, [[WebAPI/AlarmAPI | Alarm API]] may help schedule tasks.
* For recording scheduling, the app may utilize [[WebAPI/DataStore | DataStore API]] (or some other storage mechanisms) as a centralized schedule pool and handle potential time conflicts between requests. It can also use TV Manager API to get the data of TV series and listen to possible updates if necessary. Besides, [[WebAPI/AlarmAPI | Alarm API]] may help schedule tasks.


* If the app plans to support searching or other customized openrations on channel or EPG data, [[WebAPI/DataStore | DataStore API]] (or some other storage mechanisms) may be used to store the correspondent data. Even when the app is not running, System App or a service worker may help listen to EPG updates and reflect the change to stored data.
* If the app plans to support searching or other customized openrations on channel or EPG data, [[WebAPI/DataStore | DataStore API]] (or some other storage mechanisms) may be used to store the correspondent data. Even when the app is not running, System App or [https://slightlyoff.github.io/ServiceWorker/spec/service_worker/ service workers] may help listen to EPG updates and reflect the change to stored data.


* For operations about configuration/settings, such as language selection on TV device, [[WebAPI/SettingsAPI | Settings API]] is the right way to do so.
* For operations about configuration/settings, such as language selection on TV device, [[WebAPI/SettingsAPI | Settings API]] is the right way to do so.
Line 55: Line 55:
* [http://www.w3.org/TR/mediacapture-streams/ Media Capture and Streams API]
* [http://www.w3.org/TR/mediacapture-streams/ Media Capture and Streams API]
* [http://www.w3.org/TR/mediastream-recording/ MediaStream Recording API]
* [http://www.w3.org/TR/mediastream-recording/ MediaStream Recording API]
* [https://slightlyoff.github.io/ServiceWorker/spec/service_worker/ Service Workers]
Confirmed users
16

edits