Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPE-323: add add copytext-video component #928

Merged
merged 6 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/assets/brand/_default/conf/locatags.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@
"ext_service_datapolicy_no_js_text": "An dieser Stelle befindet sich ein von unserer Redaktion empfohlener Inhalt von <b>{0}</b>. Da Sie in Ihrem Browser Javascript deaktiviert haben, kann dieser hier nicht angezeigt werden. Der nachfolgende Link öffnet den Inhalt auf der Seite des Anbieters.",
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen"
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags"

}
2 changes: 2 additions & 0 deletions src/assets/brand/hessenschau/conf/locatags.merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite hessenschau . d e",
"meta_application_name": "hessenschau.de"
}
2 changes: 2 additions & 0 deletions src/assets/brand/hr-bigband/conf/locatags.merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite hr-bigband . d e",
"meta_application_name": "hr-bigband.de"
}
2 changes: 2 additions & 0 deletions src/assets/brand/hr-fernsehen/conf/locatags.merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite hr-fernsehen . d e",
"meta_application_name": "hr-fernsehen.de"
}
2 changes: 2 additions & 0 deletions src/assets/brand/hr-inforadio/conf/locatags.merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite hr-inforadio . d e",
"meta_application_name": "hr-inforadio.de"
}
2 changes: 2 additions & 0 deletions src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite hr-rundfunkrat . d e",
"meta_application_name": "hr-rundfunkrat.de"
}
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite hr-sinfonieorchester . d e",
"meta_application_name": "hr-sinfonieorchester.de"
}
2 changes: 2 additions & 0 deletions src/assets/brand/hr-werbung/conf/locatags.merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite hr-werbung . d e",
"meta_application_name": "hr-werbung.de"
}
2 changes: 2 additions & 0 deletions src/assets/brand/hr/conf/locatags.merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite hr . d e",
"meta_application_name": "hr.de"
}
2 changes: 2 additions & 0 deletions src/assets/brand/hr1/conf/locatags.merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite hr1 . d e",
"meta_application_name": "hr1.de"
}
2 changes: 2 additions & 0 deletions src/assets/brand/hr2/conf/locatags.merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite hr2 . d e",
"meta_application_name": "hr2.de"
}
2 changes: 2 additions & 0 deletions src/assets/brand/hr3/conf/locatags.merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite hr3 . d e",
"meta_application_name": "hr3.de"
}
2 changes: 2 additions & 0 deletions src/assets/brand/hr4/conf/locatags.merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite hr4 . d e",
"meta_application_name": "hr4.de"
}
2 changes: 2 additions & 0 deletions src/assets/brand/you-fm/conf/locatags.merged.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@
"ext_service_datapolicy_no_js_link": "{0}-Inhalt öffnen",
"story_infobox_intro_sr": "Weitere Informationen",
"story_infobox_outro_sr": "Ende der weiteren Informationen",
"story_video_intro_sr": "Videobeitrag",
"story_video_outro_sr": "Ende des Videobeitrags",
"header_homepage_link_title": "Startseite you-fm . d e",
"meta_application_name": "you-fm.de"
}
159 changes: 159 additions & 0 deletions src/assets/fixtures/content/copytext/copytext_video.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
{
"copytextParagraph": [
{
"isHeadline": true,
"text": "Copytext mit Video"
},
{
"@->jsoninclude": "content/copytext/copytext_paragraph.inc.json"
},
{
"paragraphBoxItem": {

"isVideo": true,
"showFullSize": {
"isTrue": true
},
"label": {
"type": "video",
"loca": "label_video",
"byline": {
"bylineText": "03:20 Min."
}
},
"copyright": "hessenschau",
"airdateDate": {
"htmlDateTime": "2022-10-31T19:30+0200",
"htmlDate": "31.10.2022",
"date": "31.10.22",
"dateSeparatorTime": "31.10.22, 19:30"
},
"toModel": {
"videoElement": {
"ardPlayerConfig": {
"@->jsoninclude": "video/videos.inc.json",
"@->contentpath": "video-1"
},
"ardPlayerJsonConfig": {
"@->jsoninclude": "video/videos.inc.json",
"@->contentpath": "video-1"
}
},
"mediaBacklinkToStoryTeaser": {
"link": {
"url": "/videoseite",
"isTargetBlank": false
},
"content":{
"readMoreScreenreader": "zum hr3.de Video",
"title":"Musik macht deinen Tag",
"isForeignBrand": true,
"readMore": "zum hr3.de Videoseite"
},
"hasIcon": true,
"iconName": "extern"
}
},
"teaseritem": {
"@->jsoninclude": "teaser/teaser_images.inc.json",
"@->contentpath": "copytext_image_100",
"@->replaceToken": [
{
"@->token": "image",
"@->value": "lehrerin-ukraine-104"
}
]
},
"content":{
"teaserImage": {
"@->jsoninclude": "teaser/teaser_images.inc.json",
"@->contentpath": "copytext_image_100",
"@->replaceToken": [
{
"@->token": "image",
"@->value": "lehrerin-ukraine-104"
}
]
}
}
}
},
{
"@->jsoninclude": "content/copytext/copytext_paragraph.inc.json"
},
{
"paragraphBoxItem": {

"isVideo": true,
"showFullSize": {
"isTrue": false
},
"label": {
"type": "video",
"loca": "label_video",
"byline": {
"bylineText": "03:20 Min."
}
},
"copyright": "hessenschau",
"airdateDate": {
"htmlDateTime": "2022-10-31T19:30+0200",
"htmlDate": "31.10.2022",
"date": "31.10.22",
"dateSeparatorTime": "31.10.22, 19:30"
},
"toModel": {
"videoElement": {
"ardPlayerConfig": {
"@->jsoninclude": "video/videos.inc.json",
"@->contentpath": "video-2"
},
"ardPlayerJsonConfig": {
"@->jsoninclude": "video/videos.inc.json",
"@->contentpath": "video-2"
}
},
"mediaBacklinkToStoryTeaser": {
"link": {
"url": "/videoseite",
"isTargetBlank": false
},
"content":{
"readMoreScreenreader": "zum hr3.de Video",
"title":"Musik macht deinen Tag",
"isForeignBrand": false,
"readMore": "zum hr3.de Videoseite"
},
"hasIcon": true,
"iconName": "extern"
}
},
"teaseritem": {
"@->jsoninclude": "teaser/teaser_images.inc.json",
"@->contentpath": "copytext_image_50",
"@->replaceToken": [
{
"@->token": "image",
"@->value": "lehrerin-ukraine-104"
}
]
},
"content":{
"teaserImage": {
"@->jsoninclude": "teaser/teaser_images.inc.json",
"@->contentpath": "copytext_image_50",
"@->replaceToken": [
{
"@->token": "image",
"@->value": "lehrerin-ukraine-104"
}
]
}
}
}
},
{
"@->jsoninclude": "content/copytext/copytext_paragraph.inc.json"
}
]
}
4 changes: 4 additions & 0 deletions src/assets/fixtures/teaser/teaser_labels.inc.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,9 @@
"glosse": {
"type": "glosse",
"loca": "label_glosse"
},
"video": {
"type": "video",
"loca": "label_video"
}
}
77 changes: 77 additions & 0 deletions src/assets/fixtures/video/videos.inc.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,83 @@
"teaserSize": "100",
"realTeaserSize": "100"
},
"video-2": {
"playerConfig": {
"generic": {
"isAutoplay": true,
"imageTemplateConfig": {
"size": [
{ "minWidth": 0, "value": "480/270" },
{ "minWidth": 480, "value": "640/360" },
{ "minWidth": 640, "value": "960/540" },
{ "minWidth": 960, "value": "1920/1080" }
]
}
},
"web": {
"baseUrl": "./vendor/ardplayer/",
"isForcedAutoplay": true,
"isForcedVideoView": true
},
"pluginData": {
"trackingAti@all": {
"isEnabled": false
},
"trackingAgf@all": {
"isEnabled": false
}
}
},
"mediaCollection": {
"streams": [
{
"kind": "main",
"videoLanguageCode": "de",
"media": [
{
"url": "https://hr-vh.akamaihd.net/i/video/as/hessenschau/2022_03/hrLogo_220317201045_L422955_,480x270-50p-700kbit,512x288-25p-500kbit,640x360-50p-1200kbit,960x540-50p-1600kbit,1280x720-50p-3200kbit,1920x1080-50p-5000kbit,.mp4.csmil/master.m3u8",
"mimeType": "application/vnd.apple.mpegurl",
"isAdaptiveQualitySelectable": true,
"audios": [{ "kind": "standard", "languageCode": "de" }]
}
]
}
],
"subTitles": [
{
"kind": "normal",
"languageCode": "de",
"sources": [
{
"kind": "webvtt",
"url": "https://hr-a.akamaihd.net/video/as/hessenschau/2022_03/hrLogo_220317201045_L422955_512x288-25p-500kbit.vtt"
}
]
}
],
"meta": {
"durationSeconds": 1644,
"images": [
{
"kind": "preview",
"url": "https://picsum.photos/id/101/{size}"
}
],
"title": "Auszubildende dringend gesucht | hessenschau vom 17.03.2022",
"synopsis": "Erstaufnahme der Geflüchteten in Gießen / Bund-Länder-Treffen zu Geflüchteten aus der Ukraine / Zu wenig Lebensmittelkontrollen / Mehr Ausbildungsplätze als Bewerber / Dokumentation über Sinti und Roma / Nachwuchs im Frankfurter Zoo / Eintracht vor dem Europa League-Spiel"
},
"pluginData": {},
"geoBlocked": false
},
"playerId": "8424",
"type": "videoOndemand",
"cssUrl": "./vendor/ardplayer/ardplayer-hr-6.3.11.79310671.css",
"jsUrl": "./vendor/ardplayer/ardplayer-hr-6.3.11.c442fe17.js",
"isAutoplay": true,
"isPlayerDebug": true,
"teaserSize": "100",
"realTeaserSize": "100"
},
"video-livestream-hr-fernsehen": {
"playerConfig": {
"generic": {
Expand Down
Loading