I want to play video from youtube link https://www.youtube.com/watch?v=yi-AImV09q0. I am using Youtube Player to play video but it have some problems.
This video is bigger than real video (on web) so I just only see a part of video. However,if I turn off HQ mode - with lower quality, this video work fine.
This problem also happens in Youtube App. I'm testing with Samsung S2 device
Anyone can give me some advice? Thank in advance
Related
I am trying to make an app where users post videos and see the posted videos in a feed ( like facebook). It all works. I am using cameraview for capturing video and Exoplayer for playing it. It works fine but the issue is that if video is posted by a device different than the device playing it then the video is not taking the full width of the screen.I guess it depends on the aspect ration/resolution of the video being posted.
How do I overcome this problem? How do apps like fb and instagram ensure the video is playing in the same area on all devices without cropping/stretching it
Thank you
my problem refers to the play button of a Vimeo video Iframe used it on an Android mobile device. When I press the play button the video goes in full screen mode automatically. There is the possibility to solve this problem? It occurs only using mobile devices. Thanks in advance
I have to play YouTube video inside my application. I have used HTML5 WebView to play this video.
Video is playing fine for the OS version bellow 4.0.
Above 4.0 (4.1.2, 4.2), the video is not showing. Audio is playing, but the screen becomes black, no video displayed. In this situation, if I touch on the lower right corner of the screen, then the video displays, but video gets flickered and it is not stopped by pressing the back button.
I have to play the video for all versions. I have tested it in Galaxy S3 version 4.1.2 and Nexus version 4.2.
If you use my little HTML5WebView, I think it should be able to play back YouTube video if turn on hardwareAccelerated in you manifest file.
First some details to help explain:
If you load a Vimeo link such as the following:
http://player.vimeo.com/video/40234826, or use their iframe embed code,
into a WebView, one of two things will happen.
If the device has the Adobe Flash Player app/plugin installed, it will display Vimeo's embedded player. Tapping play, plays the video inline as an embed.
If the device does not have the flash plugin, it will display an image with a play button. Tapping play, opens the Video in a system VideoView. (Because the button links to an mp4 file.)
Since Vimeo's embedded play can be a bit buggy on the vast variety of devices available, I have found that option 2, playing the Vimeo video in an Android media player is a much better experience.
Now the question is, how can I convince the WebView not to use Flash?
I have tried webview.getSettings().setPluginsEnabled(false); but it still loads the flash embed version. How can I trick Vimeo's player into thinking the device does not have flash installed?
Thanks
Update
After further investigating, it seems that setPluginState(PluginState.OFF) works pre honeycomb, but this doesn't work on Honeycomb and ICS.
I'm trying to play some videos from web, using VideoView.setVideoPath()
This videos are .mp4's
Using MediaInfo, I found some important lines:
Codec (Human Name)................................MPEG-4 Visual
Codec Profile.....................................Simple#L1
Codec Settings (Matrix)...........................Default (H.263)
This videos don't play on Galaxy Tab, but play well on any HTC and other Samsung with Android.
I also tried to play a .3gp, but this also doesn't play on Galaxy Tab and plays on any other android smartphone.
The only video that I could make to play on Galaxy Tab are .mp4's from Youtube.
Can anyone recommend me how to make .mp4's with H.263 to play on Galaxy Tab without changing encoding?
And, maybe more important:
Does anyone knows any other possible Android devices on which this videos won't play?
Update: Maybe an important information: when I download the video and play it locally, with integrated browser, any of the above videos play well. The only problem is that GalaxyTab doesn't support even progressive video streaming of h.263/.3gp
Thanks in advance!
I transcode my videos to XviD which play nicely on my Galaxy Tab. They're just dvd rips for my kids to watch.
My understanding is that there's no H.263 codec available for the tab.