Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • VLC Browser Plugins VLC Browser Plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 26
    • Issues 26
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLAN
  • VLC Browser PluginsVLC Browser Plugins
  • Issues
  • #15

Closed
Open
Created Jul 09, 2016 by Daniel Amm@da2424

Webplugins: Working path is wrong

For example, if you want to add a logo with a relative path, it will not work:

vlc.video.logo.file("file.png");
core filter debug: looking for sub source module matching "logo": 6 candidates	
logo filter debug: logo file name file.png, delay -1, alpha -1	
core filter debug: creating access 'file' location='/C:/Program%20Files%20%28x86%29/Mozilla%20Firefox/file.png', path='C:\Program Files (x86)\Mozilla Firefox\file.png'	
core access debug: looking for access module matching "file": 21 candidates	
filesystem access debug: opening file `C:\Program Files (x86)\Mozilla Firefox\file.png'	
filesystem access error: cannot open file C:\Program Files (x86)\Mozilla Firefox\file.png (No such file or directory)	
core access error: Einlesen der Datei fehlgeschlagen	
core access error: VLC konnte die Datei „C:\Program Files (x86)\Mozilla Firefox\file.png“ nicht öffnen (Bad file descriptor).	
core access debug: no access modules matched	
core filter error: no suitable access module for `file:///C:/Program%20Files%20%28x86%29/Mozilla%20Firefox/file.png'	
core filter debug: could not open file:///C:/Program%20Files%20%28x86%29/Mozilla%20Firefox/file.png for reading	
logo filter warning: error while loading logo file.png, will be skipped	
core filter debug: using sub source module "logo"	
core subpicture debug: Filter 'logo' (01d18dcc) appended to chain	

Similar problem with MRLs:

vlc.video.logo.file("file:///d:/file.png")
core filter debug: looking for sub source module matching "logo": 6 candidates	
logo filter debug: logo file name file:///d:/file.png, delay -1, alpha -1	
core filter debug: creating access 'file' location='/C:/Program%20Files%20%28x86%29/Mozilla%20Firefox/file%3A%2F%2F%2Fd%3A%2Ffile.png', path='C:\Program Files (x86)\Mozilla Firefox\file:\\\d:\file.png'	
core access debug: looking for access module matching "file": 21 candidates	
filesystem access debug: opening file `C:\Program Files (x86)\Mozilla Firefox\file:\\\d:\file.png'	
filesystem access error: cannot open file C:\Program Files (x86)\Mozilla Firefox\file:\\\d:\file.png (Invalid argument)	
core access error: Einlesen der Datei fehlgeschlagen	
core access error: VLC konnte die Datei „C:\Program Files (x86)\Mozilla Firefox\file:\\\d:\file.png“ nicht öffnen (Bad file descriptor).	
core access debug: no access modules matched	
core filter error: no suitable access module for `file:///C:/Program%20Files%20%28x86%29/Mozilla%20Firefox/file%3A%2F%2F%2Fd%3A%2Ffile.png'	
core filter debug: could not open file:///C:/Program%20Files%20%28x86%29/Mozilla%20Firefox/file%3A%2F%2F%2Fd%3A%2Ffile.png for reading	
logo filter warning: error while loading logo file:///d:/file.png, will be skipped	
core filter debug: using sub source module "logo"	
core subpicture debug: Filter 'logo' (04ffa094) appended to chain	

It works only if a windows path is given: vlc.video.logo.file("d:\\file.png")

It seems that the ActiveX/NPAPI plugin will not use the html file as working path, but instead the desktop path (ActiveX) or the program path of the browser (NPAPI).

The same behavior occours with some command line parameters like "sub-file", if you use it with vlc.playlist.add().

No problems with relative video paths, because the absolute path will be generated in the plugins.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking

VideoLAN code repository instance