*hello*
]]>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>
]]>