Results 1 to 2 of 2

Thread: HTTPStreamSession VOD problem

  1. #1

    Default HTTPStreamSession VOD problem

    Hello,

    I have the following problem:
    I want to allow the client to replay the VOD he just watched w/o creating a new httpStreamSession to the Wowza Media Server.
    I'm using the following html for testing on Mac OS X 10.x using Safari.

    <html>
    <script type="text/javascript">
    function replayFunction(e){
    var vid = document.getElementById('vid');
    vid.load();
    vid.pause();
    }
    </script>
    <body>
    <video id='vid' preload="automatic" autoplay="autoplay" width="640" height="360" controls="controls" onended="replayFunction()">
    <!-- Cupertino -->
    <source src="http://10.10.110.17:1935/vod/mp4:big_buck_bunny.mp4/playlist.m3u8"/>
    </video>
    </body>
    </html>
    This simple module lets me know each time a session is created:
    package com.wowza.wms.module;
    
    import com.wowza.wms.httpstreamer.model.IHTTPStreamerSession;
    import com.wowza.wms.module.ModuleBase;
    
    public class ModuleListHTTPSessions extends ModuleBase {
    
    	public void onHTTPSessionCreate(IHTTPStreamerSession httpSession) {
    		getLogger().info("[ModuleListHTTPSessions] HTTPSessionCreated! ");
    	}
    
    }
    After playing the video twice this is the log I get:

    #Version: 1.0
    #Start-Date: 2012-02-28 14:51:07 EET
    #Software: Wowza Media Server 3.0.4 build1127
    #Date: 2012-02-28
    #Fields: x-severity	x-category	x-event	date	time	c-client-id	c-ip	c-port	cs-bytes	sc-bytes	x-duration	x-sname	x-stream-id	x-spos	sc-stream-bytes	cs-stream-bytes	x-file-size	x-file-length	x-ctx	x-comment
    INFO	application	app-start	2012-02-28	14:51:07	-	-	-	-	-	7.665	-	-	-	-	-	-	-	_definst_	vod/_definst_
    INFO	cupertino	connect	2012-02-28	14:51:07	33901024	10.10.155.216	-	0	0	0.206	big_buck_bunny.mp4	-	0	-	-	-	-	33901024	-
    INFO	stream	create	2012-02-28	14:51:07	33901024	10.10.155.216	-	0	0	0.001	big_buck_bunny.mp4	1	0	0	0	-	-	big_buck_bunny.mp4	-
    INFO	server	comment	2012-02-28	14:51:07	-	-	-	-	-	0.211	-	-	-	-	-	-	-	-	[ModuleListHTTPSessions] HTTPSessionCreated! 
    INFO	server	comment	2012-02-28	14:51:07	-	-	-	-	-	0.223	-	-	-	-	-	-	-	-	MediaReaderH264Cupertino.indexFile[vod/_definst_/big_buck_bunny.mp4][mp4a.40.2]: AAC Audio info: {MediaCodecInfoAudio: codec:AAC, channels:2, frequency:22050, samplesPerFrame:1024, objectType:LC}
    INFO	server	comment	2012-02-28	14:51:07	-	-	-	-	-	0.226	-	-	-	-	-	-	-	-	MediaReaderH264Cupertino.indexFile[vod/_definst_/big_buck_bunny.mp4][avc1.66.30]: H.264 Video info: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:3.0, frameSize:640x360, displaySize:640x360, frameRate:0.000000}
    INFO	stream	play	2012-02-28	14:51:07	33901024	10.10.155.216	-	0	877	0.111	big_buck_bunny.mp4	1	10667	0	0	5510872	60.14	big_buck_bunny.mp4	-
    INFO	stream	stop	2012-02-28	14:51:44	33901024	10.10.155.216	-	0	5442729	37.459	big_buck_bunny.mp4	1	60140	5440908	0	5510872	60.14	big_buck_bunny.mp4	-
    INFO	stream	destroy	2012-02-28	14:51:44	33901024	10.10.155.216	-	0	5442729	37.461	big_buck_bunny.mp4	1	60140	5440908	0	5510872	60.14	big_buck_bunny.mp4	-
    INFO	cupertino	disconnect	2012-02-28	14:51:44	33901024	10.10.155.216	-	0	5442729	37.671	big_buck_bunny.mp4	-	60140	-	-	5510872	60.14	33901024	-
    INFO	cupertino	connect	2012-02-28	14:51:56	33901024	10.10.155.216	-	0	0	49.243	big_buck_bunny.mp4	-	0	-	-	-	-	33901024	-
    INFO	stream	create	2012-02-28	14:51:56	33901024	10.10.155.216	-	0	0	0.0	big_buck_bunny.mp4	2	0	0	0	-	-	big_buck_bunny.mp4	-
    INFO	server	comment	2012-02-28	14:51:56	-	-	-	-	-	49.246	-	-	-	-	-	-	-	-	[ModuleListHTTPSessions] HTTPSessionCreated! 
    INFO	server	comment	2012-02-28	14:51:56	-	-	-	-	-	49.253	-	-	-	-	-	-	-	-	MediaReaderH264Cupertino.indexFile[vod/_definst_/big_buck_bunny.mp4][mp4a.40.2]: AAC Audio info: {MediaCodecInfoAudio: codec:AAC, channels:2, frequency:22050, samplesPerFrame:1024, objectType:LC}
    INFO	server	comment	2012-02-28	14:51:56	-	-	-	-	-	49.256	-	-	-	-	-	-	-	-	MediaReaderH264Cupertino.indexFile[vod/_definst_/big_buck_bunny.mp4][avc1.66.30]: H.264 Video info: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:3.0, frameSize:640x360, displaySize:640x360, frameRate:0.000000}
    INFO	cupertino	connect	2012-02-28	14:52:08	1432170142	10.10.155.216	-	0	0	61.546	big_buck_bunny.mp4	-	0	-	-	-	-	1432170142	-
    INFO	stream	create	2012-02-28	14:52:08	1432170142	10.10.155.216	-	0	0	0.0	big_buck_bunny.mp4	3	0	0	0	-	-	big_buck_bunny.mp4	-
    INFO	server	comment	2012-02-28	14:52:08	-	-	-	-	-	61.549	-	-	-	-	-	-	-	-	[ModuleListHTTPSessions] HTTPSessionCreated! 
    INFO	server	comment	2012-02-28	14:52:08	-	-	-	-	-	61.555	-	-	-	-	-	-	-	-	MediaReaderH264Cupertino.indexFile[vod/_definst_/big_buck_bunny.mp4][mp4a.40.2]: AAC Audio info: {MediaCodecInfoAudio: codec:AAC, channels:2, frequency:22050, samplesPerFrame:1024, objectType:LC}
    INFO	server	comment	2012-02-28	14:52:08	-	-	-	-	-	61.558	-	-	-	-	-	-	-	-	MediaReaderH264Cupertino.indexFile[vod/_definst_/big_buck_bunny.mp4][avc1.66.30]: H.264 Video info: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:3.0, frameSize:640x360, displaySize:640x360, frameRate:0.000000}
    INFO	stream	play	2012-02-28	14:52:08	1432170142	10.10.155.216	-	0	891	0.066	big_buck_bunny.mp4	3	10667	0	0	5510872	60.14	big_buck_bunny.mp4	-
    INFO	stream	destroy	2012-02-28	14:52:30	33901024	10.10.155.216	-	0	543	34.424	big_buck_bunny.mp4	2	0	0	0	5510872	60.14	big_buck_bunny.mp4	-
    INFO	cupertino	disconnect	2012-02-28	14:52:30	33901024	10.10.155.216	-	0	543	83.669	big_buck_bunny.mp4	-	0	-	-	5510872	60.14	33901024	-
    INFO	stream	stop	2012-02-28	14:52:52	1432170142	10.10.155.216	-	0	5442743	43.624	big_buck_bunny.mp4	3	60140	5440908	0	5510872	60.14	big_buck_bunny.mp4	-
    INFO	stream	destroy	2012-02-28	14:52:52	1432170142	10.10.155.216	-	0	5442743	43.625	big_buck_bunny.mp4	3	60140	5440908	0	5510872	60.14	big_buck_bunny.mp4	-
    INFO	cupertino	disconnect	2012-02-28	14:52:52	1432170142	10.10.155.216	-	0	5442743	105.174	big_buck_bunny.mp4	-	60140	-	-	5510872	60.14	1432170142	-
    INFO	cupertino	connect	2012-02-28	14:52:57	1432170142	10.10.155.216	-	0	0	110.575	big_buck_bunny.mp4	-	0	-	-	-	-	1432170142	-
    INFO	stream	create	2012-02-28	14:52:57	1432170142	10.10.155.216	-	0	0	0.0	big_buck_bunny.mp4	4	0	0	0	-	-	big_buck_bunny.mp4	-
    INFO	server	comment	2012-02-28	14:52:57	-	-	-	-	-	110.577	-	-	-	-	-	-	-	-	[ModuleListHTTPSessions] HTTPSessionCreated! 
    INFO	server	comment	2012-02-28	14:52:57	-	-	-	-	-	110.584	-	-	-	-	-	-	-	-	MediaReaderH264Cupertino.indexFile[vod/_definst_/big_buck_bunny.mp4][mp4a.40.2]: AAC Audio info: {MediaCodecInfoAudio: codec:AAC, channels:2, frequency:22050, samplesPerFrame:1024, objectType:LC}
    INFO	server	comment	2012-02-28	14:52:57	-	-	-	-	-	110.587	-	-	-	-	-	-	-	-	MediaReaderH264Cupertino.indexFile[vod/_definst_/big_buck_bunny.mp4][avc1.66.30]: H.264 Video info: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:3.0, frameSize:640x360, displaySize:640x360, frameRate:0.000000}
    INFO	cupertino	connect	2012-02-28	14:53:17	577582700	10.10.155.216	-	0	0	130.775	big_buck_bunny.mp4	-	0	-	-	-	-	577582700	-
    INFO	stream	create	2012-02-28	14:53:17	577582700	10.10.155.216	-	0	0	0.0	big_buck_bunny.mp4	5	0	0	0	-	-	big_buck_bunny.mp4	-
    INFO	server	comment	2012-02-28	14:53:17	-	-	-	-	-	130.778	-	-	-	-	-	-	-	-	[ModuleListHTTPSessions] HTTPSessionCreated! 
    INFO	server	comment	2012-02-28	14:53:17	-	-	-	-	-	130.784	-	-	-	-	-	-	-	-	MediaReaderH264Cupertino.indexFile[vod/_definst_/big_buck_bunny.mp4][mp4a.40.2]: AAC Audio info: {MediaCodecInfoAudio: codec:AAC, channels:2, frequency:22050, samplesPerFrame:1024, objectType:LC}
    INFO	server	comment	2012-02-28	14:53:17	-	-	-	-	-	130.786	-	-	-	-	-	-	-	-	MediaReaderH264Cupertino.indexFile[vod/_definst_/big_buck_bunny.mp4][avc1.66.30]: H.264 Video info: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:3.0, frameSize:640x360, displaySize:640x360, frameRate:0.000000}
    INFO	stream	play	2012-02-28	14:53:17	577582700	10.10.155.216	-	0	884	0.064	big_buck_bunny.mp4	5	10667	0	0	5510872	60.14	big_buck_bunny.mp4	-
    INFO	stream	destroy	2012-02-28	14:53:32	1432170142	10.10.155.216	-	0	555	34.595	big_buck_bunny.mp4	4	0	0	0	5510872	60.14	big_buck_bunny.mp4	-
    INFO	cupertino	disconnect	2012-02-28	14:53:32	1432170142	10.10.155.216	-	0	555	145.173	big_buck_bunny.mp4	-	0	-	-	5510872	60.14	1432170142	-
    INFO	stream	stop	2012-02-28	14:53:54	577582700	10.10.155.216	-	0	4798491	36.396	big_buck_bunny.mp4	5	53333	4796820	0	5510872	60.14	big_buck_bunny.mp4	-
    INFO	stream	destroy	2012-02-28	14:53:54	577582700	10.10.155.216	-	0	4798491	36.397	big_buck_bunny.mp4	5	53333	4796820	0	5510872	60.14	big_buck_bunny.mp4	-
    INFO	cupertino	disconnect	2012-02-28	14:53:54	577582700	10.10.155.216	-	0	4798491	167.175	big_buck_bunny.mp4	-	53333	-	-	5510872	60.14	577582700	-
    INFO	application	app-stop	2012-02-28	14:54:54	-	-	-	-	-	235.182	-	-	-	-	-	-	-	_definst_	vod/_definst_

  2. #2
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    There is not a way to do that exactly, but you can use this method to tie session together:

    http://www.wowza.com/forums/content....aming-by-users

    Richard

Similar Threads

  1. Android VOD problem
    By sam.shm in forum Video On Demand Streaming Discussion
    Replies: 5
    Last Post: 06-30-2013, 06:56 AM
  2. VOD Playlist Problem
    By aryservices in forum Video On Demand Streaming Discussion
    Replies: 1
    Last Post: 06-28-2013, 05:52 AM
  3. having problem in vod file
    By sktniran in forum General Forum
    Replies: 2
    Last Post: 06-03-2013, 05:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •