Playing SMIL on Android 2.1 - android

Is it possible to invoke native SMIL player on Android 2.1? Can you please provide a code sample or a pointer to relevant info?
Thanks a lot

Is it possible to invoke native SMIL player on Android 2.1?
I do not believe there is a "native SMIL player" in any version of Android.
It is possible that the WebKit browser can play SMIL. I believe the desktop versions can, but I have no idea if that was stripped out or not for the Android mobile edition. Try opening a SMIL file from the Internet in the Browser application. If it works, you may be able to use the WebView widget to play SMIL files in your own application. If the Browser does not seem to recognize SMIL, you will have to search for a third-party SMIL player, if there is one.

At least in some cases there a is player for SMIL files. Though I could not find a way (impossible?) to launch it as it is not a part of the official SDK

Related

mediaelement.js player and phonegap couldn't work on .apk file

I am trying to develop an application which is using mediaelement.js player. The styles, forward and backward buttons are not coming once I have created the android file. But it works in browser. Should I follow some other way to do this? When I searched, I have seen that to use media element API. But I cant find any API creation documents.

Cordova Plugin to display audio information and controls on iOS and Android Lockscreen

I am looking for a plugin or plugins that would allow me to show audio metadata (Title, Artwork etc.) on the Lockscreen of both iOS and Android.
Along with that I would like to control the audio from the lockscreen (Play pause etc, it already happens in iOS I need it happen on Android).
Lastly the plugin should provide audio information within the control center in iOS and the notification area in Android of cause with the ability to Play Pause etc.
If it is easier to do with some native code tweaks then can someone please point that out also to a tutorial as to how it can be done.
Below are some examples of what I am speaking about
This plugin does what you're looking for: https://github.com/homerours/cordova-music-controls-plugin
As of writing it has a few issues with iOS html5 audio (see https://github.com/homerours/cordova-music-controls-plugin/issues/97 and https://github.com/homerours/cordova-music-controls-plugin/issues/66) but works across iOS, android and windows phone.
You could also try this, however I have never tried it. It uses the native players for iOS and Android, and will not work on chrome or your dev machine.
https://github.com/wnyc/cordova-plugin-playerhater
On my current project I have much the same need as you, (I am using HTML5 audio) and have had to put together a number of different plugins.
iOS Background Audio
https://github.com/AubreyHewes/cordova-background-audio
iOS Meta data:
https://github.com/ChoiZ/NowPlaying
https://github.com/shi11/RemoteControls
I am working on a solution for a modular android audio notification controls using the webintent plugin, but I am far from finishing it. I'll post back here when it's done.

Play SWF in Android 4.2

I am trying to play one SWF (flash) file in my application deployed on Android 4.2.2. When I save the file on file system, and open it with browser, it works well. But when I try to open the same in webview in my application, it does not play the swf. It just shows a broken file type small image. I have searched stack for the proper answer but any answer I found here is very old and not working for me, this must be because of the non-support of swf on new android version. I have also tried after installing the old flash player, but it shows just the first frame of swf.
webview.getSettings().setPluginsEnabled(true);
Credits to joren: Load an SWF into a WebView
It sounds like you need an embedded flash player that plays the SWF rather than simply embedding the SWF. I haven't flashed around in a while now and certainly don't do it on Android but that's my immediate thought. (EDIT - The other answer here nailed it: plugin)
Seems like installing Adobe Air player on device is the only solution. Please suggest if any better way is available.

Can Android WebView analyse <video> label in HTML5?

I am trying to write a sample android program to read an epub file which is embedded video,but I am not sure whether WebView can work?
I believe that android only starts with html5 by default at ICS? I could be wrong but you would probably need to get some OS stuff and work from there, maybe look into opera or dolphin browser, not sure if they have source code available but just along those lines, you need to find a OS browser with HTML5

video via phonegap on android

I have been trying to play video in my android application that I made using phonegap. I had several problems and so I have several questions.
Firstly, does html5 video tag work with phonegap? I couldn't succeed to write the html5 codes.
Secondly, what types of videos are supported by android and phonegap?
Thirdly, I try to play a file whose extension is mp4. There is no scene on the screen but I can hear the voice of the video. What can be the reason?
Thanks in advance.
Nope, the video tag is broken in most if not all versions of Android. Go star these issues:
http://code.google.com/p/android/issues/detail?id=22254 and
http://code.google.com/p/android/issues/detail?id=8272
In order to work around this pain in the #$$ I've written a plugin you can use on Android to play videos.
http://simonmacdonald.blogspot.com/2011/11/video-player-plugin-for-phonegap.html

Categories

Resources