Page 1 of 1

Streaming Video using 3.8

PostPosted: Tue Nov 03, 2009 1:22 am
by marksoccer105
If you are like me, you have been holding off on upgrading to the latest Subsonic because you couldn't figure out how to get videos to stream in 3.8. After looking all over the place, I figured out that I could use all of my 3.7 settings, upgrade to 3.8 and then modify "./subsonic/WEB-INF/jsp/playlist.jsp" to allow video streams. The problem appears to have been with a recent change in jwplayer where the stream type must be specified as sound or video. Currently subsonic 3.8 sets all streams to sound. To allow videos to stream correctly, modify the skip method from:

Code: Select all
    function skip(index) {
        if (index < 0 || index >= songs.length) {
            return;
        }

        var song = songs[index];
        currentStreamUrl = song.streamUrl;
        updateCurrentImage();
        var list = new Array();

        list[0] = {
            duration:song.duration,
            file:song.streamUrl,
            title:song.title,
            type:"sound"
        };

        player.sendEvent("LOAD", list);
        player.sendEvent("PLAY");
    }

to this:
Code: Select all
    function skip(index) {
        if (index < 0 || index >= songs.length) {
            return;
        }

        var song = songs[index];
        currentStreamUrl = song.streamUrl;
        updateCurrentImage();
        var list = new Array();

        list[0] = {
            duration:song.duration,
            file:song.streamUrl,
            title:song.title,
            type:"sound"
        };

        if( song.format=="mp4" || song.format=="flv" ){
            list[0]["type"]="video";
        }

        player.sendEvent("LOAD", list);
        player.sendEvent("PLAY");
    }

This allows mp4's and flv's to stream correctly with the latest jwplayer and latest subsonic release.

PostPosted: Mon Dec 07, 2009 6:48 am
by deejay2302
That does not work with Podcast !? I have Podcasts in MP4 format and i dont see a Videoplayer. I hear sound only :(

Why does not work?
I've done everything exactly according to your instructions. :?: :?: :?:

PostPosted: Tue Dec 08, 2009 8:04 am
by marksoccer105
If you right click the player and click "Toggle Fullscreen...", you should see it. If you get a black full screen, hit the stop button and then hit the play button again (while remaining in full screen). This seems to be a problem with jwplayer not initializing video correctly at small sizes. A more permanent fix is to increase the height of the player.

PostPosted: Fri Dec 25, 2009 5:05 am
by deejay2302
Same Faiilure. Does not work. I dont see a Player to toggle fullscreen^^

A step by step guide would be good. :roll:

PostPosted: Sat Dec 26, 2009 10:16 pm
by edawg
I am totally for a step by step guide especially for windows. I have the video window with the spinning status indicator with numbers counting up but nothing happens. I am so stoked about this but I think it could be much easier to implement.

PostPosted: Mon Dec 28, 2009 11:46 am
by Mohican
I wrote it all down, step-by-step, for you here:

http://forum.subsonic.org/forum/viewtop ... =8136#8136

PostPosted: Thu Jan 07, 2010 1:56 am
by deejay2302
Thanks for that ;)

ubuntu

PostPosted: Sun Jan 10, 2010 2:19 am
by rhodes3581
Which playlist.jsp file are we supposed to modify on ubuntu. I have several.

/var/subsonic/jetty/1064/webapp/WEB-INF/jsp/playlist.jsp
/var/subsonic/jetty/1064/webapp/WEB-INF/jsp/wap/playlist.jsp
/var/subsonic/jetty/1130/webapp/WEB-INF/jsp/playlist.jsp
/var/subsonic/jetty/1130/webapp/WEB-INF/jsp/wap/playlist.jsp
/var/subsonic/jetty/webapp/WEB-INF/jsp/playlist.jsp
/var/subsonic/jetty/webapp/WEB-INF/jsp/wap/playlist.jsp
/var/subsonic/jetty_/webapp/WEB-INF/jsp/playlist.jsp
/var/subsonic/jetty_/webapp/WEB-INF/jsp/wap/playlist.jsp

PostPosted: Wed Mar 10, 2010 3:14 am
by deejay2302
In Windows u modify the playlist.jsp file from "subsonic.war" U must extract subsonic.war with Zip-program (Winrar etc.) I think there will be no different with Linux.

Then go to folder: "WEB-INF/jsp/playlist.jsp"

Modify and zip back.

hello

PostPosted: Fri Apr 16, 2010 7:57 am
by juliamat
julia here The February issue of PC Magazine (BE and NL editions) features our very own ReadyNAS Pro on its front cover. For those who are not privy to the magazine, it said: “The bullish specs and the proprietary X-RAID-2 system, comparable to RAID 5, create outstanding test results…