Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
We are building an android app to play youtube videos in exo player. We generate a DASH URL and play it using exo player
I have following concerns
Is it allowed by play store to play youtube URLs without using Youtube player e.g, using Exo player
If it is not allowed, What is the way to get it done? Is it allowed if we use the youtube player?
Is Youtube player build on top exo player?
The short answer is: No.
You can play anything to which you have a direct URL to the media. YouTube don't expose direct URLs, so you'd have to use their player API instead. Of course, you could host DASH content yourself, as you're doing for HLS, which would provide you with the direct URLs you need.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am trying to build an mobile application which can use Spotify APIs and play music (Not remote control app) just like Spotify. So far I've implemented authentication, getting playlists and tracks using web APIs. Now I can not see any API which can help me play music (or maybe I missed it). Could you please help me to achieve or tell me if this service is not provided by you?
Unfortunately, what you want to do does not seem possible.
The Spotify SDK allows your application to interact with the Spotify app running in the background as a service. The capabilities of this API include getting metadata for the currently playing track and context, issuing basic playback commands and initiating playback of tracks.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I need to implement a requriment of adjust play speed when playing a video, how can I do that using Android API (MediaPlayer) or other 3rd-party library? I google it, and no any idea by far. Any suggestions welcome, thank you.
Media player does not provide what you want.
You have to use some other android api.
check link. Speed Control of MediaPlayer in Android
Or you can use media player with PlaybackParams(added in 23 api)
https://developer.android.com/reference/android/media/PlaybackParams.html
You can also use different media playback library than android built in, for example ExoMedia that also works below android 23 ,has same api as video view and allow you to set the PlaybackParams including speed.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
Hi i developed the application to cast my videos to TV via Chromecast.Now trying to play m3u8 videos via Chromecast is it possible as m3u8 videos buffering is good and control is good compare to mp4 any links will also do i cannot find how to stream m3u8 using Chromecast.
The .m3u8 format is for HLS (HTTP Live Streaming). To play .m3u8 formats you need to host your media content on a server. Make sure CORS is enabled. Then have your sender load the url, where your content is hosted, onto the receiver. This documentation has much more details and sample code. If the problem was with your application, check out the sample apps on GitHub as a reference.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
This is my android app :
My media player can play YouTube videos if we give HTTP URL. So I can launch YouTube app on a button Click. It's working fine.
Requirement:
After user tapping on video, I want to close that YouTube app and get the downloadable URL of that video. How can I do that? Is there any tutorials for that? If this is not possible kindly suggest me possible ways. Thank You.
YouTube Android Player API
The YouTube Android Player API enables you to incorporate video playback functionality into your Android applications. The API defines methods for loading and playing YouTube videos (and playlists) and for customizing and controlling the video playback experience.
This page has a getting started at the end of the page which will help you.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Is there a way to get the details of last played song in the android music player.
I am developing a music player.
whenever the my music player application is launched I need to start it with the last played song as in the stock android music player.
Is there a way to get the details of last played song in the android music player.
You are welcome to contact the authors of each "android music player" and ask them if there is an API that you can use for this.
I need to start it with the last played song as in the stock android music player
There is no single "stock android music player". Device manufacturers can ship whatever music player they want, and many ship their own.
Neither the Music AOSP app nor the Play Music app have a documented and supported API for retrieving last-played song information.
before exiting the application , save the path of music file in the database. load the path when application launch.
the code should be inside try catch
save the track or song id into the XML file when your music player closes and fetch it from that XML resource file when the music player starts.