Opened 15 years ago

Closed 14 years ago

#2660 closed enhancement (fixed)

PATCH: enable mythweb streaming via .asx

Reported by: Rich.West@… Owned by: xris
Priority: minor Milestone: 0.21
Component: mythweb Version: 0.20
Severity: low Keywords: stream asx
Cc: Ticket locked: no


This is modeled slightly after the TivoWebPlus? functionality where a small .asx file is generated and downloaded to the client. When that file is opened on the client (usually automatically), the respective player (Windows Media Player, mplayer, totem, etc) reads the contents of the .asx file, and accesses the media as defined in the .asx file, which, in this case, is the direct URL to the full media file. The client then buffers and plays the media as it is being downloaded.

The current implementation did not allow for this functionality as it required the entire mpg to be downloaded to the client before the client would act upon it.

This works for Windows and Linux clients. It has been tested against Windows Media Player, Totem, and mplayer.

Attachments (1)

patch (1.9 KB) - added by Rich.West@… 15 years ago.
Patch file

Download all attachments as: .zip

Change History (4)

Changed 15 years ago by Rich.West@…

Attachment: patch added

Patch file

comment:1 Changed 15 years ago by Rich.West@…

In the patch, I inadvertently have it sending the file as "text/html". Where is shows: print header(-type => 'text/html',

It should have been: print header(-type => 'video/x-ms-asf',

Thanks go to catfish@… for point this one out to me. :)

comment:2 Changed 15 years ago by xris

You also didn't use the "root" constant to account for other directory structures, https connections or user login info (which I don't think will work with the asx stuff).

I'll see what I can do, though.

comment:3 Changed 14 years ago by xris

Resolution: fixed
Status: newclosed

(In [12322]) Add asx streaming support to the current stream handler. This closes #2660. Keep in mind that a 'recording details' page is still in the works to actually provide the link to the asx downloader, so this commit doesn't actually provide an interface to use the asx stuff (though it's really just a matter of adding .asx to the end of the current download URL)

Note: See TracTickets for help on using tickets.