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 8 years ago.
Improve this question
I see that google drive use a flash player in order to stream uploaded video.
Do you know if google drive api provide an absolute url to the video in order to use an html5 player to stream the video?
The answer will be very similar to this one for embedding images.
So basically to get the URL of the embeddable video you will have to:
In a Drive application you get the ID of the file through a URL parameter when the user clicks on a file and opens it with your app.
Query the file metadata using the Drive API and the ID of the file: the file metadata returned is a JSON object containing a bunch of info.
In the File metadata there is an attribute called "downloadURL" which gives a URL to the actual file.
Samples to get a file metadata are here.
The URL will be directly accessible if your file has been shared publicly. If the file is not public you will have to use OAuth 2.0 to authorize requests to that URL.
Problem: That URL only works momentarily. So it's not usable for every use-case.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I'm building an app with java (for android) that one of it main goals is to show a video to the client.
Right now I'm storing all my videos in firebase storage, At the beginning I wanted to stream the video (youtube style) but unfortunately firebase storage does not support it.
I read that there is an alternative way of "faking" to stream the video by downloading the video chunk by chunk and playing it one by one, that way you don’t need to wait until the whole video is downloaded locally to the phone and only after that start playing it.
You can see what I'm talking about here -
Speeding up firebase storage download
So my question is which API/library/thing can I use to do it, and if somebody has an example code that he can show me ?
Thank you very much !
The Firebase SDK for Cloud Storage does not have any methods to stream the results.
The options I can quickly think of:
Store the video in smaller chunks, each chunk in a separate file. That way you can retrieve the files one by one, and start playing when you have the minimum number of chunks.
Set up your own server which reads from Cloud Storage (typically at a much higher bandwidth), and then sends a response to the client in smaller chunks. For more on this, also see this answer: Video Streaming from Google Cloud Storage
Neither of these is going to be trivial to implement, so you might want to consider if maybe a dedicated video streaming service isn't a better fit for your needs.
You may use Mux or Cloud Flare to stream videos
https://blog.codemagic.io/build-video-streaming-with-flutter-and-mux/
https://developers.cloudflare.com/stream/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am working on an android application where app user takes a picture and post it. I wonder how could I get the name of the taken image from reverse image google search? Is there a public api?
For example when a user takes a picture of his car, then description of the taken picture automatically fills with "car".
Seems like there's no reverse image search API from Google out of the box.
People just build systems which mimic image search behaviour via doing the requests to Google servers theirselves.
The easiest way for this is the following process:
Build your own backend, where you'll upload photos which have public-facing URL.
Perform a request to https://www.google.com/searchbyimage?&image_url=<URL>, parse the response, execute some returned JavaScript and grab the metadata.
Return the data to your app in the required format.
This is not documented anywhere. So it can change anytime in the future.
Google has specific Custom Search API, but as of now, it doesn't support reverse image search.
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 does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
i would create a programm, it reads pdf, bulider and mp3 on Android.
for Examples:
it´s in paris so it shows me the important places in Paris. it´s read from pdf file and show me builder as well as hear mp3, what i save in pdf file.
it´s possible or not?
could someone helpe me please?
thanks
To save something to pdf or to read from pdf you need to use pdf libraries. iText is one such option. Do check the licencing terms.Check this sample code : http://itextpdf.com/examples/iia.php?id=12
Incase you want to read out pdf loudly(You mentioned read from pdf) you need to use TTS engine.Android provides a TTS engine.
What you mean by bulider?.. I do not have any knowledge.
To play audio, you can use synthesizeToFile()and create an audio file that contains the TTS(Text to speech) output. Then, you would use a MediaPlayer object to play, pause, and stop playing the file.Here is the link to follow:http://android-developers.blogspot.in/2009/09/introduction-to-text-to-speech-in.html
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want put video on my application that I wrote it , the problem the size video is big , so what can I do?!
I can't upload the video on YouTube because I don't want anyone see the video except who download app.
any way or solution for how could I do that ?!!
The apk file has a size limit of 50 MB. I think you have a couple of options.
Put the video on your server and on launch of the app, download the video from the internet and store on the device. Some games work like that by downloading content from private servers or clouds once installed.
I am not sure if this can be used, but try creating an expansion file and upload that to the play store and let your app download from there. Expansion Files
Since you don't want non app users to see the video, consider using some DRM so that once the video is downloaded, it is not shared by the users.
Upload video to your server and display it in your application. Play your video using video url. See this answer here.
Use APK Expansions files for external files-
http://developer.android.com/google/play/expansion-files.html