When a link is shared in a Chat, we need to display the link preview after sharing it. If the link contains a media from youtube/vimeo/soundcloud, we need the ability to playback the link from the app itself.
Something like this..
https://telegram.org/blog/search-and-media
https://telegram.org/blog/link-preview
Is it possible to get information from link?
Related
I have been searching all around the web to try to understand how to stream videos to my android app.
I learned:
That the videos must be in the HLS or MPEG-DASH format to be adaptive for streaming .
What I mean by adaptive streaming:
The kind of streaming that allows the user to change the quality while video is streaming.
What could help me do this:
The first thing should be to encode my videos into an HLS or MPEG-DASH, for that I found a service that could do this which is Bitmovin.
The second thing is to play the adaptive video, I found two ways exoplayer and Bitmovin-player.
The problem:
I made an account on bitmovin and tried to test an mp4 video to encode, but there are too many stuff there like input, output and manifest and I don't know what URL I should use to pass to the bitmovin player to play. I encoded the video but I don't know where the reference to the enocoded video is.
My question:
1) Is my approach of streaming videos correct?
2) Can someone explain which url I must pass to the player or where I can find the video that was encoded in Bitmovin cloud?
1) Is my approach of streaming videos correct?
Short answer: Yes :) Adaptive streaming is used by almost every major VoD platform out there, and a proper way to do that. Further it allows you and your viewers to either
let the player decide on its own to select the optimal quality for the given connection and device of the viewer to provide continuous playback
and the viewer can select a specific quality on their own as well, if they want to.
When creating adaptive streaming content using MPEG-DASH and/or HLS as streaming format, your output would typically consist of the following:
Video/Audio Segments
MPD Manifest, and/or HLS playlists
1) Your input file (e.g. an mp4 file) will be downloaded and splitted into segments, which are being processed by the Bitmovin encoding. Out of these, it creates the different qualities the player or your viewer can choose from later.
2) This segmented output is then transferred back to your own storage, e.g. a cloud storage like AWS Simple Storage, or Google Cloud Storage. Other output types like (S)FTP and many others can be used as well.
3) In order to play your created MPEG-DASH or HLS content, a MPD manifest and/or HLS playlist needs to be created. Those are basically an index for the player, which tells it which qualities are available and where to find them to start the playback.
2) Can someone explain which url I must pass to the player or where I can find the video that was encoded in Bitmovin cloud?
The URL you would have to provide to the player, has to point the MPD and/or HLS master playlist, that gets transferred to your storage. Bitmovin doesn't offer a hosting service for your encoded content, which is why you didn't find an URL to the manifest that is used. So you would need a storage first, where the encoding could be transferred to.
Give the getting started guide a try. Select your preferred API client. Then you will be guided step by step on how to integrate this encoding service. I hope this helps :)
To test the playback of the player you can also have a look at https://bitmovin.com/demos/stream-test and select "Use our defaults" which provide URL's to sample content for testing the player and playback.
I am making a video player app. Lets make myself clear in this app no video or audio files will be saved in the raw directory during making the app. I want an app that will pick a video file from device storage when clicked a button. So please help.
You have a few options for allowing the user to pick a video, including:
Use ACTION_OPEN_DOCUMENT on Android 4.4+. You will get a Uri back that you can pass to VideoView or MediaPlayer.
Use ACTION_GET_CONTENT. Again, you will get a Uri back that you can pass to VideoView or MediaPlayer.
Use a third-party file picker library. Depending on the library, I would expect you to get a File or a Uri back for use with your video player.
The first two techniques are covered in the documentation, along with good books on Android app development.
I would like to get from the link http://www.youtube.com/watch?v=GzmpH7eaA4k the direct link of the video, something like: http://www.youtube.com/(...).mp4
Is it possible? I have seen a lot of threads that use "www.youtube.com/get_video_info" and other ways but I think that all of them are obsolete right now.
How can I get the URL that I need?
There is a easy way to find youtube direct video link using VLC Media Player.
Open VLC -> Media -> Open Network Stream -> Network -> Enter the youtube link (e.g. http://www.youtube.com/watch?v=7FKEy_RWwQk).
Now open the playlist-> Right click on Video-> Information -> You will find the below part of the screen in location textbox.This is the direct link of the video.You can open it in browser or save it to your local system.
If you want the direct Link to download a Video you have to use the "stram_map" attribute with the specific itag(quality). A great example how you can get the download link is shown here: Get the download URL for YouTube video (Android/Java) you can directly play the video in your own player or you could use it to download the video to your device.
Well I would go nab the link myself for you but you have the video not available in my country, USA, just simply click the share tab under your video and use that link.
I believe that get_video_info is deprecated. Try in stead:
http://gdata.youtube.com/feeds/api/videos/GzmpH7eaA4k
Keep up to date with the youtube api here: https://developers.google.com/youtube/
My goal is to create an app that can know the name of the current video playing in youtube app in android. I have found it is impossible(possible?). So maybe there is a way for me to know the current video's url ( then maybe I can obtain the video id from the url).
Is it possible? I have check the youtube process's proc folder, but I didn't find such information. Because the youtube app doesn't use an browser, is it possible for me to know such information? thx:>
I have a web site and there are some videos on it.
I want to make Android app which doesn't load the whole web page, just the Video part. Is it possible? like loading youtube in WebView, but showing only video , not comments etc.
Thanks
create a video player in your app and based on the selected video load its URL to the video player and enable remote streaming to run the videos on the app. that should work.
It is a best way to make one web service in your website that can give you whatever you need from your website (This will also can be use to make change on your web service and get more or less content from your own website)
To use this things you need to parse your page with xml parser.
I have done my project this way which display my website's videos in my android
My website link
http://www.mycricketclips.com/.
I uses my android app to get all the displayed category and its video list in my android app.
and when I click on perticular video list, it will display that video on "webview" in android app.
Hope this might helpful for you.