Questions tagged [android-video-player]

Related to playing videos in Android API

541 questions
2
votes
0 answers

Is there an Android equivalent to shouldOptimizeForNetworkUse (from iOS)?

Does Android have a similar method of optimizing videos for network use like iOS? Is there an Android equivalent of shouldOptimizeForNetworkUse?
BlueBoy
  • 798
  • 1
  • 11
  • 22
2
votes
0 answers

Display video from a webpage in android videoview

I know how to display a video in a video view as following
2
votes
1 answer

How to ask for the permission to become Default Video Player in Android?

I am developing a video player app and I want my app to Prompt for the permission to be the default Video Player to be the default handler of video play. I know it has to be something like the default handler: Intent setSmsAppIntent = new…
2
votes
1 answer

Accessing Native Codecs in Android 3.x version and above

I would like to use the native decoder for a custom video player. The VideoView and MediaPlayer does not provide functionality that will support my requirements. I am using FFMPEG (software decoder) right now, but I would prefer to use native…
2
votes
1 answer

Accessing an mpeg-4 encoded RTSP live stream (Axis server) in Android with the .amp extension

I have a Samsung Galaxy Tab (Android 2.2 Froyo, etc) that I am developing on. I need the application to access a stream via IP, and the stream is originating from an Axis 241Q. The Axis is set to use .mp4 encoding, and I see that Android supports…
Doug Stephen
  • 7,181
  • 1
  • 38
  • 46
2
votes
1 answer

Andoroid how add video and GIF in android local notification?

Is it possible too embedded video and gif player into android rich notification like iOS? If possible, please give me an example. Thanks in advance.
2
votes
3 answers

How to load lots of bitmaps without crashing application in android

I am working on streaming a video from web. Where I decode the video/audio stuff in native code and get the raw pixels for video I create a bitmap in java code, with surfaceholder and canvas and update pixels for each bitmap from native code and…
2
votes
1 answer

Android Video Stream upload to php server?

HI, Anyone suggest some sample and idea to post the video data to server.I want to playback the video later as stream video from the server directly.Anyone suggest me how to upload the stream video to php server and playback it as stream video from…
Karthi
  • 13,624
  • 10
  • 53
  • 76
2
votes
1 answer

How to open video player in WebView?

I've a WebApp showed with Webview. In those pages I've some links to videos (MP4, 3GP...). When I click on the link, nothing happens.? public class luxgateway extends Activity { WebView myWebView; public void onCreate(Bundle savedInstanceState) { …
Lord St John
  • 124
  • 1
  • 2
  • 13
2
votes
0 answers

Subtitles are not displaying the when seek to backward in videoview

In my Android app videos are played with subtitles using videoview. The problem is when I'm pressing forward or dragging the seekbar subtitles are displaying, but when I'm pressing backward or dragging the seekbar backwards subtitles are not…
2
votes
0 answers

Video free multi window size is not changed in android 7.1

I'm working on free multi window in android 7.1. With test application free multi window is working perfect.(please fine screenshot 1) Now Im playing video using MX player app, at that time free multi window size is not effecting.(please fine…
GNK
  • 1,036
  • 2
  • 10
  • 29
2
votes
1 answer

ExoPlayer2 set initial track in playlist

I'm using ExoPlayer 2.3.1 for playing the list of videos. I'm using code from sample: MediaSource mediaSource = mediaSources.length == 1 ? mediaSources[0] : new ConcatenatingMediaSource(mediaSources); player.prepare(mediaSource,…
Nik Kober
  • 868
  • 11
  • 16
2
votes
3 answers

Unable to play video in videoview from youtube url

I want to play following youtube url in android VideoView but it is not streaming video https://www.youtube.com/watch?v=h-gEwftyPCg Following is my code VideoView videoView = (VideoView) getView().findViewById(R.id.dealVideo); …
amodkanthe
  • 4,345
  • 6
  • 36
  • 77
2
votes
1 answer

videoview screen fade black in android TV

I try to play video from raw folder.I wrote some codes and everything is perfect in device. String UrlPath = "android.resource://" + getPackageName() + "/" + R.raw.background_video; videoView.setVideoURI(Uri.parse(UrlPath)); …
BekaKK
  • 2,173
  • 6
  • 42
  • 80
2
votes
4 answers

Status bar is back (visible) when controls of videoplayer in fullscreen are shown (visible)

I use WebView for loading a video. I overrided onShowCustomView (to go to fullscreen) and onHideCustomView (to get out of fullscreen) methods. When I go to fullscreen mode a variable fullscreen is set to true and OnSystemUiVisibilityChangeListener…
user25
  • 2,873
  • 2
  • 30
  • 66