-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Player live stream work only browser Chrome #34
Comments
@floriano12 In order for this clappr plugin to work, your browsers must have Flash installed. Google Chrome has a built-in version of Flash. Other than that, I can't think of any other reasons for this plugin not to work in other browsers. As for google analytics, please check this plugin: https://github.com/clappr/clappr#google-analytics-plugin |
@gfronza, this code I use for live stream, but don't work in: IE, Safari and Mozilla! or how can put in this code current time ? this is my script:
Thank you for any help ! |
@floriano12 This project is only a plugin to enable RTMP playback on Clappr player. Seems like you are trying to play a HLS stream (.m3u8), this plugin cannot playback this sort of stream. Clappr has native support for HLS as well as external plugins (FlashHLS for instance). You can get a better support asking this question directly on https://github.com/clappr/clappr, ok? |
ok, thanks @gfronza ! But a player for RTMP you can show me please (code script) ? Thanks again! |
@floriano12 RTMP requires Flash Player, which is not available on mobile devices. Your way to go is indeed HLS like you're doing. First, you need to make sure your live stream source is working. One easy way to check that is to paste your stream URL directly in Safari (for Mac ou iOS). Safari can play HLS natively. After ensuring the stream is valid, you can use it in Clappr easily. <head>
<script type="text/javascript" src="http://cdn.clappr.io/latest/clappr.min.js"></script>
</head>
<body>
<div id="player"></div>
<script>
var player = new Clappr.Player({source: "http://your.video/index.m3u8", parentId: "#player"});
</script>
</body> |
@gfronza thank you for help! I want to use claprr for RTMP, you can show me a code script player ? Thanks! |
Hello,
my player live stream work only in google chrome, is possible I mistake?
Another question: is possible add current time and google analytics for this player ?
<script type="text/javascript" src="player_1/dist/clappr.min.js"></script> <script> var MyPlayer = Clappr.UIContainerPlugin.extend({ bindEvents() { this.listenTo(this.container, Clappr.Events.CONTAINER_PLAY, this.render) }, render: function() { this.$el.html('') this.$el.css('font-size', '15px') this.$el.css('color', 'red') this.$el.css('background-color', 'white') this.$el.css('position', 'relative') this.container.$el.append(this.$el) return this } }); var player = new Clappr.Player({ source: "//index.m3u8", parentId: '#player', autoPlay: true, hideMediaControl: true, width: 535, height: 428, debug: true, poster: "templates/assets/images/img.png", plugins: {container: [MyPlayer]}, mediacontrol: {seekbar: "#E113D3", buttons: "#66B2FF"} }); </script>Thanks for any help!
The text was updated successfully, but these errors were encountered: