1、Information technology UPnP Device Architecture Part 20-14: Audio video device control protocol Level 4 Scheduled recording service BS ISO/IEC 29341-20-14:2017 BSI Standards Publication WB11885_BSI_StandardCovs_2013_AW.indd 1 15/05/2013 15:06Information technology UPnP Device Architecture Part 20-14
2、: Audio video device control protocol Level 4 Scheduled recording service Technologies de linformation Architecture de dispositif UPnP Partie 20-14: Protocole de contrle de dispositif audio-vido Niveau 4 Service denregistrement programm INTERNATIONAL STANDARD ISO/IEC 29341-20-14 Reference number ISO
3、/IEC 29341-20-14:2017(E) First edition 2017-09 ISO/IEC 2017 National foreword This British Standard is the UK implementation of ISO/IEC 29341-20-14:2017. The UK participation in its preparation was entrusted to Technical Committee ICT/-/1, Information systems co-ordination. A list of organizations r
4、epresented on this committee can be obtained on request to its secretary. This publication does not purport to include all the necessary provisions of a contract. Users are responsible for its correct application. The British Standards Institution 2017 Published by BSI Standards Limited 2017 ISBN 97
5、8 0 580 90848 4 ICS 35.200 Compliance with a British Standard cannot confer immunity from legal obligations. This British Standard was published under the authority of the Standards Policy and Strategy Committee on 30 September 2017. Amendments/corrigenda issued since publication Date Text affected
6、BRITISH STANDARD BS ISO/IEC 293412014:2017Information technology UPnP Device Architecture Part 20-14: Audio video device control protocol Level 4 Scheduled recording service Technologies de linformation Architecture de dispositif UPnP Partie 20-14: Protocole de contrle de dispositif audio-vido Nivea
7、u 4 Service denregistrement programm INTERNATIONAL STANDARD ISO/IEC 29341-20-14 Reference number ISO/IEC 29341-20-14:2017(E) First edition 2017-09 ISO/IEC 2017 BS ISO/IEC 293412014:2017 ii ISO/IEC 2017 All rights reserved COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2017, Published in Switzerland All rights
8、 reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior written permission. Permission can be requested from eith
9、er ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Ch. de Blandonnet 8 CP 401 CH-1214 Vernier, Geneva, Switzerland Tel. +41 22 749 01 11 Fax +41 22 749 09 47 copyrightiso.org www.iso.org ISO/IEC 29341-20-14:2017(E) BS ISO/IEC 293412014:2017 ii ISO/I
10、EC 2017 All rights reserved COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2017, Published in Switzerland All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posti
11、ng on the internet or an intranet, without prior written permission. Permission can be requested from either ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Ch. de Blandonnet 8 CP 401 CH-1214 Vernier, Geneva, Switzerland Tel. +41 22 749 01 11 Fax +4
12、1 22 749 09 47 copyrightiso.org www.iso.org ISO/IEC 29341-20-14:2017(E) ISO/IEC 29341-20-14:2017(E) ISO/IEC 2017 All rights reserved iii CONTENTS 1 Scope . 1 2 Normative references 2 3 Terms, definitions, symbols and abbreviations 5 3.1 Provisioning terms 5 3.2 Terms specific to ScheduledRecording s
13、ervice 5 3.2.1 CDS 5 3.2.2 EPG 6 3.2.3 SRS 6 3.2.4 CDS object . 6 3.2.5 User Channel 6 3.2.6 Channel Group 6 3.2.7 Channel Line-up 6 3.2.8 object . 6 3.2.9 c lass . 6 3.2.10 object Modification 6 3.2.11 recordSchedule . 6 3.2.12 Conflicting recordSchedule 6 3.2.13 recordTask 7 3.2.14 Conflicting rec
14、ordTask. 7 3.2.15 recordScheduleParts . 7 3.2.16 Property-set Data Types 7 3.2.17 Property 7 3.2.18 Member Property 8 3.2.19 Supported Member Property 8 3.2.20 Multi-valued property . 8 3.2.21 Single-valued property 8 3.2.22 XML Document . 8 3.2.23 XML Fragment 9 3.2.24 actualScheduledStartDateTime
15、9 3.2.25 actualStartDateTime 9 3.2.26 actualScheduledEndDateTime . 9 3.2.27 actualEndDateTime . 9 3.2.28 actualScheduledDuration . 9 3.2.29 Lexical Sort Order 10 3.2.30 Lexical Matching 10 3.2.31 Simple Non-case-sensitive Sort Order 10 3.2.32 Simple Non-case-sensitive Matching 11 3.2.33 Numeric Sort
16、 Order 11 3.2.34 Boolean Sort Order 11 3.2.35 Sequenced Sort . 11 3.2.36 Sequenced Lexical Sort 11 3.2.37 Sequenced Numeric Sort 11 3.2.38 Lexical Numeric Sort 11 3.2.39 type Relationship Sort 12 3.3 Symbols 12 4 Notations and Conventions 12 BS ISO/IEC 293412014:2017ISO/IEC 29341-20-14:2017(E) iv IS
17、O/IEC 2017 All rights reserved 4.1 Notation 12 4.1.1 Data Types 12 4.1.2 Strings Embedded in Other Strings . 12 4.1.3 Extended Backus-Naur Form 13 4.2 Derived Data Types . 13 4.2.1 Summary . 13 4.2.2 CSV Lists . 14 4.3 Management of XML Namespaces in Standardized DCPs . 15 4.3.1 Namespace Prefix Req
18、uirements 19 4.3.2 Namespace Names, Namespace Versioning and Schema Versioning 20 4.3.3 Namespace Usage Examples . 22 4.4 Vendor-defined Extensions 22 4.4.1 Vendor-defined Action Names 22 4.4.2 Vendor-defined State Variable Names 23 4.4.3 Vendor-defined XML Elements and attributes 23 4.4.4 Vendor-de
19、fined Property Names . 23 5 Service Modeling Definitions 23 5.1 ServiceType 23 5.2 ScheduledRecording Service Architecture 23 5.2.1 recordSchedule 23 5.2.2 recordTask . 25 5.3 State Variables 26 5.3.1 State Variable Overview . 26 5.3.2 SortCapabilities 28 5.3.3 SortLevelCapability 28 5.3.4 StateUpda
20、teID . 28 5.3.5 LastChange . 29 5.3.6 A_ARG_TYPE_PropertyList 32 5.3.7 A_ARG_TYPE_DataTypeID 32 5.3.8 A_ARG_TYPE_ObjectID . 32 5.3.9 A_ARG_TYPE_ObjectIDList . 32 5.3.10 A_ARG_TYPE_PropertyInfo . 33 5.3.11 A_ARG_TYPE_Index . 33 5.3.12 A_ARG_TYPE_Count . 33 5.3.13 A_ARG_TYPE_SortCriteria 33 5.3.14 A_A
21、RG_TYPE_RecordSchedule . 33 5.3.15 A_ARG_TYPE_RecordTask 34 5.3.16 A_ARG_TYPE_RecordScheduleParts . 34 5.4 Eventing and Moderation . 35 5.5 Actions 35 5.5.1 Action Overview . 35 5.5.2 GetSortCapabilities() 36 5.5.3 GetPropertyList() . 37 5.5.4 GetAllowedValues() 38 5.5.5 GetStateUpdateID() 40 5.5.6
22、BrowseRecordSchedules() . 40 5.5.7 BrowseRecordTasks() 45 5.5.8 CreateRecordSchedule() 47 BS ISO/IEC 293412014:2017ISO/IEC 29341-20-14:2017(E) iv ISO/IEC 2017 All rights reserved 4.1 Notation 12 4.1.1 Data Types 12 4.1.2 Strings Embedded in Other Strings . 12 4.1.3 Extended Backus-Naur Form 13 4.2 D
23、erived Data Types . 13 4.2.1 Summary . 13 4.2.2 CSV Lists . 14 4.3 Management of XML Namespaces in Standardized DCPs . 15 4.3.1 Namespace Prefix Requirements 19 4.3.2 Namespace Names, Namespace Versioning and Schema Versioning 20 4.3.3 Namespace Usage Examples . 22 4.4 Vendor-defined Extensions 22 4
24、.4.1 Vendor-defined Action Names 22 4.4.2 Vendor-defined State Variable Names 23 4.4.3 Vendor-defined XML Elements and attributes 23 4.4.4 Vendor-defined Property Names . 23 5 Service Modeling Definitions 23 5.1 ServiceType 23 5.2 ScheduledRecording Service Architecture 23 5.2.1 recordSchedule 23 5.
25、2.2 recordTask . 25 5.3 State Variables 26 5.3.1 State Variable Overview . 26 5.3.2 SortCapabilities 28 5.3.3 SortLevelCapability 28 5.3.4 StateUpdateID . 28 5.3.5 LastChange . 29 5.3.6 A_ARG_TYPE_PropertyList 32 5.3.7 A_ARG_TYPE_DataTypeID 32 5.3.8 A_ARG_TYPE_ObjectID . 32 5.3.9 A_ARG_TYPE_ObjectID
26、List . 32 5.3.10 A_ARG_TYPE_PropertyInfo . 33 5.3.11 A_ARG_TYPE_Index . 33 5.3.12 A_ARG_TYPE_Count . 33 5.3.13 A_ARG_TYPE_SortCriteria 33 5.3.14 A_ARG_TYPE_RecordSchedule . 33 5.3.15 A_ARG_TYPE_RecordTask 34 5.3.16 A_ARG_TYPE_RecordScheduleParts . 34 5.4 Eventing and Moderation . 35 5.5 Actions 35 5
27、.5.1 Action Overview . 35 5.5.2 GetSortCapabilities() 36 5.5.3 GetPropertyList() . 37 5.5.4 GetAllowedValues() 38 5.5.5 GetStateUpdateID() 40 5.5.6 BrowseRecordSchedules() . 40 5.5.7 BrowseRecordTasks() 45 5.5.8 CreateRecordSchedule() 47 ISO/IEC 29341-20-14:2017(E) ISO/IEC 2017 All rights reserved v
28、 5.5.9 DeleteRecordSchedule() 49 5.5.10 GetRecordSchedule() . 50 5.5.11 EnableRecordSchedule() 51 5.5.12 DisableRecordSchedule() . 52 5.5.13 DeleteRecordTask() . 54 5.5.14 GetRecordTask() 54 5.5.15 EnableRecordTask() 55 5.5.16 DisableRecordTask() 57 5.5.17 ResetRecordTask() 58 5.5.18 GetRecordSchedu
29、leConflicts() 59 5.5.19 GetRecordTaskConflicts() 60 5.5.20 Common Error Codes . 61 5.6 State Diagram of recordTask 62 5.6.1 A Full-Featured State Diagram . 62 5.6.2 A Minimal-Implementation State Diagram . 68 5.6.3 recordTask State Example 70 5.7 ScheduledRecording Service Priority Model . 71 5.7.1
30、Introduction of the ScheduledRecording Service Priority Model . 71 5.7.2 Ordered Priority within Each Priority Level 72 5.7.3 Setting the Initial Priority Level of a recordSchedule . 73 5.7.4 Sorting recordSchedule Instances Based on their Current Priority Settings . 75 5.8 Theory of Operation . 76
31、5.8.1 Introduction 76 5.8.2 Checking the Capabilities of a ScheduledRecording Service . 76 5.8.3 Adding a Scheduled Recording Entry to the List 88 5.8.4 Deleting a recordSchedule . 106 5.8.5 Browsing recordSchedule and recordTask instances . 106 5.8.6 Rating System . 113 5.8.7 Conflict Detection and
32、 Resolution . 113 6 XML Service Description 115 7 Test . 125 Annex A (normative) srs XML Document 126 A.1 A_ARG_TYPE_RecordSchedule AVDT XML Document 126 A.2 A_ARG_TYPE_RecordTask AVDT XML Document . 127 A.3 A_ARG_TYPE_RecordScheduleParts AVDT XML Document 127 Annex B (normative) AV Working Committe
33、e Extended Properties . 129 B.1 Base Properties . 129 B.1.1 id 129 B.1.2 title 130 B.1.3 class 130 B.1.4 additionalStatusInfo . 130 B.1.5 cdsReference . 131 B.2 Priority Properties 132 B.2.1 priority . 132 B.2.2 desiredPriority 133 B.3 Output Control Properties 135 B.3.1 recordDestination . 135 BS I
34、SO/IEC 293412014:2017ISO/IEC 29341-20-14:2017(E) vi ISO/IEC 2017 All rights reserved B.3.2 desiredRecordQuality . 137 B.4 Content Identification Related Properties 140 B.4.1 scheduledCDSObjectID 140 B.4.2 scheduledChannelID 141 B.4.3 scheduledStartDateTime 143 B.4.4 scheduledDuration . 144 B.4.5 sch
35、eduledProgramCode . 144 B.5 Matching Content Criteria Properties 145 B.5.1 matchingName . 145 B.5.2 matchingID 146 B.6 Matching Qualifying Criteria Properties 147 B.6.1 matchingChannelID 148 B.6.2 matchingStartDateTimeRange 149 B.6.3 matchingDurationRange . 149 B.6.4 matchingRatingLimit . 150 B.6.5
36、matchingEpisodeType 152 B.7 Content Control Properties . 153 B.7.1 totalDesiredRecordTasks . 153 B.7.2 scheduledStartDateTimeAdjust . 154 B.7.3 scheduledDurationAdjust 154 B.7.4 activePeriod . 155 B.7.5 durationLimit 155 B.7.6 channelMigration 156 B.7.7 timeMigration . 157 B.7.8 allowDuplicates 157
37、B.8 Storage Related Properties 157 B.8.1 persistedRecordings. 158 B.9 Schedule State Properties . 159 B.9.1 scheduleState 159 B.9.2 abnormalTasksExist . 161 B.10 Statistics Properties . 161 B.10.1 currentRecordTaskCount 161 B.10.2 totalCreatedRecordTasks . 161 B.10.3 totalCompletedRecordTasks . 162
38、B.11 Task General Properties 162 B.11.1 recordScheduleID 162 B.11.2 recordedCDSObjectID 162 B.12 Task Content Identification Properties 163 B.12.1 taskCDSObjectID . 164 B.12.2 taskChannelID . 164 B.12.3 taskStartDateTime . 165 B.12.4 taskDuration 166 B.12.5 taskProgramCode 166 B.12.6 recordQuality .
39、 166 B.13 Task Matched Content Criteria Properties 169 B.13.1 matchedName 169 B.13.2 matchedID . 169 B.14 Task Matched Qualifying Criteria Properties . 170 B.14.1 matchedRating . 170 BS ISO/IEC 293412014:2017ISO/IEC 29341-20-14:2017(E) vi ISO/IEC 2017 All rights reserved B.3.2 desiredRecordQuality .
40、 137 B.4 Content Identification Related Properties 140 B.4.1 scheduledCDSObjectID 140 B.4.2 scheduledChannelID 141 B.4.3 scheduledStartDateTime 143 B.4.4 scheduledDuration . 144 B.4.5 scheduledProgramCode . 144 B.5 Matching Content Criteria Properties 145 B.5.1 matchingName . 145 B.5.2 matchingID 14
41、6 B.6 Matching Qualifying Criteria Properties 147 B.6.1 matchingChannelID 148 B.6.2 matchingStartDateTimeRange 149 B.6.3 matchingDurationRange . 149 B.6.4 matchingRatingLimit . 150 B.6.5 matchingEpisodeType 152 B.7 Content Control Properties . 153 B.7.1 totalDesiredRecordTasks . 153 B.7.2 scheduledS
42、tartDateTimeAdjust . 154 B.7.3 scheduledDurationAdjust 154 B.7.4 activePeriod . 155 B.7.5 durationLimit 155 B.7.6 channelMigration 156 B.7.7 timeMigration . 157 B.7.8 allowDuplicates 157 B.8 Storage Related Properties 157 B.8.1 persistedRecordings. 158 B.9 Schedule State Properties . 159 B.9.1 sched
43、uleState 159 B.9.2 abnormalTasksExist . 161 B.10 Statistics Properties . 161 B.10.1 currentRecordTaskCount 161 B.10.2 totalCreatedRecordTasks . 161 B.10.3 totalCompletedRecordTasks . 162 B.11 Task General Properties 162 B.11.1 recordScheduleID 162 B.11.2 recordedCDSObjectID 162 B.12 Task Content Ide
44、ntification Properties 163 B.12.1 taskCDSObjectID . 164 B.12.2 taskChannelID . 164 B.12.3 taskStartDateTime . 165 B.12.4 taskDuration 166 B.12.5 taskProgramCode 166 B.12.6 recordQuality . 166 B.13 Task Matched Content Criteria Properties 169 B.13.1 matchedName 169 B.13.2 matchedID . 169 B.14 Task Ma
45、tched Qualifying Criteria Properties . 170 B.14.1 matchedRating . 170 ISO/IEC 29341-20-14:2017(E) ISO/IEC 2017 All rights reserved vii B.14.1.1 matchedRatingtype . 170 B.14.1.2 matchedRatingequivalentAge . 171 B.14.2 matchedEpisodeType . 171 B.15 Task Matched Content Control Properties 171 B.15.1 ta
46、skStartDateTimeAdjust 171 B.15.2 taskDurationAdjust . 172 B.15.3 taskDurationLimit . 172 B.15.3.1 taskDurationLimiteffect . 172 B.15.4 taskChannelMigration . 173 B.15.5 taskTimeMigration 173 B.16 Task State Properties 173 B.16.1 taskState . 174 B.17 ContentDirectory Service Imported Properties 182 A
47、nnex C (normative) AV Working Committee Class Definitions 186 C.1 Class Hierarchy . 186 C.1.1 Relationships between Classes and Properties . 188 C.1.2 recordScheduleParts Properties . 189 C.1.3 recordSchedule Properties . 193 C.1.4 recordTask Properties 197 C.2 Class Definitions 199 C.3 object Base
48、Class 200 C.3.1 object.recordSchedule Class 201 C.3.2 object.recordTask Class . 211 Annex D (normative) EBNF Syntax Definitions 213 D.1 Priority Syntax . 213 D.2 Date&time Syntax 213 D.3 Class Name Syntax . 214 Annex E (informative) ScheduledRecording Service Relationship to ContentDirectory Service
49、 215 Annex F (informative) ScheduledRecording Service Relationship to EPG 216 Annex G (informative) AVDT Examples 217 G.1 A_ARG_TYPE_RecordSchedule AVDT Example 217 G.2 A_ARG_TYPE_RecordTask AVDT Example . 234 G.3 A_ARG_TYPE_RecordScheduleParts AVDT Example 253 Annex H (informative) Bibliography . 269 BS ISO/IEC 293412014:2017ISO/IEC 29341-20-14:2017(E) viii ISO/IEC 2017 All rights reserved List of Tables Table 1 Properties in XML 8 Table 2 EBNF Operators . 13 Table