Opened 16 years ago
Closed 15 years ago
#4731 closed defect (fixed)
Local File Playback
Reported by: | anonymous | Owned by: | Louis Cordier |
---|---|---|---|
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 (0)
Change History (6)
comment:1 follow-up: 2 Changed 16 years ago by
comment:2 Changed 16 years ago by
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
comment:3 Changed 16 years ago by
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
comment:5 Changed 15 years ago by
Works for me too. I can confirm that it creates a path with chrome for the jwplayer and other assets.
comment:6 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.