I want to put YouTube streaming video inside the app for Cardboard (for Android and iOS). I know the are plugins to do similar things such as "Easy Movie Texture" but they don't support YouTube streaming. I've found "Youtube Video Player" inside Unity Asset Store but I'm not entirely sure that it will work with CardboardMain.prefab (I mean properly splitting 360 video for two screens).
Please help with this issue.
Thanks.
You can do that using Easy Movie texture with Youtube Video Player you can get the just pass the result of Youtube Video Player to Easy Movie Texture video path, and will works like a charm :)
Related
I want to play a .m3u8 streaming video with different audio tracks and different subtitles.
Here I have a question like which video player is better to play the .m3u8 streaming videos, with better performance.
I am Trying to solve this by using Native player, that is VideoView but at the time of working with audio-tracks and sub-Titles, I am facing problem with videoView.Here in the videoView I have to handle every thing through by coding ,there is no support form VideoView.
Can I achieve this with Exo player.
Can any body please suggest a best solution for audio tracks and subtitles support in the video player .
ExoPlayer is an application level media player for Android. It
provides an alternative to Android’s MediaPlayer API for playing audio
and video both locally and over the Internet. ExoPlayer supports
features not currently supported by Android’s MediaPlayer API,
including DASH and SmoothStreaming adaptive playbacks. Unlike the
MediaPlayer API, ExoPlayer is easy to customize and extend, and can be
updated through Play Store application updates.
From the documentation.
Exoplayer is super easy to use and it supports SmoothStreaming, in case your link provides multiple tracks, it'll adapt to the user connection, if the user has a poor connection it'll select the lower quality track, if the user has a good internet it'll select the high-quality track.
If playing audio or video is an important feature of your app, you should definetly use Exoplayer.
If you are not convinced yet, Exoplayer is used in Youtube, Google Music, Google Movies, Facebook, Whatsapp, Spotify, Twitter and 140,000 more. You can check in this I/O lecture.
If you want to check a simple audio exoplayer sample you can see it here. And read this article.
as someone who has coped with same problem i think simplicity is more important than other factors. VideoView is so easy to use so go with it.
tip: if you wanna make something like youtube style of playing you can use a Frame Layout on top of that and put buttons and imageviews and other stuff like that on it
I want to live stream a 360 video to my android app.
The main function of the app is to watch live 360 videos.
I tried using the YouTube API, but it does not work as it doesn´t render the video. I tried using the Google VRVideoView from the cardboard API. But it seems it can´t parse YouTube URI.
Is there any way I can do this? Or any alternative platform that supports 360 video steaming on mobile?
I have used Pan frame SDK to play 360 video in Android App. I have updated the complete source code in Github,
https://github.com/JayaprakashR-Zealot/360VR
Please let me know if you find any issues.
I developed android app which is based on video listing,I face some problems that are,
1.When scroll a listview video need auto play
2.Need pause,stop,resume and full screen mode
3.Every time video is streaming
4.How to make cache videos and play without stream
Is there any Lib or reference link,and advance Thanks
i suggest ExoPlayer, here is a good sample
for caching, you can use VideoCache or OkHttpDataSource
I am working on an android application and my application is having a functionality to upload multiple type of videos in app. The videos can be from any sources like Youtube, Vimeo or can be uploaded from device. So, I want to play each type of videos in my application whether they are uploaded from any type of resources.
If I use VideoView, it supports only some of the extensions and it can't play youtube and viemo uploaded videos as well. I have to use Webview to play youtube and vimeo videos.
Is there any view which can play all type of videos or can someone help me in creating a video player view which can play each type of video.
I don't have much idea about videoview, please help me if anyone know about this so that I can create a view which can play all type if video formats.
Thanks a lot in advanced.
There seems no universal video player for all video sources/types.
The Android built-in VideoView can play rtsp and HLS streams, take a look at Android: How to play RTSP or HLS video streams
To play rtmp video streams in Android, you can use a number of libraries such as Vitamio: refer to Android: How to play RTMP video streams
The VideoView used to be able to play youtube videos, but now you cannot. You need to use YouTube Android Player API now. Refer to Android development: Play Youtube video in your app, “Can’t play this video” and troubleshooting instead.
I want to put YouTube streaming video inside my app for Cardboard (Android). I want the video to be streamed side by side like in Cardboard View But i have found source for playing from resources or the sd card! if anybody having idea for this use case,would be appreciated. Thanks.