I am looking for a way to stream video using rtmp. I am using video-js but it does not work. Firebug returns an error:
L'attribut « type » spécifié sur « video/flash » n'est pas géré. Le chargement de la ressource média rtmp://server.com/vod/mp4:foo/bar/my_video.mp4 a échoué. VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for this video. MediaError { code=4, message="No compatible source was found for this video."
HTML code:
<!doctype html> <html lang="fr" class="no-js"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <link rel="stylesheet" href="css/reset.css"> <link rel="stylesheet" href="css/video-js.css"> <link rel="stylesheet" href="css/style.css"> <script src="js/modernizr.js"></script> <title>Title</title> </head> <body class="sous-menu"> <video id="example_video_1" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="auto" width="640" height="264" data-setup='{"techOrder": ["flash", "html5"]}'> <source src="rtmp://server.com/vod/mp4:foo/bar/my_video.mp4" type='rtmp/mp4' /> </video> <script src="js/jquery-2.1.4.min.js"></script> <script src="js/video-js.js"></script> </body> </html>
What am I doing wrong?
Edit: I am adding type='rtmp/mp4' , but it still does not work ... Test in FF, Chrome and IE11. Tried the link in VLC and it works.
source share