mediaelement.js play youtube source on android phone chrome - android

The problem is using mediaelement.js to play "youtube source" on android phone chrome.
For example, I use the android phone's chrome(33.0.1750.136) open YouTube API Example and tap the left small playing button. The video doesn't load and duration is zero, but tap the big center playing button the video is fine.
In other case, when I use mediaelement.js and set code like mediaElement.play(); will get the same problem.
I want to find a method to control playing "youtube source" on android phone chrome by mediaelement.js.

Related

YouTube embed: How to enable *non-muted* autoplay in Chrome for Android

This question is basically the same as this one which has a solution for HLTML5 videos, except that changing the chrome://flags to set gesture requirement for media playback to disabled has no influence on a YouTube embedded player.
I have built a webapp I use to learn music, and loop specific parts of Youtube music videos to learn how to play the song. Here is an example. This works fine on a computer, but using Chrome (59) on Android (7.1.1) I have to tap the video each time it starts again to put the sound back on. Not handy when trying to use my hands to learn playing the music ;)
The code I'm using to embed the player and interact via Javascript can be found here.

Radio streaming in smartface app studio

I am using video object for radio streaming. The problem is that when i clicked the play button, main screen disappears and logo of the QuickTime appears on the black screen. I want that start radio stream in the background.
Does Smartface present us play pls or m3u file?
There is no certain way to play *.pls or *.m3u files. Because it requires media player to play them. (not an exact videoPlayer)
Try to do this in WebView. I just suggest you this idea.

Launch YouTube App by pushing play button in an embedded YouTube clip in webview

I'm looking for a solution about YouTube in Android.
When my WebView in app connects an webpage, some pages may have embedded YouTube clip.
When I press the RED play button in the center of embedded clip, it plays well. Yes I set enabled JavaScript , plugins, hardware acceleration etc. But it ONLY plays in the WebView internal media player.
I've tried with several libraries such like YouTube API that provided by Google, but It just provides Views and interfaces, and cannot convert a YouTube clip in WebView to a YouTubeView (If you know how to convert, let me know).
All I want is simple. Hit a red play button in embedded YouTube, then my app launches YouTube App (or stock media player) so play the YouTube clip.
iPhone can do this very simply with the stock player, but I can't understand why Android can't do so.
Please check whether "YouTube" application is install on your device? If yes then just update it.And most of the time you tube application not working properly on emulator..

Play locally stored HTML5 video on Android

I'm making a webpage that needs to run completely offline on Android 4.1 tablet. I'm trying to embed video stored locally on SD card using HTML5 <video> tag. Source attribute is pointing to a subdirectory containing that video using relative path.
The problem is, that after hitting play button, video stays black and plays only sound. After enabling video fullscreen, it plays normally. Same behavior in both native browser and Chrome. When I set source to same video stored online, or enable web server on the tablet and load the video from localhost, everything works fine and embedded video plays well.
Is there any way to force local video to play in embedded mode on Android? Or is this behavior for some security reasons?

Force non-flash Vimeo embed or disable Flash in a WebView?

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.

Categories

Resources