# Live Stream from S3

**URL:** https://community.wowza.com/t/live-stream-from-s3/46455
**Category:** Wowza Streaming Engine
**Created:** [January 12, 2016, 12:20am UTC](https://community.wowza.com/t/live-stream-from-s3/46455 "2016-01-12T00:20:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Harsha\_Sharma](https://avatars.discourse-cdn.com/v4/letter/h/46a35a/32.png) [@Harsha\_Sharma](https://community.wowza.com/u/Harsha_Sharma)
#### Post date: [January 12, 2016, 12:20am UTC](https://community.wowza.com/t/live-stream-from-s3/46455/1 "2016-01-12T00:20:25Z")

</div>

Hi,

Version: Wowza Streaming Engine Pro 4 for Amazon EC2 4.3.0

On the live application that comes by default, I have followed these links to setup the ModuleLoopUntilLive so that I can switch between Live stream and a server-side stream.

> **[Module examples for Wowza Streaming Engine](https://www.wowza.com/docs/wowza-streaming-engine-java-module-examples)**
>
> Utility modules to extend Wowza Streaming Engine applications.

> **[Loop a pre-roll until a live stream starts](https://www.wowza.com/docs/how-to-loop-a-pre-roll-until-a-live-stream-starts-loopuntillive)**
>
> Use the LoopUntilLive Wowza Streaming Engine Java module to configure a pre-roll video to play before a live stream starts and after it ends.

I am successfully able to switch between the sample.mp4 and the live stream (from my wowza ios app). I want to be able to stream an mp4 file from the s3 bucket instead of the local storage. I see similar forums on the wowza site that are trying to question the same issue, like this one:

> [@Play VOD file as a Live Stream from S3](http://community.wowza.com/t/-/36213):
>
> In summary, here’s what I need help with: Be able to play a VOD file as a live stream Be able to control the start and stop events of the VOD file playing on the live stream The file is hosted on Amazon S3 Ultimately, I want to be able to publish a live stream, then trigger a VOD file to play from Amazon S3 during the live event, all while recording them to a single file using the Live Stream Recording Module. Thanks.

But none seem answered yet. I have the mediacache plugin/addon enabled and have a sample vods3 app working successfully with s3. I also have configured the MediaCache randomAccessReaderClass Property in the /conf/live/Application.xml. Neither amazons3/bucketname/filename nor http/s3.amazonaws.com/dev-hhrmedia/test7.mp4 works.

Any help would be appreciated.

Best,

Harsha

---

<div class="post-metadata">

### Author: ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)
#### Post date: [January 14, 2016, 12:38am UTC](https://community.wowza.com/t/live-stream-from-s3/46455/2 "2016-01-14T00:38:54Z")

</div>

Hi,

The MediaReader randomAccessReaderClass Property should be (com.wowza.wms.mediacache.impl.MediaCacheRandomAccessReaderVODEdge)

You are best starting with an application created with the manager as a “Vod Edge” then,

configure this manually by editing the /conf/[app-name]/Application.xml in a text editor and

change the StreamType to “live”. Then configure the scheduler and loop-until-live lastly.

Daren

---

<div class="post-metadata">

### Author: ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)
#### Post date: [January 14, 2016, 4:57pm UTC](https://community.wowza.com/t/live-stream-from-s3/46455/3 "2016-01-14T16:57:31Z")

</div>

Hi,

You can also see my last reply from the forum thread you mentioned:

> [@Play VOD file as a Live Stream from S3](http://community.wowza.com/t/-/36213):
>
> In summary, here’s what I need help with: Be able to play a VOD file as a live stream Be able to control the start and stop events of the VOD file playing on the live stream The file is hosted on Amazon S3 Ultimately, I want to be able to publish a live stream, then trigger a VOD file to play from Amazon S3 during the live event, all while recording them to a single file using the Live Stream Recording Module. Thanks.

Zoran
