• Resolved drog

    (@drog)


    I’m using this plugin to parse a JSON feed to put the most recent video in a player, but I’m running into trouble pulling the video URL. Can you tell me what I’m doing wrong?

    Here’s the configuration:

    API URL: https://wicu.api.franklyinc.com/category/211870/caribbean-weather?clienttype=container.json

    Basenode: features

    Template:
    <video controls=”controls” controlslist=”nodownload” poster=”{subloop:thumbnailimage:1}
    {thumbnailimage.filename}{/subloop:thumbnailimage}” width=”100%”>
    {subloop-array:group:6}
    <source src=”{subloop-array:group.url:6}{3}{/subloop-array:group.url}” type=”video/mp4″>
    {/subloop-array:group.url}
    </video>
    <p class=”video-caption”>Latest Forecast</p>

    Number of json-top-level-items to display: 1

    In the JSON feed, I’m looking to pull the URL for the third item in the “group,” which is bolded below:

    “group”: [
    {
    “url”: “https%3a%2f%2fwicuhls-video.franklyinc.com%2fz%2fWICU_131020181633082394.smil%2fmanifest.f4m”,
    “filesize”: “0”,
    “bitrate”: “0”,
    “width”: “0”,
    “height”: “0”,
    “type”: “application/f4m”,
    “platform”: “mobile”
    },
    {
    “url”: “https%3a%2f%2fwicuhls-video.franklyinc.com%2fi%2fWICU_131020181633082394.smil%2fmaster.m3u8”,
    “filesize”: “0”,
    “bitrate”: “0”,
    “width”: “0”,
    “height”: “0”,
    “type”: “application/x-mpegURL”,
    “platform”: “mobile”
    },
    {
    “url”: “https%3a%2f%2fvods3-prod.franklyinc.com%2fwicu%2fWICU_131020181633082394AC.mp4”,
    “filesize”: “16087829”,
    “bitratebits”: “1021621”,
    “bitrate”: “1021”,
    “width”: “640”,
    “height”: “360”,
    “type”: “video/mp4”,
    “platform”: “mobile”
    },

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Parsing JSON data for video player’ is closed to new replies.