what is the mimeType used for the videos?
rajmylav opened this issue · comments
rajmylav commented
what is the mimeType used for the videos?
phunkyfish commented
That would depend on the source. If it’s live a TS (mpegts) stream the type is video/mp2t
.
rajmylav commented
Do you know which web video player supports video/mp2t
phunkyfish commented
All of them
rajmylav commented
ok let me be more specific,
I am trying to stream video
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Video.js Sandbox</title>
<link href="//vjs.zencdn.net/7.10.2/video-js.min.css" target="_blank" rel="nofollow" rel="stylesheet">
<script src="//vjs.zencdn.net/7.10.2/video.min.js"></script>
</head>
<body>
<div style="background-color:#eee; border: 1px solid #777; padding: 10px; margin-bottom: 20px; font-size: .8em; line-height: 1.5em; font-family: Verdana, sans-serif;">
<p>You can use /sandbox/ for writing and testing your own code. Nothing in /sandbox/ will get checked into the repo, except files that end in .example (so don't edit or add those files). To get started make a copy of index.html.example and rename it to index.html.</p>
<pre>cp sandbox/index.html.example sandbox/index.html</pre>
<pre>npm run start</pre>
<pre>open http://localhost:9999/sandbox/index.html</pre>
</div>
<video-js
id="vid1"
controls
preload="auto"
width="640"
height="264">
<source src="http://m2.websecureme.net:80/1QzXhQcuQZJ4vYC/CXjsAuUIN2/102475" >
<p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
</video-js>
<script>
var options = {};
var player = videojs('vid1', options, function onPlayerReady() {
videojs.log('Your player is ready!');
// In this context, `this` is the player that was created by Video.js.
this.play();
// How about an event listener?
this.on('ended', function() {
videojs.log('Awww...over so soon?!');
});
});
</script>
</body>
</html>
It's playing fine on vlc and stalker client but not on web browser
phunkyfish commented
Why would you open an issue here for that?
This addon is for the kodi media player.