(function () {

  var bv = new Bideo();
  bv.init({
    // Video element
    videoEl: document.querySelector('#background_video'),
		
		voiceEl: document.querySelector('#background_voice'),

    // Container element
    container: document.querySelector('body'),

    // Resize
    resize: true,

    // autoplay: false,

    //isMobile: window.matchMedia('(max-width: 768px)').matches,

    playButton: document.querySelector('#play'),
    pauseButton: document.querySelector('#pause'),

    // Array of objects containing the src and type
    // of different video formats to add
    src: [
      {
        src: 'img/video1.mp4',
        type: 'video/mp4'
      },
    ],
		
		img: {
			on: {
				src: 'static/img/mute.png',
				title: '关闭'
			},
			off: {
				src: 'static/img/unmute.png',
				title: '打开'
			},
		},

    // What to do once video loads (initial frame)
    onLoad: function () {
      document.querySelector('#video_cover').style.display = 'none';
    }
		
  });
}());
