This is a message.

Sometimes videos want to download instead of stream Created Oct 5, 2009

This thread is solved

Views: 3031     Replies: 3     Last reply Oct 5, 2009  
You must login first before you can use this feature

shihbang

Posts: 1

Registered:
Oct 5, 2009

Sometimes videos want to download instead of stream

Posted: Oct 5, 2009

This is the page in question:http://www.shihbang.com/media_videos.shtml

When the page first loads, I can play the first video, but if I click on any of the other videos, they start downloading instead of playing.

A refresh fixes the problem, but I'm hoping there might be a better solution. I've already checked all my code and can't see anything wrong. Any help would be greatly appreciated. Thanks!

FunkyRes

Posts: 25

Registered:
Sep 5, 2009

» Sometimes videos want to download instead of stream

Posted: Oct 5, 2009

Reply to: Sometimes videos want to download instead of stream, from shihbang
Worked for me (Shiretoko on Linux) but what I suspect is happening is a script is mis-behaving under certain conditions and thus exiting.

When I view your site w/ scripting disabled, download is the normal behavior, so the script that loads flowplayer is probably broken under certain conditions.

Nothing jumped out at me as the possible cause though.

rthomas
Server ReadyNas Pro using Linux Debian etc

Posts: 2

Registered:
Sep 7, 2009

Same problem for me

Posted: Oct 5, 2009

Reply to: Sometimes videos want to download instead of stream, from shihbang
I stream my videos with the streamer.php script. I have a playlist and if I click on the video It is asking me to download the file. As far as I know the coding of the html playlist and the javascript of the flowplayer and the configuration of the streamer.php script is correct. Maybe someone can look at it:
$(function() {
	// setup scrolling for the playlist elements
	$("div.playlist").scrollable({
		items:'div.clips',
		vertical:true,
		next:'a.down',
		prev:'a.up'
	});
	
	// setup player 
	$f("player", "/movieplayer/flowplayer-3.1.3.swf",  {
	  
	    	clip: {
			
			baseUrl: 'http://kako.homedns.org/web/',
			scaling: "orig",
			autoPlay: "false",
			autoBuffering: true
			} 
	
	});	
	
	
config={ streamingServer: 'lighttpd'
         .playlist("div.clips")
		 
       }
     // show playlist buttons in controlbar
		plugins: {
			controls: {
				playlist: true
			}
		}
	
});


<div style="float:left;width:190px">
	
	<a class="go up"></a>
	
	<div class="playlist">	
		
		<div class="clips low">
			<a href="streamer.php/movie1.flv" class="first">
            Notorious <br />
            <em></em>	
			</a>
			<a href="streamer.php/Movie2.flv">
			The Uninvited <br />
			<em></em>	
			</a>
			<a href="streamer.php/Movie3.flv">
			The Right Temptation <br />
			<em></em>	
			</a>
			<a href="streamer.php/Movie4.flv">
			State of Play <br />
			<em></em>	
			</a>
			<a href="streamer.php/Movie5.flv">
			Shuttle <br />
			<em></em>	
			</a>	
            </div>
	</div>
	<a class="go down"></a>
</div>
<a id="player" class="player" style="float:left;margin-top:25px">
	<img src="/web/images/play.png" />
</a>
streamer.php configuration: The file is placed in the root of my
website web and the movies are placed in the
directory movies:


// points to server root
	define('XMOOV_PATH_ROOT', '/web');
	
	// points to the folder containing the video files. Should start and end with '/'
	define('XMOOV_PATH_FILES', '/movies/');

Christian Ebert
Flowplayer support

Posts: 3024

Registered:
May 27, 2008

» Same problem for me

Posted: Oct 5, 2009

Reply to: Same problem for me, from rthomas
As far as I can see you don't load the pseudostreaming plugin. Also I don't get this config variable dangling in the air somehow (that's how it looks to me).

I would expect your script to be looking roughly like this:


$f("player", "/movieplayer/flowplayer-3.1.3.swf",  {
  clip: {
    provider: "pseudo",
    // you could add streamer.php to the following line
    baseUrl: 'http://kako.homedns.org/web/', 
    scaling: "orig", 
    autoPlay: "false", 
    autoBuffering: true,
  },
  plugins: {
    pseudo: {
      url: "/movieplayer/flowplayer.pseudostreaming.swf"
    },
    controls: {
      playlist: true
    }
  }
}).playlist("div.clips");