*RESOLVED* [API] stream.view + capable viewers

Need help? Post your questions here.

Moderator: moderators

*RESOLVED* [API] stream.view + capable viewers

Postby nayab9 » Thu Jun 14, 2012 12:35 am

Hi All!

What is required to consume a stream.view request on a video file from a server?

Say for example, the server has somefile.avi; I transcode this on-the-fly to flv - can I feed the stream.view request into a consumer that can display it?

What would I have to do to accomplish this?

Cheers,
Ben
Last edited by nayab9 on Fri Jun 15, 2012 4:49 pm, edited 1 time in total.
nayab9
 
Posts: 14
Joined: Wed Jan 18, 2012 6:51 pm

Re: [API] stream.view + capable viewers

Postby BKKKPewsey » Thu Jun 14, 2012 2:15 pm

Just use external or external (with playlist) and open up the m3u file with your player of choice.

:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: [API] stream.view + capable viewers

Postby nayab9 » Thu Jun 14, 2012 5:44 pm

Thanks for the response!

On my server, I changed Players to use External; this did not seem to change what the stream.view API call returns.

I can't seem to wrap my head around what stream.view is supposed to be providing when requesting a video file.
I understand that, if I remotely log into the subsonic server, using 'external player', if I click to play a file, it will then allow me to download an m3u file, which I can throw into VLC (as an example).

What I need though, is a way to consume what is returned from the stream.view API call..
When I call stream.view on the specified video file from the browser, the file starts downloading, this file can be loaded into VLC, and it works (live, even as it is being downloaded).
But if I put the same stream.view URL directly into VLC "open stream", it does not work.

What is the file that is being downloaded when I call stream.view? Can this data be fed into something like JWPlayer and viewed somehow?

Here is a description of the scenario:

Server machine is set up with subsonic and configured.
Client machine is somewhere else, and has some sort of consumer of media (VLC, JW Player, JPlayer, FlowPlayer, etc..).
Client machine consumer wants to request a VIDEO stream, via the "stream.view" API call from the server.
How can the consumer read and display the stream.view data being given?
nayab9
 
Posts: 14
Joined: Wed Jan 18, 2012 6:51 pm

Re: [API] stream.view + capable viewers

Postby nayab9 » Fri Jun 15, 2012 4:49 pm

*RESOLVED*

Answer: The consumer must be capable of consuming the raw data being sent from stream.view.

JWPlayer is capable of doing so, I am using that for now!

Cheers,
Ben
nayab9
 
Posts: 14
Joined: Wed Jan 18, 2012 6:51 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 20 guests