Embedding Player for all browsers - windows

I have a webradio that like to put on the site.
I used the following code that works in Internet Explorer, but not in Windows 8.1 or the 64-bit MAC (iPad, iPhone ...)
<object classid = "clsid: 6BF52A52-394a-11D3-B153-00C04F79FAA6" width = "280" height = "100" codebase = "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf. cab # version = 5,1,52,701 ">
<param name="url" value="http://109.71.41.230:8658">
<param name="autostart" value="false">
<embed type="application/x-mplayer2" width="280" height="100" src="http://109.71.41.230:8658"> </ embed>
</ object>
The following code works on Mac, but also does not work on Windows 8.1 64-bit:
<audio preload="auto" autoplay controls="controls" src="http://109.71.41.230:8658/;">
</ audio>
I visited your page: Embedding Windows Media Player for all browsers
but also did not work.
There is some code that works on all browser's?
thank you

There is no such 'Code that works on all browsers' ;-)
You have to check what capabilities the browser has. For example flash or html5 audio or both etc. and deliver the proper code. That's not the easy way.
But you could use http://jplayer.org instead.
It's a HTML5 Player with Flash fallback and does all the checks for major browsers for you.
It supports:
Windows: Chrome, Firefox, Internet Explorer, Safari, Opera
Windows (legacy): IE6, IE7, IE8, IE9, IE10, IE11
OSX: Safari, Firefox, Chrome, Opera
iOS: Mobile Safari: iPad, iPhone, iPod Touch
Android: Android 2.3 Browser
Blackberry: OS 7 Phone Browser, PlayBook Browser
and those media types:
HTML5: mp3, mp4 (AAC/H.264), ogg (Vorbis/Theora), webm (Vorbis/VP8), wav
Flash: mp3, mp4 (AAC/H.264), rtmp, flv

Related

Stream not working on Firefox via QuickTime

I have a live stream from 2 cameras. Code looks like this
<embed
id="QTlive"
src="empty.mov"
qtsrc="rtsp://IP:ADDRESS/live/video/ch1&authbasic=LOGINPWD="
width="800"
height="600"
scale="tofit"
autoplay="true"
loop="false"
controller="true"
wmode="transparent"
type="video/quicktime"
pluginspage="http://www.apple.com/quicktime/"
>
On server it's working perfect with Safari but on Firefox i got blank, white box. When i run local file .html via Firefox it's working but on remote server it's not.
I have QT installed on Firefox and using Mac.
Any ideas how to solve this problem ?

How do I get a HTML5 Video to work using IE10

