Ie9 Html5 audio tag in jbosserver - javascript

I am using audio tag in html5 page. It is working fine in all the browsers except Ie9.
The code is :
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Add a title</title>
</head>
<body>
<audio controls="controls" src="audio-file.mp3" autoplay>
audio tag not supported.
</audio>
</body>
</html>
If i open directly the html page it is working fine, but same page is failed to load when trying to open in server(jbosserver).
Regards
Chandrasekhar M

Related

How can I make my HTML webpage that has HTML5 video to share the link to Facebook in order to play inline?

I have an HTML webpage that has HTML5 video. I have included all the necessary meta tags that are following:
<meta property="og:video" content="http://www.trending-videos.epizy.com/myvideo.mp4" />
<meta property="og:video:secure_url" content="https://www.trending-videos.epizy.com/myvideo.mp4" />
<meta property="og:video:type" content="video/mp4" />
<meta property="og:video:width" content="500" />
<meta property="og:video:height" content="280" />
My full HTML code of the page is following:
<html>
<head>
<title>Video Title</title>
<meta property="og:image" content="https://picsum.photos/200" />
<meta property="og:video" content="http://www.trending-videos.epizy.com/myvideo.mp4" />
<meta property="og:video:secure_url" content="https://www.trending-videos.epizy.com/myvideo.mp4" />
<meta property="og:video:type" content="video/mp4" />
<meta property="og:video:width" content="500" />
<meta property="og:video:height" content="280" />
</head>
<body>
<video width="320" height="240" controls>
<source src="https://www.trending-videos.epizy.com/myvideo.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
</body>
</html>
I have searched on stackoverflow and applied many solutions but none of them worked. Some of them are following:
Share html5 video on website to facebook
Embedding video player html5 iframe in facebook share like YouTubeEmbed html5 video player in facebook
Make og:video play inline whatsapp and facebook
And many more but none of them worked for me. I can see the og:image when I debug my link at Facebook Debugger
I just want to make my webpage to be shareable on facebook. And when I share the link to facebook, this video on my webpage should play in Facebook along with the thumbnail of the video. I don't want to show image thumbnail instead of the video thumbnail.
NOTE: I got Free SSL from zeroSSL. Now getting this message in Facebook debugger
Can't validate SSL Certificate. Either it is self-signed (which will cause browser warnings) or it is invalid.

Embedded YouTube videos in HTML5 standalone app iOS 8.3 opening YouTube app

Apple recently fixed the error on iOS 8 where YouTube videos would not play on a WebApp (Why HTML5 video doesn't play in IOS 8 WebApp(webview)?). This error was fixed in iOS 8.3 but I've come across another problem. When a YouTube video is embedded on the page, the video will be opened in the YouTube app if it is installed on the iPad
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>HTML5 Video Standalone Test</title>
<style>
body {
margin:0;
}
</style>
</head>
<body>
<iframe width="700" height="394" src="//www.youtube.com/embed/xspoREpBOhY?rel=0" frameborder="0" allowfullscreen></iframe>
</body>
</html>
If I open the page in Safari normally then it works correctly. The video does not autoplay and it plays in the browser when the user touches it. If I delete the YouTube app then the WebApp works as expected as well.
If the YouTube app is installed then the user is taken out of the WebApp and put into the YouTube app. This happens if a video exists on the page that is opened. The video doesn't have to autoplay selected or the user doesn't have the option to play the video. They are automatically taken out of the WebApp as the default.
Is there a way to prevent this from happening without having to delete the YouTube app off of the iPad?
I was sent this answer from the Apple Support Communities. All I had to do was to add '-nocookie' after youtube in the src of the iframe
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>HTML5 Video Standalone Test</title>
<style>
body {
margin:0;
}
</style>
</head>
<body>
<iframe width="700" height="394" src="//www.youtube-nocookie.com/embed/xspoREpBOhY?rel=0" frameborder="0" allowfullscreen></iframe>
</body>
</html>
It worked for me in my test app.

Video background doesn't work (html, css, js)

i'm working on a code that create a video background in loop.
Unfortunately the code doesn't work if I change the video source, because I copied the code from a tutorial online: http://codepen.io/bldng/pen/biGJx
I need help to solve the problem.
This is my code
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>videosfondo</title>
<link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />
</head>
<body>
<video class="video" autoplay loop>
<source src="video/video.webm" type="video/webm">
</video>
<div class="text">prova</div>
<script src="js/jquery.js"></script>
<script src="js/index.js"></script>
</body>
</html>
I checked the link of codepen given by you in Chrome, FF and IE. Its working fine in Chrome but in IE and FF its not working. Below are some of the link/suggestions you can try which might work for you.
VIDEO FILES MUST BE SERVED WITH THE PROPER MIME TYPE!
Check THIS LINK for the source.

MP4 in HTML5 Video Tag Not Playing in Internet Explorer

Can anybody tell me why this is working for Firefox and Chrome, but not for IE9, 10, or 11? It's giving me the typical black screen with a small white square containing a red X.
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Video Player Test</title>
</head>
<body>
<video style="position:fixed; top:0px; left:0px; height:100%; width:100%;" autoplay controls>
<source src="./videos/video.mp4" type="video/mp4">
<source src="./videos/video.ogg" type="video/ogg">
</video>
</body>
</html>
Things I have already tried:
- Adding the MIME type to .htaccess
- Re-encoding to make sure the MP4 are properly H264.
- video.js didn't help at all.
I have also tried just using 'File' > 'Open' and opened the MP4 locally on my machine using IE, and it plays just fine like that, so I think the video should be properly encoded and everything for IE.
For IE9 use meta tag something like
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>

Embed youtube video in canvas using mediaelement.js

I'm trying to embed youtube video in canvas using mediaelement.js according to this page. However, video is not loading, the control player is all black. Can anybody give me some hints? Here is my code, mostly follow the page (added html5=true to ensure html5 player from youtube):
EDIT: checked the demos under the github repo. Youtube demo is the only one that doesn't work. Guess it's an issue in this lib. However, any workaround would still be appreciated. The reason I want to do this is to feed the youtube stream to a html5 canvas.
<!DOCTYPE html>
<html>
<head>
<title>youtube in canvas</title>
<script src="jquery.js"></script>
<script src="mediaelement-and-player.js"></script>
<link rel="stylesheet" href="mediaelementplayer.css" />
</head>
<body>
<video width="640" height="360" id="player1" preload="none">
<source type="video/youtube" src="http://www.youtube.com/watch?v=nOEw9iiopwI&html5=true" />
</video>
<script>
jQuery(document).ready(function($) {
$('#player1').mediaelementplayer();
});
</script>
</body>
</html>

Categories