It is possible to use the Wowza Media Server in HWDMediaShare using any video player which supports RTMP streaming. However, iOS devices don't support Flash and therefore can not display RTMP streams. We frequently get asked about how to use the JW Player in HWDMediaShare using the Wowza Media Server whilst offering a HTML5 fallback mechanism for iOS devices.

The JW Player supports this in both version 5 and version 6 of their excellent media player.

Wowza provides documentation on how to achieve this for both version 5 and version 6. Below we discuss how to apply this to our own Hwd Jw Player plugin.

JW Player version 5

Edit the file at this location:

/plugins/content/hwdjwplayer/hwdjwplayer.php

Search for the following code (line 242 in the current version)

        { 'type': 'html5' }

Replace with this:

        { 'type': 'html5'
<?php if ($this->config->get('provider') == "rtmp") : ?>
, config:
{
'file': "http://[wowza-address]:1935/vod/mp4:<?php echo $this->config->get('file'); ?>/playlist.m3u8",
'provider': 'video'
}
<?php endif; ?>
        }

You then just need to replace [wowza-address] with your own Wowza Media Server domain.

JW Player version 6

Edit the file at this location:

/plugins/content/hwdjwplayer/hwdjwplayer.php

Search for the following code (line 156 in the current version)

    'sources': [
        { 'file': '<?php echo $file; ?>' }, // RTMP
        { 'file': 'http://[wowza-address]:1935/vod/mp4:<?php echo $this->config->get('file'); ?>', type: 'mp4', label: 'HD MP4' } // MP4
    ],
'primary': 'flash'

You then just need to replace [wowza-address] with your own Wowza Media Server domain.

Live streaming & transcoding

http://www.wowza.com/addons/wowza-transcoder-addon

Login to view documentation

Sorry, the full article is visible to subscribers only.

Login   Subscribe