I have a trouble with getting live broadcast data (live chat messages) on a different channel. I found a few questions like that, they've been asked a couple of years ago and no solution found yet.
Is there an "official" way of getting public live chat messages via Youtube API without using such dirty ways like "loading page with help of Selenium and loading data into DOM"? In browser we can see them without logining as owner of the channel, I think there should be a way
Related
I am asked to toggle Enable live chat using the Youtube API.
Digging through the documentation. The closest thing I can find regarding live-chat is: snippet.liveChatId: The ID for the broadcast's YouTube live chat. With this ID, you can use the liveChatMessage resource's methods to retrieve, insert, or delete chat messages. (https://developers-dot-devsite-v2-prod.appspot.com/youtube/v3/live/docs/liveBroadcasts#snippet.liveChatId)
Anyone knows how to enable/disable live chat through API?
I am also looking for this, but from what I can tell it is currently not available in youtubes public api.
I am trying to build a messaging app with react native and I don't want to use pre-built messaging components such as gifted-chat because what I want is to learn how to code such mechanisms.
Posting data is simple. I can just call my RESTful API whenever the "Send" button is pressed.
But then I would like messages sent by the other person to appear at the bottom of the conversation so that it looks like real time messaging. But how can I listen for new messages sent by the other person? Asking the API every 'n' seconds doesn't seem like a good idea.
As Dan suggested use sockets, there are plenty of tutorials that can show you how to implement real-time messaging in node.js with socketio. Here is my favorite! A quick google search returns plenty more of varying degrees of simplicity.
If you don't want to build your own backend then you can try Firebase. You will find some tutorials on google about how to implement a chat app.
I'm testing YouTube live streaming API using Java client libraries.
I have a simple project which is basically the copy of ListStreams example taken from here:
https://developers.google.com/youtube/v3/live/code_samples/java#retrieve_a_channel_s_live_video_streams.
I have my application registered in Google developers console. I have created a test public live stream and a test broadcast.
Everything works fine, I can broadcast video from my phone to this live stream.
But when I try to get a list of live streams from my channel I always get an empty result.
The funny thing is that I can successfully retrieve my channel's broadcasts using the LiveBroadcasts.java example.
But no matter what I do the list of streams is always empty.
Did anyone have similar problems ?
Cheers, Dmitry.
I am trying to create a windows 8 app for a particular band who have stored their songs on
Reverbation and soundcloud. My problem is that i dont know how to get those contents from these sites...I tried creating an rss feed using feedburner but that failed. Is there any way where i can get the feed or the data for my app.
SoundCloud has a well documented API. You can check yourself if the functionality you require is available.
ReverbNation on the other hand doesn't seem to have a public API available at the moment. There's only an API link in the page footer which opens a dialog for subscribing to any news regarding that via email.
I was tasked to create a Chat function for our app in iOS. I found this tutorial which creates a Chat app from scratch.
http://www.ibm.com/developerworks/library/x-ioschat/index.html
The link above is very helpful, but there is a small problem. In the app, a request will be made every 5 seconds to look for new responses. One of my colleagues said that it is not advisable to make a request to the server every now and then.
So I decided to look for other alternatives. I learned about long-polling through this link.
From what I understood, once a request was made the server will "hold" the request until something interesting comes up. Does this mean that once a response was thrown to the user, the request ends? If that's true, this means that a request will be made every now and then as well, right?
If that's the case, can anyone tell me what's the best way to implement a chat function in iOS?
My friend showed me a AJAX JavaScript code (I just found out that he also used a plug-in, which I am not familiar with) where a single continuous request was made, and this request doesn't end even if a response was already thrown to the user. Is there a way to do this in iOS?
It is not a good approach to make http ajax request to send and receive chat. A chat response should be displayed at the moment when the other user press "Send". We cant ask for the users to wait 1 second to fetch if there any new responses.
You must use a chat server to accomplish this. I hope the following url would be helpful. I just wanted to give you the Idea of using a Chat Server.
http://wiki.remobjects.com/wiki/SuperHTTP_Chat_(iOS)Sample(Xcode)