React Native Video Picture In Picture for Android - android

I am using react-native-video library for streaming videos in my react-native app. The video is streaming picture in picture on the ios platform because of the prop on the video element of the library which makes the streaming of the video on the ios quite fast. The problem is on the android platform that the picture in picture prop is not available on the android platform. This makes the video to load completely before it starts playing. If the video size is a bit large then it takes considerable time to load on android. So how do I implement the picture in picture stream in android as well?

Related

Video quality issue with OpenTok library

I am using OpenTok to implement video chat on Android.
I start the video chat session on my android app which has tokbox implementation. The bandwidth is around 50 - 100KB/s. Video quality received on the other app is not great.
We also have a web-based app. When I open that on my browser on the android phone, the quality is much better with the same bandwidth as above. I need some help to improve the video quality on the native android app.
I am using Android OS Oreo and Chrome browser.
My opentok version is: opentok-android-sdk:2.13.0

Set cover image while record audio in android

Hello I am recording audio using MediaRecorder and save it in MP4 format. and upload to the server. as well record video as MP4 using camera and upload to server.
So while I am receive my uploaded item from server as uploaded url list. and I am playing all it in VideoView. video and audio play good. now here is the thing while I am playing video it's display video frame on video view but while playing audio it's black. basically audio and video file extension are MP4 so I can't make different while adding it in to VideoView other wise I'll add imageview and display some default image and hide VideoView.
so is there any way to record audio with cover image so while I am playing it in Video view so it display that cover image...
I know that using ffmpeg we can do this but I got lots of error while compiling it in my windows pc. so is there any way to add cover image while record audio with pure android api? sorry for bad english.
I google everything but I can't find any solution for convert audio file to video file with using image. So I have to go with FFMPEG.
So I add WritingMinds java FFMPEG in my project using gradle dependency. Then convert MP4 audio with cover image into the MP4 video.
There are some limitation in this precompile library. like it not work in android 24 and some commands like -speed, cpu-used, -deadline which are most important for all the operation(But still we can perform other operation). there are some disadvantage also like slow speed, and some features which required for specific operation are not include in the compile library. (So I gave advice to compile your own ffmpeg library for android project in linux or mac pc(windowns have lots of issues)).
I hope this will help someone who's this type of scenario :)

Android: Easy Movie Texture working in editor but not phone

I'm having the same issue as Easy Movie Texture plays in Unity editor but not on device. What am I missing? but the solutions mentioned don't seem to work. I'm running my application on an Android device but besides that it's the same problem. I'm using a video converted in VLC using H.264 and with a frame size of 1920x1080. The video I'm using works in the editor but isn't working on the device itself. The end goal is to create a VR 360 Video player using Unity.

Mp4 video rotation metadata

I have developed an android/ios video sharing app that records a video and uploads it to amazon s3. For compatibility both android/ios record in mp4 format with H264/AAC codecs.
The users might shoot portrait or landscape and the app, getting info from the sensors, set the rotation of the file (mediarecorder.setOrientationHint on android and something similar on iOS)
The videos from iOS play fine on android and vice versa. The problem is when i want to play a video on a web browser. The browsers that support mp4 format (ie, chrome) display the video but ignore the rotation metadata. The same thing happens when i playback those videos with mplayer on linux.
The first solution that comes to mind is
ffmpeg -i in.mp4 -vf transpose=<rotation value> out.mp4
Is there a reason why browsers ignore rotation metadata? Is it a bug? Could i do something to fix this while recording the video?
Here are 2 sample from iOS and android respectively.
Thansk
ios video
android video
Method 1: Rotate the HTML Element if the aspect ratio is not horizontal
Chrome HTML5 Video Flipping Portrait Sideways
Method 2: Re-encode the iPhone-Video
Displaying vertical videos with html5 on chrome
Method 3: Set orientation properly on iOS-Devices (Advanced)
iOS AVFoundation: Setting Orientation of Video
Method 4: Ask this guy if he has found an answer
Use FFmpeg to rotate the video based on its <rotate> metadata? Why does Android put the wrong metadata?

Phonegap android youtube video stream

i have a problem with android and phonegap. I am finding out the best way to load an online video stream from youtube, my code is the below:
The video will not load, it displays a screen with the red youtube button but the video will never load on play...
your help is very much appreciated..
Thank you.
If you are using HTML5 video on Android, it is not supported by the operating system on Android 2.x devices. Try this native plugin: https://github.com/phonegap/phonegap-plugins/tree/master/Android/VideoPlayer

Categories

Resources