Skip to content

Sample Configurations

shbatm edited this page Aug 10, 2017 · 2 revisions

Sample Configurations for the MMM-RSTPStream Module

Single Video Window, Single Camera, Local Playback Only

{
module: 'MMM-RTSPStream',
position: 'middle_center',
config: {
    autoStart: true,
    moduleWidth: 354,
    moduleHeight: 240,
    localPlayer: 'omxplayer',     
    stream1: {
        name: 'BigBuckBunny Test Stream',
        url: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',
        snapshotUrl: '',
        snapshotRefresh: 10, // Seconds
        frameRate: "30",
        port: 9999,
    }
}
}

Single Video Window, Multiple Cameras on a Loop, Local Playback Only

{
module: 'MMM-RTSPStream',
position: 'middle_center',
config: {
    autoStart: true,
    rotateStreams: true,
    rotateStreamTimeout: 10,
    showSnapWhenPaused: false,
    moduleWidth: 354,
    moduleHeight: 240,
    localPlayer: 'omxplayer',     
    stream1: {
        name: 'BigBuckBunny Test Stream',
        url: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',
        snapshotUrl: '',
        snapshotRefresh: 10, // Seconds
        frameRate: "30",
        port: 9999,
    }
    stream2: {
        name: 'BigBuckBunny Test Stream 2',
        url: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',
        snapshotUrl: '',
        snapshotRefresh: 10, // Seconds
        frameRate: "30",
        port: 10000,
    }
}
}

Multiple camera windows, Local Playback Only

{
module: 'MMM-RTSPStream',
position: 'middle_center',
config: {
    autoStart: true,
    rotateStreams: false,
    showSnapWhenPaused: false,
    moduleWidth: 728,
    moduleHeight: 240,
    localPlayer: 'omxplayer',     
    stream1: {
        name: 'BigBuckBunny Test Stream',
        url: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',
        snapshotUrl: '',
        snapshotRefresh: 10, // Seconds
        frameRate: "30",
        port: 9999,
    }
    stream2: {
        name: 'BigBuckBunny Test Stream 2',
        url: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',
        snapshotUrl: '',
        snapshotRefresh: 10, // Seconds
        frameRate: "30",
        port: 10000,
    }
}
}

More coming soon...