How to get fastest streaming video using URL in android [closed] - java

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I am a beginner in Android ,I am playing video using URL in my android app but the video is not streaming that much fast as compare to other app like showbox .l had also used different url but the result is same . Please help .

It depends on your internet speed and the server response you are using. ShowBox must be using it's own dedicated server, but maybe you are using a third party server that is not so fast.
Another cause in the speed difference can be the size and the quality of video. A video with low quality will take less time to load as compared to a video with high quality.
There is a solution that can work, you have to keep saving packets of data in cache and keep playing the video from cache. In this way App will take some time to start the video but after that it will be working with speed. It's just a small push to your streaming but mainly it depends on the server.

Related

voice recognition constantly in background android [closed]

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
FfhggtffgtfgtgftI want develop application that whenever it recognizes a keyword it does something. it needs to be in listening mode all the time, in backgeound too.
I was exposed to this and this. I treid run it but it is not work when I am speaking.
actually I read it still doesn't support my native language. is that the reason?
I want to know how it works? does it is doing speach to text and saved it in assets files? does it is run in background? does it is used AI models? how it behaves when two apps need mic resource in parallel? noises? does it is work with Neural Networks API? how can I start developing such a thing?
thanks!
It is great you tried Vosk offline speech recognition on Android, here are some answers to your questions:
actually I read it still doesn't support my native language.
If you are about Hebrew, we might support it in the future, and you can build it yourself.
is that the reason?
You didn't provide enough information to answer this, please explain a bit more what is "it is not work"
I want to know how it works?
Extensive documentation on speech recognition is available on lectures, courses and books. You can find some introduction here for example: https://www.youtube.com/watch?v=q67z7PTGRi8
does it is doing speech to text and saved it in assets files?
It does speech to text, but it doesn't save results into assets, it just displays them. You can not modify assets, they are static.
does it is run in background?
Yes
does it is used AI models?
Sure
how it behaves when two apps need mic resource in parallel?
In android it is not possible to record audio from two apps in parallel, second one will be blocked.
noises?
It is robust to noises.
does it is work with Neural Networks API?
No, it is portable
how can I start developing such a thing?
Get some basic understanding and start writing the code. If you have further questions you can ask them in the Telegram chat

Downloading mp3 from youtube and other music-websites programatically Java [closed]

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 5 years ago.
Improve this question
I need to let my app's client paste youtube (or any other website but that later) URL and download just music (mp3) from the specified video.
I was looking for the solution on stackoverflow and google and found that it is in spite of their law. We just cant dowload anything from youtube. In case of doing it, youtube will block our service.
However, I know that there are still available sites, on which we can convert the video to mp3 easily, for example: http://2conv.com And these sites exist in web for really long time.
So how did they avoid youtube-law? How can I download videos from youtube using Java? (I dont ask for code, but just the way how to do this, what to type in google to find the answer)
Thanks for reading! I really need the answer, because downloading from youtube has to be the core-feature of my app
TO BE CLEAR AND NOT DOWN-VOTED:
I am not going to violate youtube terms of service, just asking if there is any way to reconcile my needs with youtube terms?
It's possible, just use Pafy script (Python), this API based on youtube-dl.
You can see more youtube-dl support sites at:
https://rg3.github.io/youtube-dl/supportedsites.html
Unfortunately not possible. Video files are integrated with their audio files. so if you want to extract audio from any video file you should download the whole thing and then extract its audio to mp3 yourself. Every service that does so first fetches the video and then does as mentioned. Make sure not to violate any terms of service.

Storing data on "cloud" [closed]

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 8 years ago.
Improve this question
I am creating an App that stores tasks. What would be a good way to store each task data on a cloud? I was thinking of using the free space google drive provides. Is that possible?
Anything besides hosting my own server will be best. Any ideas?
You could use the Google Cloud Storage free quota. I recently migrated some apps to the cloud and the results are awesome. If your app grows really big, the pricing is still low and you can always get to consume the free quota they provide. Besides that, the api is well documented and there are plenty of tutorials.
Hope it helps.
you should use Google Drive to store data at Google Clouds . please check and started with below link for cloud storage .
https://developers.google.com/drive/android/get-started
You can follow this link. This is about storing image to Google drive but you can store any type of file by using MIME type */*
Have a look into the Dropbox Sync API. The Sync API takes care of syncing all your data with Dropbox through a familiar, file system-like interface. It's like giving your app its own, private Dropbox client.
Reference :https://www.dropbox.com/developers/sync/start/android

Data syncing application between PC and Android? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
So I wasn't exactly sure what to search for when I needed an answer to this problem, hence the crappy title, so I'm sorry of this is a repeat Q but I was hoping for some suggestions on how I should approach the following project:
An application similar to Google's Chrome to Phone but...
Much more functional
Much more scalable
Bidirectional (PC to phone and phone to PC)
Add in clipboard sync
Needs to be fast in order to be useful
Not a chrome extension but a PC application (Java?)
The way I initially wanted to go about it is creating a web service where clipboard data and other requests could be passed onto the phone or PC using polling but (and I'm not sure how accurate this is) this could seriously harm battery life on android if I'm polling every few seconds for clipboard data and if I'm conserving battery life by not polling as frequently, clipboard data becomes less available.
Any creative solutions? (or blatantly obvious ones that I'm not seeing)
Thanks in advanced!
Rather than polling, you should use Android Cloud-to-Device Messaging (C2DM).
I just launched ClipboardSync, a Android app with a PC client that matches all your requirements. Check it out at https://play.google.com/store/apps/details?id=com.ClipboardSync.
It does't poll on the Android end, uses push messaging. The PC client polls for data updates but I'm working on an upgrade to something better for it.

How to download video from Youtube with Android? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I saw many programms in Android Market which allow to download video from Youtube. Now I must create programm for download video from Youtube, but I don't know how to do it. Can you help me? Thank you for, anyway.
Well first of all. Stackoverflow is mostly used for question. No one here will write a complete app for you, well the majority will probably not do that.
Second, you might want to look at YouTubes ToS:
5L:
you agree not to access Content or any reason other than your personal, non-commercial use solely as intended through and permitted by the normal functionality of the Service, and solely for Streaming. "Streaming" means a contemporaneous digital transmission of the material by YouTube via the Internet to a user operated Internet enabled device in such a manner that the data is intended for real-time viewing and not intended to be downloaded (either permanently or temporarily), copied, stored, or redistributed by the user.
5M:
You shall not copy, reproduce, distribute, transmit, broadcast,
display, sell, license, or otherwise exploit any Content for any other
purposes without the prior written consent of YouTube or the
respective licensors of the Content.
So please come back with questions that we can answer.
You should probably check out http://sourceforge.net/projects/ytd2/ and http://www.google.com/support/forum/p/youtube/thread?tid=28e5b81a75f31def&hl=en

Categories