# How to insert live stream in schedule

**URL:** <https://community.wowza.com/t/how-to-insert-live-stream-in-schedule/51952>\
**Category:** Wowza Streaming Engine\
**Created:** [September 17, 2018, 3:37pm UTC](https://community.wowza.com/t/how-to-insert-live-stream-in-schedule/51952 "2018-09-17T15:37:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxim\_Avdeev](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Maxim\_Avdeev](https://community.wowza.com/u/Maxim_Avdeev)\
**Post date:** [September 17, 2018, 3:37pm UTC](https://community.wowza.com/t/how-to-insert-live-stream-in-schedule/51952/1 "2018-09-17T15:37:08Z")

</div>

Hi,

I have a problem with schedule live stream with StreamPublisher. I success with scheduled mp4 file, but then I try to schedule live stream - live stream for some reason is skipped

access.log

```auto
2018-09-17	13:43:36	MSK	comment	server	INFO	200	-	ServerListenerStreamPublisher PlayList Item Start: mp4:iowa.mp4	_defaultVHost_	-	-6740.78	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	--	-	-	-
2018-09-17	13:43:46	MSK	comment	server	INFO	200	-	Stream.switch[TestLive/_definst_/MyStream]: index: 0 name:mp4:iowa.mp4 start:0 length:10 interItemGap(a/v/c/u):24/40/0/40	_defaultVHost_	-	-	6750.809	-	-	-	-	-	-	-	-	-	-	--	-	-	-	-	-	-	-	-	-	-	-	-	-
2018-09-17	13:43:46	MSK	comment	server	INFO	200	-	ServerListenerStreamPublisher PlayList Item Start: mp4:iowa.mp4	_defaultVHost_	-	-6750.813	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	--	-	-	-	-
2018-09-17	13:43:56	MSK	comment	server	INFO	200	-	Stream.switch[TestLive/_definst_/MyStream]: index: 0 name:mp4:iowa.mp4 start:0 length:10 interItemGap(a/v/c/u):24/40/0/40	_defaultVHost_	-	-	6760.885	-	-	-	-	-	-	-	-	-	-	--	-	-	-	-	-	-	-	-	-	-	-	-	-
2018-09-17	13:43:56	MSK	comment	server	INFO	200	-	ServerListenerStreamPublisher PlayList Item Start: mp4:iowa.mp4	_defaultVHost_	-	-6760.89	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	--	-	-	-
2018-09-17	13:44:06	MSK	comment	server	INFO	200	-	Stream.switch[TestLive/_definst_/MyStream]: index: 0 name:mp4:iowa.mp4 start:0 length:10 interItemGap(a/v/c/u):24/40/0/40	_defaultVHost_	-	-	6770.912	-	-	-	-	-	-	-	-	-	-	--	-	-	-	-	-	-	-	-	-	-	-	-	-
2018-09-17	13:44:06	MSK	comment	server	INFO	200	-	ServerListenerStreamPublisher PlayList Item Start: mp4:iowa.mp4	_defaultVHost_	-	-6770.914	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	-	

```

Contents of the Smil file.

```auto
<?xml version="1.0" encoding="UTF-8"?>
                <smil>
                    <head>
                    </head>
                    <body>
               		 
			    <stream name="MyStream"></stream>
			<playlist name="pl1" playOnStream="MyStream" repeat="true" scheduled="2018-08-15 11:56:20">
				 <video src="conf.stream" start="-2" length="-1"/> 
			 	 <!--<video src="mp4:iowa.mp4" start="0" length="10"/>-->
			 </playlist>
			 <playlist name="pl2" playOnStream="MyStream" repeat="true" scheduled="2018-08-15 11:56:25">
            			<video src="mp4:iowa.mp4" start="0" length="10"/>
        		</playlist>

                    </body>
                </smil>

```

The link I use to play the video in the wowza player

```auto
http://172.16.5.28:1935/TestLive/MyStream/playlist.m3u8

```

contents of the conf.stream

```auto
http://172.16.5.28:1935/TestLive/Stream/playlist.m3u8

```

If connect this file in the stream files section , then it will appear in the error logs

```auto
.onPlaylist[TestLive/Stream/playlist.m3u8]: Invalid session
ERROR	server	comment	2018-09-17	14:09:48	-	-	-	-	-	8313.246	-	-	-	-	-	-	-	-	HTTPUtils.HTTPRequestToByteArray : java.io.IOException: Server returned HTTP response code: 403 for URL: http://172.16.5.28:1935/TestLive/Stream/playlist.m3u8|at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)|at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)|at com.wowza.util.HTTPUtils.HTTPRequestToByteArray(HTTPUtils.java:182)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:423)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:205)|
WARN	server	comment	2018-09-17	14:09:48	-	-	-	-	-	8313.246	-	-	-	-	-	-	-	-	RTPSessionDescriptionDataProviderBasic.getStreamInfo: HTTPRequest: return: null
WARN	server	comment	2018-09-17	14:09:51	-	-	-	-	-	2229.053	-	-	-	-	-	-	-	-	HTTPStreamerAdapterCupertinoStreamer.onPlaylist[TestLive/Stream/playlist.m3u8]: Invalid session
ERROR	server	comment	2018-09-17	14:09:51	-	-	-	-	-	8316.25	-	-	-	-	-	-	-	-	HTTPUtils.HTTPRequestToByteArray : java.io.IOException: Server returned HTTP response code: 403 for URL: http://172.16.5.28:1935/TestLive/Stream/playlist.m3u8|at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)|at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)|at com.wowza.util.HTTPUtils.HTTPRequestToByteArray(HTTPUtils.java:182)|at com.wowza.wms.mediacaster.rtp.RTPSessionDescriptionDataProviderBasic.getSessionDescriptionData(RTPSessionDescriptionDataProviderBasic.java:423)|at com.wowza.wms.mediacaster.rtp.RTPMediaCaster.getStreamInfo(RTPMediaCaster.java:205)|
WARN	server	comment	2018-09-17	14:09:51	-	-	-	-	-	8316.25	-	-	-	-	-	-	-	-	RTPSessionDescriptionDataProviderBasic.getStreamInfo: HTTPRequest: return: null

```

Please, help me.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [September 17, 2018, 4:54pm UTC](https://community.wowza.com/t/how-to-insert-live-stream-in-schedule/51952/2 "2018-09-17T16:54:56Z")

</div>

Thank you for providing all the code samples @Maxim Avdeev. The engineers will need to test and track your issue through a support ticket. Will you kindly submit one and we can run some tests.

**[https://www.wowza.com/support/open-ticket](https://www.wowza.com/support/open-ticket)**
