Ticket #4731 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

Local File Playback

Reported by: anonymous Assigned to: lcordier
Priority: normal Component: MovieMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

I couldn't get local file playback working as documented. I made the following changes to get it working:

(Forgive my ignorance in making diffs, pushing changes, and whatnot; the change is pretty small anyway)

/movie/Macro.py, ln. 40:

return '/' + '/'.join(parts)

... to ...

return '/'.join(parts)

Then you can reference the local file using the following syntax:

[[Movie(htdocs:/site/filename.flv)]]

Please take a look at this; if my changes are correct (they work for me!), then you should update your docs page & code.

Attachments

Change History

(follow-up: ↓ 2 ) 03/03/09 08:43:37 changed by lcordier

It doesn't make sense, the function generates an absolute URL, one that starts with a '/'. If you remove the first slash it is not an absolute URL anymore. It works for me as is. When I get time, I'll add some debugging code to the macro, then we can test what is going on.

(in reply to: ↑ 1 ) 03/18/09 14:03:37 changed by john.berntsen@gmail.com

Replying to lcordier:

It doesn't make sense, the function generates an absolute URL, one that starts with a '/'. If you remove the first slash it is not an absolute URL anymore. It works for me as is. When I get time, I'll add some debugging code to the macro, then we can test what is going on.

After installing this on trac 0.11.3 i had the same problem, and this solution fixed it for me.

Regards - John Berntsen

04/30/09 21:36:37 changed by eppa

Same change to code worked for me as well (0.11.3)

Trac:		0.11
Python: 	2.5.2 (r252:60911, Oct 5 2008, 19:42:18) [GCC 4.3.2]
setuptools: 	0.6c8
SQLite: 	3.5.9
pysqlite: 	2.4.1
Genshi: 	0.5
mod_python: 	3.3.1
Pygments: 	0.9
Subversion: 	1.5.1 (r32289)
jQuery:		1.2.3

01/07/10 10:53:17 changed by tom.korn.mod@gmail.com

For me it works too.

Thanks

Tom Korn

03/09/10 23:34:31 changed by webPragmatist

Works for me too. I can confirm that it creates a path with //chrome for the jwplayer and other assets.

03/10/10 15:51:37 changed by lcordier

  • status changed from new to closed.
  • resolution set to fixed.

(In [7771]) Closes #4731.


Add/Change #4731 (Local File Playback)




Change Properties
Action