-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
1487 lines (1343 loc) · 51.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Media Feeds</title>
<script src="https://www.w3.org/Tools/respec/respec-w3c" class="remove"></script>
<script class='remove'>
"use strict";
// See https://github.com/w3c/respec/wiki/ for how to configure ReSpec
var respecConfig = {
"github": "WICG/media-feeds",
"editors": [{
name: "Yiren Wang",
email: "[email protected]",
company: "Google",
w3cid: 138740
},
// Add additional editors here. https://github.com/w3c/respec/wiki/editors
],
"formerEditors": [{
name: "Becca Hughes",
email: "[email protected]",
company: "Google",
w3cid: 103353
},
],
"shortName": "media-feeds",
"specStatus": "CG-DRAFT",
"wg": "WICG",
"wgURI": "https://www.w3.org/community/wicg/"
};
</script>
</head>
<body>
<section id="abstract">
<p>
This specification enables web developers to show personalized media
recommendations on the browser UI.
</p>
</section>
<section id="sotd">
<p>
This is an unofficial proposal.
</p>
</section>
<section id="introduction">
<h2>Introduction</h2>
<p>
<em>This section is non-normative.</em>
</p>
<p>
Media is used extensively today, and the Web is one of the primary means
of consuming media content. Many browsers show content recommendations in
their UI. This specification aims to enable web sites to specify a feed of
personalized media recommendations that can be fetched by the browser and
displayed in the browser UI. By improving media discovery this would
improve the user experience as well as providing web sites with a new way
of reaching users.
</p>
</section>
<section id="conformance">
<p>
Unless otherwise stated, string comparisons are done in a
<a data-cite="HTML#case-sensitive">case-sensitive</a> manner.
</p>
<p>
In this document when we compare a string that starts with or equals
<code>https://schema.org</code> then <code>http://schema.org</code> is
valid too.
</p>
</section>
<section id="security-privacy-considerations">
<h2>Security and Privacy Considerations</h2>
<p>
<em>This section is non-normative.</em>
</p>
<p>
The API introduced in this specification has very low impact with regards
to security and privacy. The user agent should take care of fetching feeds
based on heuristics. The site may also be able to see when their feed
content is clicked by adding tracking to the <a>media feed item url</a> or
to the <a>media image</a> url.
</p>
<p>
For privacy purposes, the user agent should disable the feature in incognito
mode. This is because the lifetime of the incognito mode session is not long
enough for this feature to be useful.
</p>
<p>
In order to not show a stale <a>currently logged in user</a>, the user agent
should invalidate the contents of a feed in the following cases:
<ul>
<li>
The user visits the website.
</li>
<li>
If there is a <a>cookie name filter</a> that matches the name of a cookie on the
website and that cookie's value changed.
</li>
<li>
If there is no <a>cookie name filter</a>, then when any cookie expires or is
deleted on the website.
</li>
</ul>
When the feed is invalidated it should clear the contents and trigger a fetch
the next time the user agent fetches the feeds.
</p>
<p>
A <dfn>cookie name filter</dfn> is the name of a cookie that signals the user
agent to invalidate the contents of the feed. It is intended for the website
to provide the name of the login cookie so the user agent can invalidate the
feed if the login session changes.
</p>
<p>
Periodic background fetching of media feeds carries the risk of exposing the
list of the user's top media sites to network observers on any network the user
connects to in the future. Therefore, the user agent MUST obtain consent for
this feature.
</p>
<p>
This feature collects personalized information from websites including their
current identity (optional) and media recommendations. This sensitive data
will only be stored locally in the user's profile.
</p>
<p>
The user will have the option of switching feeds on/off at an individual feed
level. The user agent will collect a feature level consent that tells the
user that periodic background fetch is occuring. For feeds discovered after the
feature level consent is collected, the user agent will show a popup notification
when the user opens the feature which will let them know that this is occuring
and provide a mechanism to disable it.
</p>
</section>
<section id="model">
<h2>Model</h2>
<p>
The <dfn>media feed store</dfn> stores media feeds that have been
discovered. There can only be one <a>media feed URL</a>
<a data-cite="HTML#concept-origin">per-origin</a>. If a user agent
discovers a new <a>media feed URL</a> for an
<a data-cite="HTML#concept-origin">origin</a> that already has a <a>media
feed URL</a> then we will replace the existing one.
</p>
</section>
<section id="discovery-of-media-feeds">
<h2>Discovery of Media Feeds</h2>
<p>
The site should advertise the Media Feed to the user agent by adding a
<a data-cite="HTML#the-link-element">link element</a> to the
<a data-cite="HTML#the-head-element">head element</a>, these are known as
the <dfn>eligible feed links</dfn>. The
<a data-cite="HTML#attr-hyperlink-href">href attribute</a> contains the
<dfn>media feed URL</dfn>.
</p>
<p>
Media Feeds are only discovered on top-level
<a data-cite="HTML#document">Documents</a> that are a
<a data-cite="HTML#secure-context">secure context</a>.
</p>
<p>
The user agent MUST run the following steps for each <a>eligible feed link
</a> when the <a data-cite="HTML#document">Document</a> is
<a data-cite="HTML#ready-for-post-load-tasks">ready for post-load tasks</a>:
<ul>
<li>
If the <a data-cite="HTML#linkTypes">link type</a> is not set to
<code>media-feed</code> then return null
</li>
<li>
If the <a>media feed URL</a> is not a valid
<a data-cite="url#urls">URL</a> then return an error
</li>
<li>
If the <a>media feed URL</a> is not the
<a data-cite="HTML#concept-origin">same origin</a> as the current
document then return an error
</li>
<li>
Store the <a>media feed URL</a> and
<a data-cite="HTML#concept-origin">origin</a> in the
<a>media feed store</a>
</li>
</ul>
</p>
</section>
<section id="retrieval-of-media-feeds">
<h2>Retrieval of Media Feeds</h2>
<p>
The user agent MUST initiate a <a data-cite="FETCH#fetching">fetch</a>
with the following <a data-cite="FETCH#concept-request">request</a>
parameters:
<ul>
<li>
<a data-cite="FETCH#concept-header-list">header list</a>
containing the <a data-cite="rfc7231#header.accept">accept header</a> set
to <a data-cite="JSON#">application/json</a>
</li>
<li>
<a data-cite="FETCH#concept-request-redirect-mode">redirect mode</a> set to
<code>error</code>
</li>
</ul>
</p>
<p>
The site will return the <dfn>media feed document</dfn> which MUST be
valid <a data-cite="JSON#">JSON</a>.
</p>
<p>
If the user agent recieves a
<a data-cite="rfc7231#section-6.5.9">410 Gone</a> status code from the
site then it should remove the feed from the <a>media feed store</a>.
</p>
<section id="media-feed-document">
<h3>Media Feed Document</h2>
<p>
The <a>media feed document</a> should be a
<a data-cite="schema-org/CompleteDataFeed#">CompleteDataFeed</a>. This
has a <a data-cite="schema-org/provider#">provider</a> property that
contains an <a data-cite="schema-org/Organization#">Organization</a> to
describe the <dfn>publishing web site</dfn>. The
<a data-cite="schema-org/member#">member</a> field on
<a data-cite="schema-org/Organization#">Organization</a> should
contain a <a data-cite="schema-org/Person#">Person</a> that contains the
details about the <dfn>currently logged in user</dfn>. The user agent can
show this to the user to identifier which account the recommendations are
coming from. This is especially important if the media site supports
multiple profiles.
</p>
<p>
The user agent MUST validate the <a>media feed document</a> using the
following steps:
<ul>
<li>
The <code>@context</code> MUST be set to <code>https://schema.org</code>.
</li>
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/CompleteDataFeed#">CompleteDataFeed</a>.
</li>
<li>
The <a data-cite="schema-org/member#">provider</a> property MUST
contain a <a data-cite="schema-org/Organization#">Organization</a>
that is a valid <a>publishing web site</a>.
</li>
<li>
The <a data-cite="schema-org/dataFeedElement#">dataFeedElement</a>
property supports <a>multiple values</a> and if present it MUST
contain valid <a>media feed items</a> or
<a>media feed broadcast events</a>.
</li>
<li>
The <a data-cite="schema-org/additionalProperty#">additionalProperty</a>
property supports <a>multiple values</a> and if present it MUST
contain valid <a>media feed properties</a>.
</li>
</ul>
</p>
<p>
The user agent MUST validate the <dfn>media feed property</dfn> using the
following steps:
<ul>
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/PropertyValue#">PropertyValue</a>.
</li>
<li>
The <a data-cite="schema-org/name#">name</a> property MUST be present
and contain a valid non-empty string.
</li>
<li>
The <a data-cite="schema-org/value#">value</a> property MUST be present
</li>
<li>
If the name <a data-cite="schema-org/name#">name</a> property contains
<code>cookieNameFilter</code> then the user agent MUST run the following
steps:
<ul>
<li>
The <a data-cite="schema-org/value#">value</a> property MUST contain
a valid non-empty string that will be set as the
<a>cookie name filter</a>.
</li>
</ul>
</li>
</ul>
</p>
<p>
The user agent MUST validate the <a>publishing web site</a> using the
following steps:
<ul>
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/Organization#">Organization</a>.
</li>
<li>
The <a data-cite="schema-org/name#">name</a> property MUST contain a
valid non-empty string.
</li>
<li>
The <a data-cite="schema-org/logo#">logo</a> property supports
<a>multiple values</a> and MUST contain a maximum of 5 different
<a>media logos</a>.
</li>
<li>
The <a data-cite="schema-org/member#">member</a> property is
optional. If present, it MUST contain a valid
<a>currently logged in user</a>.
</li>
</ul>
</p>
<p>
The user agent MUST validate the <a>currently logged in user</a> using
the following steps:
<ul>
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/Person#">Person</a>.
</li>
<li>
The <a data-cite="schema-org/name#">name</a> property MUST contain a
valid non-empty string.
</li>
<li>
The <a data-cite="schema-org/image#">image</a> property is optional.
If present, it MUST contain a valid <a>media image</a>.
</li>
<li>
The <a data-cite="schema-org/email#">email</a> property is optional.
If present, it MUST contain a valid
<a data-cite="EMAIL#section-3.4">email address</a>.
</li>
</ul>
</p>
<div class="example" id="example-1-sample-feed">
<div class="marker">
<a class="self-link" href="#example-1-sample-feed">
Example<bdi> 1</bdi>
</a>
<span class="example-title">: Sample Media Feed</span>
</div>
<pre>
<code class="json">
{
"@context": "http://schema.org",
"@type": "CompleteDataFeed",
"dataFeedElement": [
...
]
"provider": {
"@type": "Organization",
"member": {
"@type": "Person",
"email": "[email protected]",
"name": "Becca Hughes",
"image": "https://www.example.org/profile_pic.jpg"
},
"name": "Media Site",
"logo": [
{
"@type": "ImageObject",
"width": 336,
"height": 188,
"url": "https://beccahughes.github.io/logo-dark-title-transparent.png",
"additionalProperty": {
"@type": "PropertyValue",
"name": "contentAttributes",
"value": ["forDarkBackground", "hasTitle", "transparentBackground"]
}
},
{
"@type": "ImageObject",
"width": 336,
"height": 188,
"url": "https://beccahughes.github.io/logo-light-title-transparent.png",
"additionalProperty": {
"@type": "PropertyValue",
"name": "contentAttributes",
"value": ["forLightBackground", "hasTitle", "transparentBackground"]
}
}
]
},
"additionalProperty": {
"@type": "PropertyValue",
"name": "cookieNameFilter",
"value": "LOGIN"
}
}
</code>
</pre>
</div>
</section>
<section id="media-feed-item">
<h3>Media Feed Item</h2>
<p>
A <a>media feed document</a> may contain multiple
<dfn>media feed items</dfn>. Each item represents a single item of media
to be recommended to the user. Each <a>media feed item</a> must be one
of the following <dfn>media item types</dfn>:
<ul>
<li>
<a data-cite="schema-org/VideoObject#">
Thing > CreativeWork > MediaObject > VideoObject
</a>
</li>
<li>
<a data-cite="schema-org/Movie#">
Thing > CreativeWork > Movie
</a>
</li>
<li>
<a data-cite="schema-org/TVSeries#">
Thing > CreativeWork > CreativeWorkSeries > TVSeries
</a>
</li>
</ul>
</p>
<p>
Every <a>media feed item</a> MUST have a <dfn>media item ID</dfn>
that is unique within the <a>media feed document</a> and is a valid
<a data-cite="url#urls">URL</a>.
</p>
<p>
The user agent MUST validate every <a>media feed item</a> using the
following steps:
<ul>
<li>
The <a>type</a> MUST be set to a valid <a>media item type</a>.
</li>
<li>
The <code>@id</code> property MUST be set and contain a
valid <a>media item ID</a>.
</li>
<li>
The <a data-cite="schema-org/name#">name</a> property MUST contain
a valid non-empty string.
</li>
<li>
The <a data-cite="schema-org/datePublished#">datePublished</a>
property MUST contain a string that is valid date or date time in
<a data-cite="ISO8601#">ISO8601 format</a>.
</li>
<li>
The <a data-cite="schema-org/image#">image</a> property supports
<a>multiple values</a> and MUST contain a maximum of 5 different
<a>media content images</a>.
</li>
<li>
The <a data-cite="schema-org/potentialAction#">
potentialAction</a> property MUST be a valid <a>media item
action</a> unless the object has an <a>embedded watch action</a>
OR the item is embedded in a <a>media feed broadcast event</a>.
</li>
<li>
The <a data-cite="schema-org/interactionStatistic#">
interactionStatistic</a> property supports <a>multiple values</a>
and if present it MUST contain a maximum of 3
<a>media item interaction statistics</a>.
</li>
<li>
The <a data-cite="schema-org/contentRating#">
contentRating</a> property supports <a>multiple values</a>
and if present it MUST contain a maximum of 3 valid
<a>media item content ratings</a>.
</li>
<li>
The <a data-cite="schema-org/isFamilyFriendly#">isFamilyFriendly</a>
property MAY be present. If present it MUST contain a
<a>schema.org boolean property</a>.
</li>
<li>
The <a data-cite="schema-org/genre#">genre</a> property supports
<a>multiple values</a> and if present it MUST contain a maximum
of 5 non-empty strings.
</li>
<li>
The <a data-cite="schema-org/identifier#">identifier</a> property
supports <a>multiple values</a> and if present it MUST contain
a valid <a>media item third party identifier set</a>.
</li>
<li>
If the <a>media item type</a> is a
<a data-cite="schema-org/Movie#">Movie</a> then the user agent MUST
also do the following:
<ul>
<li>
The <a data-cite="schema-org/duration#">duration</a> property MUST
contain a string that is valid duration in
<a data-cite="ISO8601#">ISO8601 format</a>.
</li>
</ul>
</li>
<li>
If the <a>media item type</a> is a
<a data-cite="schema-org/VideoObject#">VideoObject</a> then the user
agent MUST also do the following:
<ul>
<li>
The <a data-cite="schema-org/author#">author</a> property MUST
contain a valid <a>media item author</a>.
</li>
<li>
The <a data-cite="schema-org/duration#">duration</a> property
is only required if the item is embedded in a
<a>media feed broadcast event</a> otherwise it is optional.
If present, it MUST contain a string that is valid duration in
<a data-cite="ISO8601#">ISO8601 format</a>.
</li>
</ul>
</li>
<li>
If the <a>media item type</a> is a
<a data-cite="schema-org/TVSeries#">TVSeries</a> then the user agent
MUST also do the following:
<ul>
<li>
The <a data-cite="schema-org/episode#">episode</a> property supports
<a>multiple values</a> and if present it MUST contain valid
<a>media item episodes</a>.
</li>
<li>
The <a data-cite="schema-org/containsSeason#">containsSeason</a>
property supports <a>multiple values</a> and if present it MUST
contain valid <a>media item seasons</a>.
</li>
</ul>
</li>
</ul>
</p>
</section>
<section id="media-feed-broadcast-event">
<h3>Media Feed Broadcast Event</h2>
<p>
The <dfn>media feed broadcast event</dfn> describes a media
recommendation that could be the broadcasting schedule of a show
or a live streaming event on the internet. It contains an embedded
<a>media feed item</a> that is the media recommendation that is
being broadcast.
</p>
<p>
<ul>
The user agent MUST validate every <a>media feed broadcast event</a>
using the following steps:
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/BroadcastEvent#">BroadcastEvent</a>.
</li>
<li>
The <code>@id</code> property MUST be set and contain a valid
<a>media item ID</a>.
</li>
<li>
The <a data-cite="schema-org/isLiveBroadcast#">isLiveBroadcast</a>
property MUST contain a <a>schema.org boolean property</a>.
</li>
<li>
The <a data-cite="schema-org/workPerformed#">workPerformed</a> property
MUST contain a valid <a>media feed item</a>.
</li>
<li>
The <a data-cite="schema-org/potentialAction#">
potentialAction</a> property MUST be a valid <a>media item
action</a> unless the object has an <a>embedded watch action</a>.
</li>
<li>
The <a data-cite="schema-org/startDate#">startDate</a> property MUST
contain a string that is valid date or date time in
<a data-cite="ISO8601#">ISO8601 format</a>.
</li>
<li>
The <a data-cite="schema-org/endDate#">endDate</a> property MAY
be present. If it is, it MUST contain a string that is valid
date or date time in <a data-cite="ISO8601#">ISO8601 format</a>.
</li>
</ul>
</p>
<div class="example" id="example-2-broadcast-event">
<div class="marker">
<a class="self-link" href="#example-2-broadcast-event">
Example<bdi> 2</bdi>
</a>
<span class="example-title">: Broadcast Event</span>
</div>
<p>
Below is an example of a video that is being live streamed.
</p>
<pre>
<code class="json">
{
"@context": "https://schema.org/",
"@type": "BroadcastEvent",
"@id": "https://example.org/event",
"isLiveBroadcast": "http://schema.org/True",
"startDate": "2020-01-28T06:00:00+0000",
"endDate": "2020-01-28T07:00:00+0000",
"potentialAction": {
"@type": "WatchAction",
"target": "https://example.org/watch/video"
},
"workPerformed": {
"@context": "https://schema.org/",
"@type": "VideoObject",
"@id": "https://example.org/video",
"author": {
"@type": "Person",
"name": "Test User",
"url": "https://example.org/testuser"
},
"datePublished": "2020-01-27",
"duration": "PT5M49S",
"genre": "Animated Shorts",
"image": {
"@type": "ImageObject",
"width": 360,
"height": 480,
"url": "https://example.org/video_thumbnail.png"
},
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "http://schema.org/WatchAction",
"userInteractionCount": "4356"
},
"isFamilyFriendly": "http://schema.org/True",
"name": "Big Buck Bunny"
}
}
</code>
</pre>
</div>
</section>
<section id="media-item-action">
<h3>Media Item Action</h2>
<p>
The user agent MUST use the following steps to validate a <dfn>media
item action</dfn>. The action contains the
<dfn>media feed item url</dfn> which is used by the user agent to
launch the media item.
<ul>
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/WatchAction#">WatchAction</a>.
</li>
<li>
The <a data-cite="schema-org/actionStatus#">actionStatus</a>
property MAY be present. If present it MUST be one of the
following:
<ul>
<li>
<a data-cite="schema-org/ActiveActionStatus#">
https://schema.org/ActiveActionStatus
</a> for when the action is in progress.
</li>
<li>
<a data-cite="schema-org/PotentialActionStatus#">
https://schema.org/PotentialActionStatus
</a> for when the action has not been started.
</li>
<li>
<a data-cite="schema-org/CompletedActionStatus#">
https://schema.org/CompletedActionStatus
</a> for when the action is finished.
</li>
</ul>
</li>
<li>
If the <a data-cite="schema-org/actionStatus#">actionStatus</a>
property is set to <a data-cite="schema-org/ActiveActionStatus#">
https://schema.org/ActiveActionStatus</a>, then the
<a data-cite="schema-org/startTime#">startTime</a> property MUST
contain a valid <a data-cite="xmlschema-2#time">time</a>.
</li>
<li>
The <a data-cite="schema-org/target#">target</a> property MUST
contain a valid <a data-cite="url#urls">URL</a>.
</li>
</ul>
</p>
</section>
<section id="media-item-content-rating">
<h3>Media Item Content Rating</h2>
<p>
The <dfn>content rating</dfn> rates the suitability of the <a>media
feed item</a> to its audience. It is usually a category that tells
which age group is suitable to view the media.
</p>
<p>
The <dfn>media item content rating</dfn> can be a non-empty string
containing the <a>content rating</a> of the media item. It can also
be a <a data-cite="schema-org/Rating#">Rating</a>. If it is a
<a data-cite="schema-org/Rating#">Rating</a> then the user
agent MUST use the following steps to validate it:
<ul>
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/Rating#">Rating</a>.
</li>
<li>
The <a data-cite="schema-org/author#">author</a> property MUST
contain a valid non-empty string. This is the agency that issued
the rating (e.g. MPAA). A list of known content rating agencies
is <a href="content-rating-agencies.md">available here</a>.
</li>
<li>
The <a data-cite="schema-org/ratingValue#">ratingValue</a>
property MUST contain a valid non-empty string. This is the
<a>content rating</a> that was issued.
</li>
</ul>
</p>
</section>
<section id="media-item-interaction-statistic">
<h3>Media Item Interaction Statistic</h2>
<p>
The <dfn>media item interaction statistic</dfn> is a counter that
counts how many interactions of a certain type (e.g. likes, views)
that a <a>media feed item</a> has. There can be at most one
<a>media item interaction statistic</a> for a certain type for a
single <a>media feed item</a>.
</p>
<p>
The user agent MUST use the following steps to validate it:
<ul>
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/InteractionCounter#">
InteractionCounter</a>.
</li>
<li>
The <a data-cite="schema-org/interactionType#">interactionType</a>
property MUST be unique within a <a>media feed item</a> and be
one of the following:
<ul>
<li>
<a data-cite="schema-org/WatchAction#">
https://schema.org/WatchAction
</a> for how many views this <a>media feed item</a> has.
</li>
<li>
<a data-cite="schema-org/LikeAction#">
https://schema.org/LikeAction
</a> for how many likes this <a>media feed item</a> has.
</li>
<li>
<a data-cite="schema-org/DislikeAction#">
https://schema.org/DislikeAction
</a> for how many dislikes this <a>media feed item</a> has.
</li>
</ul>
</li>
<li>
The <a data-cite="schema-org/userInteractionCount#">
userInteractionCount</a> property MUST contain a number. This can
be either a JSON number or a string. This is the count of the
interactions that happened.
</li>
</ul>
</p>
</section>
<section id="media-item-author">
<h3>Media Item Author</h2>
<p>
The <dfn>media item author</dfn> can be a non-empty string containing
the name of the author. It can also be a
<a data-cite="schema-org/Person#">Person</a>. If it is a
<a data-cite="schema-org/Person#">Person</a> then the user
agent MUST use the following steps to validate it:
<ul>
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/Person#">Person</a>.
</li>
<li>
The <a data-cite="schema-org/name#">name</a> property MUST contain a
valid non-empty string.
</li>
<li>
The <a data-cite="schema-org/url#">url</a> property MAY be present
If present, it MUST contain a valid
<a data-cite="url#urls">URL</a>.
</li>
</ul>
</p>
</section>
<section id="media-item-season">
<h3>Media Item Season</h2>
<p>
The <dfn>media item season</dfn> represents a season of TV episodes.
</p>
<p>
The user agent MUST use the following steps to validate it:
<ul>
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/TVSeason#">TVSeason</a>.
</li>
<li>
The <a data-cite="schema-org/seasonNumber#">
seasonNumber</a> property MUST be a positive integer.
</li>
<li>
The <a data-cite="schema-org/numberOfEpisodes#">
numberOfEpisodes</a> property MUST be a positive integer.
</li>
<li>
The <a data-cite="schema-org/episode#">episode</a> property supports
<a>multiple values</a> and if present it MUST contain valid
<a>media item episodes</a>.
</li>
</ul>
</p>
</section>
<section id="media-item-episode">
<h3>Media Item Episode</h2>
<p>
The <dfn>media item episode</dfn> represents a single TV episode. It
contains an <dfn>embedded watch action</dfn> stored in the
<a data-cite="schema-org/potentialAction#">potentialAction</a>
property.
</p>
<p>
The user agent MUST use the following steps to validate it:
<ul>
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/TVEpisode#">TVEpisode</a>.
</li>
<li>
The <a data-cite="schema-org/episodeNumber#">
episodeNumber</a> property MUST be a positive integer.
</li>
<li>
The <a data-cite="schema-org/duration#">duration</a> property MUST
contain a string that is a valid duration in
<a data-cite="ISO8601#">ISO8601 format</a>.
</li>
<li>
The <a data-cite="schema-org/name#">name</a> property MAY be
present. If present, it MUST contain a valid non-empty string.
</li>
<li>
The <a data-cite="schema-org/identifier#">identifier</a> property
supports <a>multiple values</a> and if present it MUST contain
a valid <a>media item third party identifier set</a>.
</li>
<li>
The <a data-cite="schema-org/image#">image</a> property supports
<a>multiple values</a> and if present it MUST contain a maximum
of 5 valid <a>media content images</a>.
</li>
<li>
The <a data-cite="schema-org/potentialAction#">
potentialAction</a> property MUST contain a valid
<a>media item action</a>.
</li>
</ul>
</p>
</section>
<section id="media-image">
<h3>Media Image</h2>
<p>
The <dfn>media image</dfn> represents an image that can be a
thumbnail that represents the content or it could be the logo
for the feed. It has a number of <dfn>content attributes</dfn>
that describe the image's type and defines its suggested usages.
Depending on where the <a>media image</a> is embedded there are
different requirements for <a>content attributes</a>.
</p>
<p>
The user agent MUST use the following steps to validate it:
<ul>
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/ImageObject#">ImageObject</a>.
</li>
<li>
The <a data-cite="schema-org/width#">width</a> property MUST
contain a positive integer that is the width of the image in
pixels.
</li>
<li>
The <a data-cite="schema-org/height#">height</a> property MUST
contain a positive integer that is the height of the image in
pixels.
</li>
<li>
The <a data-cite="schema-org/embedUrl#">embedUrl</a> property or
<a data-cite="schema-org/url#">url</a> property MUST contain
a valid <a data-cite="url#urls">URL</a>.
</li>
<li>
The <a data-cite="schema-org/additionalProperty#">additionalProperty</a>
property MAY be present. If present, it must contain a
<a data-cite="schema-org/PropertyValue#">PropertyValue</a> object and
the user agent MUST use the following steps to validate it:
<ul>
<li>
The <a>type</a> MUST be set to
<a data-cite="schema-org/PropertyValue#">PropertyValue</a>.
</li>
<li>
The <a data-cite="schema-org/name#">name</a> property MUST contain
<code>contentAttributes</code>.
</li>
<li>
The <a data-cite="schema-org/value#">value</a> property supports
<a>multiple values</a> and if present it MUST contain non empty
strings. These are the <a>content attributes</a> for the
<a>media image</a>.
</li>
</ul>
</li>
</ul>
</p>
<p>
A <dfn>media logo</dfn> is a <a>media image</a> that is the logo for the