RTMP stream not playing
-
On updating the WordPress to 4.9.2, I cannot play rtmp stream through my custom plugin even after installing mediaelemnt flash fallback plugin.
This is the source I have included in my plugin
<video id="wpws-video-player-mep"> <source type="video/<?php echo $type ?>" src="<?php echo $type == 'youtube' ? 'https://www.youtube.com/watch?v=' . $url.'&rel=0&showinfo=0' : urldecode($url) ?>"> </video> <script> jQuery(function ($) { $('#wpws-video-player-mep').mediaelementplayer({ pluginPath: '<?php echo site_url(); ?>/wp-includes/js/mediaelement/', classPrefix: 'mejs-', isClickable: false, enableAutosize: true, stretching: 'responsive', enablePseudoStreaming: true, loop: false, autoRewind: false, enableKeyboard: false, features: ['playpause', 'volume'], success: function (mediaElement, domObject) { <?php if ($autoplay == 1) { ?> mediaElement.play(); <?php } ?> }, }); }); </script>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘RTMP stream not playing’ is closed to new replies.