police-brutality icon indicating copy to clipboard operation
police-brutality copied to clipboard

Video in API data feed

Open yo-mike opened this issue 4 years ago • 0 comments

It would be terrific if the main data feed had video attached to each incident. Is this possible?

In the meantime, I do have video supported independently here:

https://api.846policebrutality.com/api/incidents?include=evidence

Here's an example of the video information:

{
  "video": [
    {
      "id": "07c275c0-a691-11ea-a4a9-adc292a917c1",
      "evidence_id": "1f7d0c60-a68b-11ea-84e0-17c87c5f9cf2",
      "title": "Neon - I was lucky enough to catch this on camera earlier. Police spray what appears to be an unarmed protestor in #Madison. #icantbreathe #BlackLivesMatter #madisonprotest",
      "description": "I was lucky enough to catch this on camera earlier. Police spray what appears to be an unarmed protestor in #Madison. #icantbreathe #BlackLivesMatter #madisonprotest https://t.co/Qkd2RzVibT",
      "site": "Twitter",
      "url": "https://twitter.com/NeonMarionette/status/1266962885957292032?s=20",
      "duration": "17.07",
      "tags": [
        "Madison",
        "icantbreathe",
        "BlackLivesMatter",
        "madisonprotest"
      ],
      "thumbnail": "https://pbs.twimg.com/ext_tw_video_thumb/1266961247259557888/pu/img/tUPJKWDXkn1z4YsN.jpg?name=orig",
      "streams": [
        {
          "url": "https://video.twimg.com/ext_tw_video/1266961247259557888/pu/vid/1280x720/tyiF2rkI6KsiJyyL.mp4?tag=10",
          "format": "http-2176 - 1280x720",
          "format_note": "",
          "extension": "mp4",
          "height": 720,
          "width": 1280,
          "fmt_id": "http-2176",
          "filesize": null,
          "filesize_pretty": "-",
          "has_audio": true,
          "has_video": true,
          "is_hd": false
        },
        {
          "url": "https://video.twimg.com/ext_tw_video/1266961247259557888/pu/vid/640x360/D38WYtbsQPYCognl.mp4?tag=10",
          "format": "http-832 - 640x360",
          "format_note": "",
          "extension": "mp4",
          "height": 360,
          "width": 640,
          "fmt_id": "http-832",
          "filesize": null,
          "filesize_pretty": "-",
          "has_audio": true,
          "has_video": true,
          "is_hd": false
        },
        {
          "url": "https://video.twimg.com/ext_tw_video/1266961247259557888/pu/vid/480x270/aYW_j52_x88eKZ9F.mp4?tag=10",
          "format": "http-256 - 480x270",
          "format_note": "",
          "extension": "mp4",
          "height": 270,
          "width": 480,
          "fmt_id": "http-256",
          "filesize": null,
          "filesize_pretty": "-",
          "has_audio": true,
          "has_video": true,
          "is_hd": false
        }
      ]
    }
  ]
}

My API lags a bit when pulling the latest data from your feed, but it's mostly all there. I'm also working a little more to clean up the video. Additionally, my API doesn't pull from YouTube.

I'm just throwing this out there. The community as a whole would definitely appreciate ease-of-access to video details for front-end development and analysis.

I also have a few other pieces of video detail, such as the uploader, duration, etc. that can be provided if requested.

If you have any ideas to get this wrapped back into your repo, let me know. If you are going to stick with .md, maybe you can determine a structure to incorporate some of this?

It would also be terrific to get the videos mirrored somehow. I know there's a lot of IPSF talk involved -- but the key is getting all of the information associated to parent objects.

Any thoughts on how video can be further streamlined and included in the main repo feed?

yo-mike avatar Jun 05 '20 17:06 yo-mike