Trying the SDK from the smart tv alliance, I worry about it not playing videos in the vbox.
The menu and browser works well, but e.g. when trying the video sample project within SDK, it does not play videos there. => screen remains black in the content area...
It's a smart tv virtualization, so I hope it supports video playback and is not a missing feature (as in some android simulators).
It's exactly like a normal site or HTML document...
Add your video like you would do normally.
The SDK emulator does not supprot much formats to be played except of the mp4 progressive download. What exactly are you trying to stream?
STeN
Related
I have seen several sites where they are able to create links to videos and they actually open on the video player of the iPhone, iPad or iPod.
This is obviously not a flash player video, and they don't seem to be embedded from youtube.
So I was wondering how can I add a video on my site that can be opened on an iPhone, and also what type of format is required for this?
Thanks
HTML5 Video works on iOS devices, see http://html5video.org
and here is a decent player plugin
http://videojs.org
I have installed Android SDK Manager to test web sites on Android Virtual Devices.
I have problem in seeing videos on it:
I hear audio normally but I see only black instead of video (controllbar is OK).
The video is encoded H264/AAC 1Mbs and plays well on browsers and iPhones emulator.
Do I have to add new hardware properties ?
You can see my configuration here
Thanks for your help
Paul
No, there are no specific hardware properties that are required for video playback. The emulator will only play a limited subset of video encodings while a real device will support a more comprehensive set. GPU emulation might help if your emulator is too slow to play back the video, but is not required.
Make sure your video is encoded using a baseline profile that can be played back in the Android emulator. This answer might help: What formats of video will play in emulator?
There are a ton of SO posts on audio, HTML5, and mobile Safari, such as these:
Reusing HTML5 Audio Object in Mobile Safari
Autoplay an Audio File on Mobile Safari
Preloading HTML5 Audio in Mobile Safari
Will HTML5 support the access of offline cached audio?
However, they all are outdated.
We prefer solutions to support iOS 3+, but we will take anything that works -- even if it's restricted to iOS 5.
Anyone have the definitive answer as things stand today, or testers on iOS 5 have any insights?
Can audio files be cached in mobile Safari? If so, what are the limitations?
Is there a way to minimize lag or delay between pressing a button and playing a sound?
Thanks!
I recently wrote an HTML5 audio player. I had similar trouble with iOS4 and iOS5. First, the play has to be triggered by user input, meaning specifically that it has to be in the same call stack as a click event.
I tested this a lot, and iOS seemed to refuse to cache the audio at all. It fetched the audio with every play. I think this should be considered a bug, but perhaps they are trying to preserve local storage space (audio files can get rather large).
If your audio files are not too large, you might want to consider appending them together into a single file and then using pause / jump to position / play to switch between sounds. I haven't tried it, but it should work. I didn't use the technique because my app was a music player, and music files are a bit too large for that technique to be valuable.
I have been doing some research into what is possible, as far as I can tell
Autoplay
Possible to autostart videos on early versions of IOS http://www.codeblog.co/getting-autoplay-working-on-ios/ although this no longer works on current version (exact version it stopped working I don't know). Behaviour seems to be the same on both the iPad and iPhone?
Playing video in page
On the iPhone videos always pop out to player, its not possible to play in page.
However is possible to play videos in page on the iPad - have tried out the videos on here and they do play inline.
http://www.html5rocks.com/en/tutorials/video/basics/
Playing as intro video
May be able to do an enter now button for the site with below code to trigger
<input type="button" value="Play" onClick="document.myMovie.play()">
https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html#//apple_ref/doc/uid/TP40009523-CH5-SW10
Could then on iPad make this take the full screen in page in website and use js to detect when the video finishes. Am thinking on iPhone may not be possible to detect when video finishes?
Can anyone clarify what is possible?
As much as I know intro video aren't too popular, this is a requirement for the site.
Automatic play is not possible on iOS as fas sa I'm aware. They removed support on purpose to stop people from doing it.
Any playback now requires the user to actually specify for the video to play, so providing a button to play it should be fine?
Can't you keep your video in the bundle and play it with MPMovieePlayer.Then you won't need to autoplay the video,the video will be played autometically itself.As I do the same thing.
I'm looking for a way to play videos, or rather, show a frame-by-frame animation with the built-in web browsers of iPhone and Android devices.
Conditions:
It must be played inline on the built-in mobile web browsers
The videos are 240x240 in size and around 10 seconds in length
They were originally .swf files containing Flash animation
HTML5 video tag is disqualified because there is only fullscreen playback on iPhone devices.
Any ideas?
Do you need a mobile phone solution, or you have access to a web page?
You can always try to use timed javascript to switch images with a set interval.
maybe, you could try using the image and update your web browser every time, but it's probably very ugly solution;