Page 1 of 1

Need to create multiple options for shared video size

PostPosted: Tue Oct 23, 2012 9:38 pm
by Sicundercover
I have had next to no problems with Subsonic and over the last year of using it this is the first time Ive had to post.

When it comes to music or the phone app I have had zero issues. However when it comes to video things get a little off.

The primary issue I'm having is when I share a video. When I provide someone with a link it only gives them the option of a very small video or full screen. Is there anyway I can either give people the ability to change the size of the player, or increase the default player size when opened by a link in a browser?

The other issue is smaller but if anyone knows it off the top of their head I would appreciate it. When setting up users if you choose to limit bandwidth it caps at 320, I know this was created for audio but I don't really want to cap people remotely at 320 when watching video. Anyway I can cap remote video viewing to 1000 by user?

Re: Need to create multiple options for shared video size

PostPosted: Wed Oct 24, 2012 5:18 pm
by nutt318
That setting for the bandwidth cap does not affect video playback.

Re: Need to create multiple options for shared video size

PostPosted: Wed Oct 24, 2012 5:26 pm
by Sicundercover
OK thats good to know.

Where can I set the default streaming bandwidth for shared video; is it something i have to add to the transcode settings?

Re: Need to create multiple options for shared video size

PostPosted: Wed Oct 24, 2012 5:29 pm
by nutt318
For that youre going to need to edit a .jsp file.

Check out this thread.

viewtopic.php?f=2&t=10066&p=44729&hilit=video+bitrate#p44729

Re: Need to create multiple options for shared video size

PostPosted: Wed Oct 24, 2012 6:35 pm
by Sicundercover
Thank you Ill look in to it.

Re: Need to create multiple options for shared video size

PostPosted: Wed Nov 07, 2012 12:08 am
by Sicundercover
So after looking deeper into this and changing information, it only affects the played for when youre actually logged in.

However what Im attempting to alter is the Video player for when a Video is shared. In my opinion the default size is far to small and the location of the list of videos in the shared folder are directly below.

Most importantly Im looking to make that default player larger, the locations of the shared videos Im sure I can figure out once I know which file is handling that information.

Re: Need to create multiple options for shared video size

PostPosted: Thu Nov 08, 2012 11:00 pm
by Sicundercover
When I view the source of the shared page I can see this,

Code: Select all
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="/script/pngfix.js"></script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">


<link rel="stylesheet" href="/style/slick.css" type="text/css">
<link rel="shortcut icon" href="/icons/slick/favicon.ico" type="text/css">
<title>Subsonic</title>

    <script type="text/javascript" src="/script/swfobject.js"></script>
    <script type="text/javascript" src="/script/prototype.js"></script>

   

    <meta name="og:title" content="Comedy &mdash; Tosh.0"/>
    <meta name="og:type" content="album"/>
    <meta name="og:image" content="http://sicundercover.subsonic.org/coverArt.view?size=200"/>

    <script type="text/javascript">
        function init() {
            var flashvars = {
                id:"player1",
                screencolor:"000000",
                frontcolor:"1e3127",
                backcolor:"ffffff",
                stretching: "fill",
                "playlist.position": "bottom",
                "playlist.size": 200
            };
            var params = {
                allowfullscreen:"true",
                allowscriptaccess:"always"
            };
            var attributes = {
                id:"player1",
                name:"player1"
            };
            swfobject.embedSWF("/flash/jw-player-5.10.swf", "placeholder", "500", "500", "9.0.0", false, flashvars, params, attributes);
        }

        function playerReady(thePlayer) {
            var player = $("player1");
            var list = new Array();


If I can figure out what file on my server holds the parameters for this page Im pretty sure this section is what holds the key, but where to go to alter it?

Code: Select all
     swfobject.embedSWF("/flash/jw-player-5.10.swf", "placeholder", "500", "500", "9.0.0", false, flashvars, params, attributes);
        }