How To Set Made For Children In Youtube API - java

Youtube is now enforcing the FTC's COPPA act. That means all creators need to specify whether or not their video is made for children.
I have an app which will livestream and upload video via the Java youtube API. But even with the newest API there does not seem to be a way to specify whether or not the video is made for children. Does anyone know what to use to specify this and how? Is it a hidden property in the snippets object? Thanks.

YouTube seem to have updated the API documentation now.
As one example of where it's mentioned: https://developers.google.com/youtube/v3/live/revision_history
I've just started trying it out and it seems to work.

This official support document says:
We'll make the audience selection tool available to third-party applications and the YouTube API Services in the near future. For now, please use YouTube Studio to upload made for kid's content.
08.01.2020.
There seem to be no API references that allow streams or videos to be marked as "Made for Kids" or "Not Made for Kids".
Currently, the only way is via channel settings for all videos/streams or for each stream/video independently.
Further information will be provided via updates to this answer.

So, guys when you are uploading a video, in the status field add a property called "selfDeclaredMadeForKids". You can set its value as True or False.
The code below is in #python.
status=dict(
privacyStatus='public',
selfDeclaredMadeForKids=False
)

Related

How to take a webpage's content to create a native app for it? e.i not just a webview of the website

I want to create an app for a website that I don't own, like youtube or reddit. Every time I search for help, all I keep getting is how to create a webview. I've done that but that's not what I want. I want to take the website's content and create an app with it, like create my own buttons and such. I want to convert a website into an app.
I was thinking of somehow loading the website in the background and creating activities/buttons/intents that basically do what the webpage does but I don't know how to go about that or if there's a better way.
Thank you in advance.
Please let me know if clarification is needed.
Alright i got -3 votes for some reason and it has been 12 hours since i posted this question, i'm guessing the question has been consumed by the abyss of questions by now.
I made a reddit post and got some responses:
one user:
The term you’re looking for is “web scraping“ or “site scraping”. I think that’s probably what you need to research before you’re ready to handle how to make that into an app.
That’s a good starting point and once you have the content from scraping, making the app is no different than any other app.
second user:
If the website has a public (or private) API, you can use your buttons and networking calls to their API to build your client app. You are building a "YouTube client" in this case using the YouTube API.
If they dont have an API and you don't want to display their website, what you are doing is trying to reverse engineer their website and hijack the UI which is not a good practice and may even be illegal depending on the site and terms.
third user:
#second user is right on the money, but one thing I'll like to add is, the goal is to get data off of the website so that you can use in your app. An API is one (convenient) way of doing that but others are,
RSS or similar feed content (prefer this if there website supports)
HTML scraping
The above two will require you store the data somewhere else (and possible expose an API instead) because of technical reasons: you don't have access to older entries in RSS feeds and it's atrocious to keep on scraping everytime you need to access the website data. They can be done on the client (mobile app) but are best done on a server. This means you might need to get your hands dirty writing server code but you don't have to.
/thread
I'm going to do research on website scrapping and APIs to see which route i should go.
Hopefully this helped someone else.

Android extracting id3 tag information

I have a HLS stream which I am displaying using the native android media player. I need to be able to extract id3tags that are pushed through the stream every 30 seconds. I have had a good dig around the internet and have not found a viable method for doing this.
I did find something called MediaPlayer.OnTimedMetaDataAvailableListener but this is only available on sdk 23 and I need to support down to 14. Has anyone managed to extract these tags from a HLS stream on android? Or does anyone have any idea about how to go about it?
This is not possible yet using the standard MediaPlayer. According to the Android Developer API Guides, it is recommended to use the ExoPlayer when utilizing features such as id3 tag reading of HLS. There is a great demo on GitHub to help you get started.You basically create a Player and add a listener to it:
player.setMetadataListener(this);

Custom Map in Android Application

Ok, so I am going to do my best to convey exactly what I am looking to accomplish. I have thus far completed some minor Java courses at school and working on some android tutorials.
I have access to a google map that has consistently updated information regarding conditions in an area. Is it possible for me to write a program that shows the map on this link and stays current? Can this be done without the use of webview? Or is that link going to be dynamic and change as the overlay does? Would it be possible to instead call upon the website then to utilize that specific area of the webpage that has the map?
https://www.google.com/maps/d/embed?mid=zEDHoFPoYHv4.kHYurQFY7s8s&hl=en
I am doing this all for self educational purposes, not looking to create anything commercial, other wise I realize I would likely want to contact the host and ask them for permission to use their data.
I've read through several of the Google Maps API information, but I can not find anything specifically that states I can do this.
By "have access to a map", do you mean that you have access to the map tiles? If so, you can add a TileOverlay to a base Google Map, which will download the tiles from your server.

implement list of user's facebook friends that are also using my application

I'm trying to implement an Android activity witch shows a list of images of the user's friends that use the same app also (like in Tinder app). I've searched the web for days and everything I found is too old or doesn't seem to work properly (mainly because they are all based on earlier versions of facebook SDK).
Can somebody please attached an explanation, or even better, an open source of example like that.
There's an example in the docs. I wonder how you didn't find that...
See
https://developers.facebook.com/docs/android/scrumptious/show-friends

Add video(s) to a show's season(s)?

Anybody know if this is available in the YouTube API? I'm pretty sure you can retrieve feeds for shows, but I'm at a loss as far as how to add a video to a season using the .Net (or any other) APIs.
Basically, everything I do revolves on playlists. I add vids to playlists, and then use the API to run through each video to update descriptions and tags, add video responses, and I'd like to add those videos to seasons in corresponding shows at the same time. Huge time-saver to be able to automate that process.
The part I'm missing is how to add videos to a particular season for a show.
There's nothing in the public GData APIs that allow you to modify the metadata for Shows.

Categories

Resources