- Использовать лицензионный проигрыватель JW
- Использовать проигрыватель Flash, резервный вариант HTML5
- Я также хотел бы предоставить альтернативные форматы файлов для резервного варианта HTML5 (ogg, webm)
- Использовать метод потоковой передачи RTMP для доставки видео через Cloudfront
http://coachesmarketingcenter.com/test_ ... ndex3.html
Вот код для встраивания, который я сейчас использую:
Test New Videos
jwplayer("container1").setup({
file: "TestNewVideos/MyNewVideo.mp4",
provider: "rtmp",
streamer: "rtmp://s2cr83yb7q2jav.cloudfront.net/cfx/st",
width: 640,
height: 480,
modes: [{
type: "flash",
src: "http://coachesmarketingcenter.com/test_ ... player.swf"
},{
type: "html5",
config: {
file: "http://dn9lu4lqda9r4.cloudfront.net/Tes ... wVideo.mp4",
provider: "video"
}
levels: [
{ file: "http://dn9lu4lqda9r4.cloudfront.net/Tes ... wVideo.mp4" }, // H.264 version
{ file: "http://dn9lu4lqda9r4.cloudfront.net/Tes ... wVideo.ogg" }, // Ogg Theora version
]
});
Подробнее здесь: https://stackoverflow.com/questions/726 ... 5-fallback