Streaming Video using 3.8

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

Streaming Video using 3.8

Postby marksoccer105 » Tue Nov 03, 2009 1:22 am

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.
marksoccer105
 
Posts: 5
Joined: Sat Apr 18, 2009 4:01 am

Postby deejay2302 » Mon Dec 07, 2009 6:48 am

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. :?: :?: :?:
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 163
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany

Postby marksoccer105 » Tue Dec 08, 2009 8:04 am

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.
marksoccer105
 
Posts: 5
Joined: Sat Apr 18, 2009 4:01 am

Postby deejay2302 » Fri Dec 25, 2009 5:05 am

Same Faiilure. Does not work. I dont see a Player to toggle fullscreen^^

A step by step guide would be good. :roll:
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 163
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany

Postby edawg » Sat Dec 26, 2009 10:16 pm

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.
edawg
 
Posts: 3
Joined: Tue Jul 07, 2009 1:11 am

Postby Mohican » Mon Dec 28, 2009 11:46 am

I wrote it all down, step-by-step, for you here:

http://forum.subsonic.org/forum/viewtop ... =8136#8136
User avatar
Mohican
 
Posts: 8
Joined: Mon Dec 28, 2009 11:04 am
Location: Wales, UK

Postby deejay2302 » Thu Jan 07, 2010 1:56 am

Thanks for that ;)
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 163
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany

ubuntu

Postby rhodes3581 » Sun Jan 10, 2010 2:19 am

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
rhodes3581
 
Posts: 25
Joined: Wed Sep 09, 2009 7:24 pm

Postby deejay2302 » Wed Mar 10, 2010 3:14 am

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.
21.681 Artists
58.141 Albums
674.091 Songs
5072,14 GB (~ 49.341 Hours)
User avatar
deejay2302
 
Posts: 163
Joined: Tue Oct 06, 2009 5:36 pm
Location: Germany

hello

Postby juliamat » Fri Apr 16, 2010 7:57 am

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…
juliamat
 
Posts: 1
Joined: Fri Apr 16, 2010 7:48 am


Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 3 guests