We are trying to supply video in emails and it will fall back to a static image if html5 video is not supported. We are having issues with Windows Phones mail client in that it appears to support HTML video because it loads the player. You can see the play icon in the middle but it does not play. It is totally unresponsive.
Does anyone know if there is a specific format videos need to be supplied in? Or if it is just an incompletely finished feature? It is worth noting I am testing this on WP7, not WP8 as I don't currently have access to that device.
Cheers
I think you should use H264 codec for your video with MP4 format.
This link can help you : HTML5 support in IE9 mobile.
To do this, you can use ffmpeg
ffmpeg -i you_video_file.[avi/mp4/mkv] -vcodec libx264 output.mp4
Related
I found this mp4 from the site Giphy. To my surprise it plays in Firefox. Does anyone know how that can be? Normally I have to generate two versions of every video file, mp4 and webm. It would be nice to not have to do that.
Here's the file:
http://media2.giphy.com/media/yoJC2NG0MLnSoEPjIA/giphy.mp4
Firefox will use an mp4 library is a suitable one is on the system that Firefox is running on:
Firefox/Firefox for Android/Firefox OS supports the format in some cases, but only when a third-party decoder is available, and the device hardware can handle the profile used to encode the MP4.
source
If you can use HTML5 I'd suggest the video tag like the following. I figured you'd want controls so I added the controls attribute to the video tag; you could also add autoplay if you want that. I tested it on IE11 and the current versions of Firefox and Chrome. works for all of those. Having alternate versions isn't a bad idea, but mp4 is pretty universal on modern browsers.
<video controls>
<source src="http://media2.giphy.com/media/yoJC2NG0MLnSoEPjIA/giphy.mp4" type="video/mp4">
<source src="http://media2.giphy.com/media/yoJC2NG0MLnSoEPjIA/giphy.webm" type="video/ogg">
Your browser does not support the video tag.
</video>
As to why:
MP4 H.264 (AAC or MP3) The MP4 container format with the H.264 video
codec and the AAC audio codec is natively supported by desktop/mobile
Internet Explorer, Safari and Chrome, but Chromium and Opera do not
support the format. IE and Chrome also support the MP3 audio codec in
the MP4 container, but Safari does not. Firefox/Firefox for
Android/Firefox OS supports the format in some cases, but only when a
third-party decoder is available, and the device hardware can handle
the profile used to encode the MP4.
Note: MP4s encoded with a high profile will not run on lower end
hardware, such as low end Firefox OS phones. The MPEG media formats
are covered by patents, which are not freely licensed. All the
necessary licenses can be bought from MPEG LA. Since H.264 is
currently not a royalty free format, it is unfit for the open web
platform, according to Mozilla [1, 2], Google [1, 2] and Opera.
However, since royalty free formats are not supported by Internet
Explorer and Safari, Mozilla has decided to support the format anyway,
and Google never fulfilled their promise to remove support for it in
Chrome.
Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats
I want to store .mp4 videos to display them in a HTML5 player (videojs).
I have a Problem on Chrome browser : I can't moving seek-bar back or forward in the video (stored on Azure). This problem does not arise if I host the video on another server.
I have checked the mime type (video/mp4). Have You Encountered this problem?
Apparently it is possible that the problem comes from the Accept-Ranges: bytes (not present in HTTP response).
Here is the link in question: http://tbf.azurewebsites.net/fr/media/unrealistic-expectations-10000-dollars
Thank you very much,
Best regards
Formats supported by Chrome are H-264, VP8 (WebM video part), Theora for video and MP3, AAC, Vorbis for audio. MPEG-4 Visual is not supported (Chromium issue 54036).
So, Chrome can play .mp4 with H-264 video but not MPEG-4 Visual video.
https://stackoverflow.com/a/12174154/1384539
I'd like to make app for WP8, which will download and play movies. Android Market has lots apps of this type. But all of just get content, and pass it to video player (MX player for example), and format can be different (.avi, .mkv, .mpeg, etc.), but player shows the content without any problems. For exaple on my Samsung s5830, 1400 mb .avi movie plays good. As I can see - WP8 doesn't has custom video players.
Question: if I download in my app, from web, some movie in .avi format, could I play it on WP8? The same question for video stream for web.
You can play back any video file which is supported by the phone (this is documented on MSDN here). You can stream or play downloaded video from Isolated Storage using the MediaElement in the SDK and on WP8 I think there is a DirectX option too.
It's not enough to say that a file type is supported as these are just video "containers" - each container can contain audio and video of different codecs. MKVs don't look like they're supported at all however.
You can see this video format (codec) support varies between WP7 and 8 and even some kinds of phone dependent on what the chipset in the phone supports. (especially for the high bitrate HD codecs).
There is a nice framework that helps you on playing movies inside your app!
Take a look at it on codeplex http://playerframework.codeplex.com
And some documentation http://smf.codeplex.com/documentation
I want to stream an audio from server using windows phone 7
the audio extension is mp3. I have tried Mp3MediaStreamSource class but the problem was that it downloads all the audio then start playing it.
I want to know what is the best way to play audio in WP7 for platform 7.0 ( with buffering -> not waiting until the entire audio file is downloaded.
Thanks in advance
I use Background Audio agent do stream mp3 radio broadcast. Take a look at this tutorial http://msdn.microsoft.com/en-us/library/hh202978(v=VS.92).aspx
I'm playing around with streaming to a simple mediaelement in silverlight from VLC, but i'm having no such luck. I'm using the following code;
mediaelement.Source = new Uri("http://localip:8080", UriKind.Absolute);
mediaelement.play();
On the VLC end i'm using the following video settings (which i believe WP supports)
Method: HTTP
Container: MP4
Video: H-264
Audio: MP3
All i get is a black screen, no error, no video and no sound. I've read that WP doesnt like playing media etc whilst zune is running, so i've ran the project with my phone connected using wpconnect instead but still have the same issue.
Can anyone give me a few tips?
thanks
See this article for configuration and compatible audio and video formats:
From this article:
http://ipaddress:port;stream.nsv :sout=#transcode
vcodec=WMV2,vb=5000,fps=30,scale=1,acodec=wma2,ab=128,channels=1,samplerate=44100}:std{access=mmsh,mux=asfh,dst=MyIP:PortNo}
:no-sout-rtp-sap :no-sout-standard-sap :sout-keep