I am hoping someone has an idea on what I can do to help me play HTML5 videos on my local intranet.
My Web server= Windows Server 2008 R2 Standard 64bit
IIS version= IIS7
Test User environment = Windows 7 Enterprise
Video plays perfectly using 'Google Chrome'
Video fails to play using 'IE10'
My html code is as follows:
<!DOCTYPE html>
<html>
<body>
<video src="AccReadings.mp4" width="400" height="300" preload controls>
</video>
</body>
</html>
My test machine using IE10 does play HTML5Rocks video 'http://craftymind.com/factory/html5video/CanvasVideo.html'
Regards,
Chris
Make sure you set the web server to use a MIME type video/mp4 for .mp4. I accidentally set .mp4 to use MIME type video/mpeg, the video plays in Chrome, but not in IE11.
Also you need to make sure the video uses H264 video codec and AAC audio codec
I just had a similar problem, my own site HTML5 did not work at all. No error message just blank.
The reason was Windows7 N (EU - no media player).
After installing the Windows Media Player, this (and also other problems) are fixed.
I hope it helps :)
It doesn't look like it works in Win7+IE10 for some reason. Everything else looks good. Tested against the following pages, which includes ie.microsoft.com test.
http://ie.microsoft.com/testdrive/graphics/videoformatsupport/default.html
http://www.w3.org/2010/05/video/mediaevents.html
Win7 IE9 – OK
Win7 IE10 – nope
Win8 IE10 – OK
Win7 IE11 – OK
Win8 IE11 – OK
BrowserStack screenshots for the MS test page.
http://www.browserstack.com/screenshots/9083c865675d0821ee8b1030a43da5fd36bff469
I don't have IE10 installed, however, according to caniuseit, mp4 is supported in IE9 and 10.
The following html works for me in IE9 & Chrome, note your video file must be in the same folder as your html page on the server (in this example).
<!DOCTYPE html>
<html>
<body>
<video src="abc.mp4" width="640" height="480" preload controls></video>
</body>
</html>
Edit: I have installed IE10 and can confirm the above works there too.
Edit: Since Firefox does not support mp4, and older browsers do not support video natively at all, it is better to provide multiple sources (formats), and fall back, usually to a flash player.
<!DOCTYPE html>
<html>
<body>
<video width="640" height="480" preload controls>
<!-- mp4 supported by Chrome & IE9/10 -->
<source src="abc.mp4" type="video/mp4"></source>
<!-- webm supported by Firefox -->
<source src="abc.webm" type="video/webm"></source>
<!-- last element in video is fall back for native video support, usually a flash player -->
<object type="application/x-shockwave-flash ...>
<!-- last element flash player is usual fall back for flash support, usually some "not supported text" -->
<div>
Your browser does not natively support flash and you do not have flast installed.
</div>
</object>
</video>
</body>
</html>
Maybe you have video card driver problem as mentioned in Cannot play neither IE10 HTML5 video nor Modern UI apps video.
Disable GPU rendering in IE as:
Internet Options > Advanced > Accelerated graphics > Use software rendering instead of GPU rendering
And see if it works.
I have had a lot of problems with IE10 playing html5 video.
The last thing I checked was the right oe : videos were gzip compressed.
Check your server config!!!
EDIT :
To know if your videos are getting compressed by the server, use a network proxy sniffer like Charles for example, or even IE's debugger and check the response header to the video file request. If you find Content-Encoding:gzip, then you should check your server config.
In my case I had to disable gzip compression on video files in my .htaccess file.
This is the code I use for my html5 videos:
<div>
<video id="example_video_1" class="video-js vjs-default-skin"
controls preload="none" width="auto" height="auto"
poster="path/to/image.png"
data-setup='{"example_option":true, "autoplay": true}'>
<source src="path/to/video.ogv" type='video/ogg' />
<source src="path/to/video.webm" type='video/webm' />
<source src="path/to/video.mp4" type='video/mp4' />
<!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
<object class="vjs-flash-fallback" width="640" height="360" type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
<param name="allowfullscreen" value="true" />
<param name="flashvars" value='config={"playlist":["path/to/image.png", {"url": "path/to/video.flv","autoPlay":false,"autoBuffering":true}]}' />
<!-- Image Fallback. Typically the same as the poster image. -->
<img src="path/to/image.png" width="640" height="264" alt="Poster Image" title="No video playback capabilities." />
</object>
</video>
This should work on all devices/browsers. I have called the wideos in that specific order to allow modern browsers to load them faster (chrome can play ogg/webm/mp4 - from testing my videos ogg/webm seem to load faster them mp4 so it will reduce buffering times)
I've had the exact same problem. My original resolution of the video was 1920x1200. Seems that IE10 has problems with that. First tests with lower resolution videos solved the problem.

Windows Media Player Plugin in MAC OS X Safari Browser

My website is using windows media player in playing videos in a web page. It is mandatory to use windows media player because I'm using it in E-learning tracking. However, I got problem in displaying the windows media player using MAC OS X in safari 5.0.4 version of browser. I'm using below tag to load media player in the browser:
Example:
<object id="MediaPlayer" width="400" height="365" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="uiMode" value="full">
<param name="autoStart" value="false">
<param name="stretchToFit" value="true">
<param iname="windowlessVideo" value="true">
</object>
Could it be possible to display the media player using MAC OS X in safari 5.0.4 version of browser?
What would be the alternative code to load the windows media player in MAC OS X using safari browser?
Thanks in advance.
You need Windows Media® Components for QuickTime (aka Flip4Mac) installed on the Mac.
Try setting an appropriate type attribute for the object element. This article recommends type="video/x-ms-wmv” It also contains additional tips that may be necessary.

Firefox HTML5 video playback inconsistancy

Hey all,
I've got an HTML5 video on a page. When tested locally, Chrome, Safari, and Opera work beautifully. Firefox plays it, but doesn't loop as efficiently as the others. The real problem is when it's tested off a server. Firefox doesn't play the video, but recognizes there is one there. I was wondering if all that open ended three-different-ways syntax can be swung in Firefox's favor.
Thanks!
HTML:
<video id="vid_home" width="780" height="520" autoplay="autoplay" loop="loop">
<source src="Video/fernando.ogv" type="video/ogg" />
<source src="Video/fernando.m4v" type="video/mp4" />
Your browser does not support this videos playback.
</video>
take out the closing tag from your source tag, it should work then

Firefox To Play Ogg

I have an ogg/audio file converted from mp3 using Alt WAV MP3 Ogg Converter.
When I drag and drop the file in Firefox or in Google Chrome, the audio plays nicely.
But when a use the following code to place the file inside a page it only works on Chrome.
My code is simple as that:
<audio controls>
<source src="foo.ogg" type="audio/ogg">
</audio>
Someone can tell me why?
Thanks
I think you can find your answer here.
In my case I had to add MIME types to our nginx server.
Because this works on IE:
<source src="foo.ogg" type="audio/mp3">`
And this works on Chrome, Mozilla, Safari, Opera
<source src="foo.ogg" type="audio/ogg">

Resources