How to live stream my content to android application?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How to live stream my content to android application?



I'm using youtube live to stream my sports event on android mobile application. But it not a viable option because whenever I stop the stream and start a new one, the video code of youtube live stream changes, so I cannot stream again if I stop the current stream. Below is the code for my stream :


youTubePlayerView = (YouTubePlayerView)findViewById(R.id.youtube_player_view);
onInitializedListener = new YouTubePlayer.OnInitializedListener() {
@Override
public void onInitializationSuccess(YouTubePlayer.Provider provider, YouTubePlayer youTubePlayer, boolean b)
youTubePlayer.play();
youTubePlayer.setFullscreen(true);
youTubePlayer.loadVideo("video-code");




Is there any method to put the new video code automatically using youtube API?
Please help.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard