import json
json.loads('{"That": "was easy"}')
(To be fair, knowing ffmpeg exists doesn't mean I'd be able to easily write a video player with it without a lot of research. For that reason I find this tutorial is still quite interesting and valuable.)The tutorial is still 1000 lines of C, involving SDL, ffmpeg and threads.
Yikes :)
Last time I did something like this (a UI that among other things, played a live stream from a cheapo IP camera), I used python and the libvlc python bindings. Creating a bare bones media player with it was trivial and it worked very well for what I needed. The only complaint I had at the time was that the documentation was absolutely terrible. A cursory look today reveals that they seem to have improved it, so yay?
And yes, the end result in my case came out MUCH smaller than 1000 lines (but lines of code is a shitty metric anyway).
If you "just" need a media player, IMHO, libvlc is not an awful option (in Python, at least - I have no experience with other bindings): https://wiki.videolan.org/LibVLC/
I hate how discussions look online about politics, but I worry that instead of pushing for accountability of public figures, through democratic tools and institutions, articles like that focus on trying to get a private police up and going.
Facebook, Twitter, Google, etc censoring more and more content from public figures won’t change the fact that USA have a racist president and that tons of people support him.
And while I think it’s a valid question how much of their racist and discriminatory content they should be allowed to say before they’re thrown out of office, it shouldn’t be decided by Silicon Valley.
If the press writes something objectively false about someone, they are starting at a defamation lawsuit. If they write something that gets someone killed, they will be staring at possible criminal liability. If they print, I dunno, a picture of a child having sex, there'll be hellfire and brimstone (both legal and social).
And no, saying "ha ha, it was just an opinion column" doesn't save them.
"Press" has perks but also has responsibilities. The free press is "ok" with these rules because they've had to follow them for decades. What they want is a level playing field.