Fire App Builder will not render Closed Captions from a Valid CC URL - Been looking for help for over a year
- Dominant language
- Java
- Stars
- 201
- Forks
- 255
- PR merge metrics
- No merged PRs in 30d
Description
Fire App Builder will not pull in .VTT files from a valid url We are required by law to provide closed captions for our videos. The @mCloseCaptionUrls value never populates from a valid url. Error: Value for mCloseCaptionUrls was null so not set for Content, this may be intentional.
Recipe:
`
"cooker": "DynamicParser", "format": "xml", "model": "com.amazon.android.model.content.Content", "translator": "ContentTranslator", "modelType": "array", "query": "/feed/item", "matchList": [ "title/#cdata-section@mTitle", "contentId/#text@mId", "title/#cdata-section@mDescription", "media/streamUrl/#text@mUrl", "#attributes/hdImg@mCardImageUrl", "#attributes/hdImg@mBackgroundImageUrl", "contentId/#text@mChannelId", "srt@mCloseCaptionUrls" ] `
The XML:
3 <![CDATA[ 07/10/2019 Florida Face to Face – Dr. Ed Moore, President of Independent Colleges and Universities of Florida ]]> 56075 Talk SD HLS SD https://invintus-otfp.global.ssl.fastly.net/2443575804/ed274fc0263c9feb8f7bba20ef9fce00ec6ee485,ed274fc0263c9feb8f7bba20ef9fce00ec6ee485,ed274fc0263c9feb8f7bba20ef9fce00ec6ee485_384p_30fps,ed274fc0263c9feb8f7bba20ef9fce00ec6ee485_320p_30fps,ed274fc0263c9feb8f7bba20ef9fce00ec6ee485_240p_30fps,ed274fc0263c9feb8f7bba20ef9fce00ec6ee485_180p_30fps/master.m3u8 Live Events, News or Original Programming 00:39:12 ** https://invintus-client-media.s3.amazonaws.com/2443575804/3f747fffd382998dd04de3f4435d4add0bde630b.vtt ** Please help me understand why this is happening
Contributor guide
Research direction
Start with the DynamicParser recipe and the Content model mapping, then compare the srt entry with the XML's srt element and trace how mCloseCaptionUrls is populated. Done means the valid .vtt URL is retained for Content and closed captions render for the supplied video.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100