Open gabrielirdeb opened 8 years ago
I put this code but does not works as well:
(function(){ var user = detect.parse(navigator.userAgent);
// var v_player = $('#v_player'); // v_player.attr('width', v_width); // v_player.attr('height', v_height); // v_player.append('<source src="'+ v_url +'" type="application/x-mpegURL">'); if(user.os.family === 'Android') { var player = new Clappr.Player({source: v_url, parentId: "#player"}); } else { var player = new Clappr.Player({ sources: [ 'rtmp://stream2.ba.gov.br/livepkgr/pgm-1?adbe-live-event=irdeb', 'rtmp://stream2.ba.gov.br/livepkgr/pgm-2?adbe-live-event=irdeb', 'rtmp://stream2.ba.gov.br/livepkgr/pgm-3?adbe-live-event=irdeb' ], parentId: "#player", plugins: { 'core': [LevelSelector], 'playback': [RTMP], },
width: 700, height: 450, rtmpConfig: { swfPath: '//cdn.jsdelivr.net/clappr.rtmp/latest/assets/RTMP.swf', scaling:'stretch', playbackType: 'live', bufferTime: 1, startLevel: 0, }, }); } $('#family').html(user.os.family); $('#major').html(user.os.major); })();
The video plays as well but do not show the options of quality.
Hi @gabrielirdeb this plugins relies on each playback therefore you don't need to specify each source for it, we're planing to add this kind of support soon.
I put this code but does not works as well:
(function(){ var user = detect.parse(navigator.userAgent);
width: 700, height: 450, rtmpConfig: { swfPath: '//cdn.jsdelivr.net/clappr.rtmp/latest/assets/RTMP.swf', scaling:'stretch', playbackType: 'live', bufferTime: 1, startLevel: 0, }, }); } $('#family').html(user.os.family); $('#major').html(user.os.major); })();
The video plays as well but do not show the options of quality.