My memory is kicking in. I realize now that I may never have actually used relative paths on AndTidWiki. I *suspect* hat it might work if you tried it on the real AndTidWiki directory, which is burried under something like Android/data/data/com....antidwik/... The problem is that AndTidWiki is using it's own base path, which is somewhere else entirely, apparently.
What I used to do for images was use a variation of Tobias Bier's ximg macro. My version let you use a drop down list of paths. You select the path you want depending on what platform you are on. Then your images are displayed with a macro: <<ximg localdir/myimage.jpg>> And the macro applies the correct long path and displays the image. I'm pretty sure I have a version without a drop-down for <iframes>. In the iframe case, you edit the original macro to set the path (because I was too lazy to write the drop-down part). I can post the code if you're interested Good luck, -- Mark On Tuesday, March 19, 2019 at 3:45:39 AM UTC-7, Al Thorpe wrote: > > Hi Mark, > Thanks for the reply. > > "When you say "opens in an external window", is this some other app, or > does it offer you a slate of apps to open it with?" > This is a video tiddler. I get a separate window, almost like a pop-up > that the video plays in. On completion, it drops back to the opened > tiddler which just shows blank. If I edit the tiddler, the link is editable > within the tiddler. saving the tiddler, retriggers the video. > > > "Part of the question I have is whether AndTidWiki, which started having > problems at Android 4.4, will allow you to use relative paths to > directories that aren't below official public directories. " > This is an audio tiddler. It appears to be a problem with the cannonical > link? I can put an explicit link in, but relative links don't seem to work > in the same way. > > "I would try using relative paths with plain image files as a test. Use > the [img[CalamityJane/image.jpg]] or the canonical uri approach and see if > those work. Tho"se used to work, but may not work now. Another way to test > is by using Firefox or Chrome browser to open your TW file. Those browsers > will not be able to save, of course, but they should be able to display > your image if it is possible. " > This works ok on firefox but not on Andtidwiki. I get a broken link icon > on Andtidwiki. > > "If it is not possible, then you may have to put your ShowWiki directory > inside your public Document or Download folder instead." > Do you mean under the Andtidwiki directory? As it is already there? > > - show quoted text - > > On Monday, 18 March 2019 21:01:37 UTC, Mark S. wrote: >> >> If you try your format or my format for the address on a desktop platform >> you'll probably find that it works. If it crashes on Android, it probably >> means that either AndTidWiki or the app it attempted to launch crashed, >> most likely due to a memory shortage. >> >> When you say "opens in an external window", is this some other app, or >> does it offer you a slate of apps to open it with? >> >> Part of the question I have is whether AndTidWiki, which started having >> problems at Android 4.4, will allow you to use relative paths to >> directories that aren't below official public directories. >> >> I would try using relative paths with plain image files as a test. Use >> the [img[CalamityJane/image.jpg]] or the canonical uri approach and see if >> those work. Those used to work, but may not work now. Another way to test >> is by using Firefox or Chrome browser to open your TW file. Those browsers >> will not be able to save, of course, but they should be able to display >> your image if it is possible. >> >> If it is not possible, then you may have to put your ShowWiki directory >> inside your public Document or Download folder instead. >> >> Good luck! >> -- Mark >> >> On Monday, March 18, 2019 at 9:40:33 AM UTC-7, Al Thorpe wrote: >>> >>> Hi Mark, >>> Thanks for the response, sadly that doesn't work. It doesn't seem to >>> like the location in that format and causes the tw to crash. The original >>> tiddler is now uneditable due to this issue. >>> I had assumed the format would have been >>> "CalamityJane/DeadwoodStagevid.mp4" >>> but that didn't work either. >>> >>> This is the second part of the question associated with video files, I >>> couldn't seem to get audio to indirect link reliably either on tw5? >>> >>> Thanks, >>> Al >>> >>> >>> On Monday, 18 March 2019 14:59:18 UTC, Mark S. wrote: >>>> >>>> You should be able to use relative paths rather than absolute paths, as >>>> long as the resource directories are below the TW directory. >>>> >>>> So possibly: >>>> >>>> src="./CalamityJane/DeadwoodStagevid.mp4 >>>> >>>> >>>> Might work. Then you should be able to copy the entire ShowWiki folder >>>> to some other platform and still have it work for viewing. >>>> >>>> Since you're on Android, I assume by "other" window you mean it opens >>>> in a different app? That probably means that the AndTidWiki webview >>>> doesn't >>>> know how to show the video, so passes it off to some other app. It's >>>> behaviour might be different when viewed through a browser on some other >>>> platform. >>>> >>>> Good luck! >>>> -- Mark >>>> >>>> >>>> >>>> On Monday, March 18, 2019 at 7:00:37 AM UTC-7, Al Thorpe wrote: >>>>> >>>>> Hi, >>>>> Is it possible to setup indirect references for files for a tw5? >>>>> >>>>> I am using a tw for a stage show interactive notebook with links to >>>>> audio and video clips for learning music and dance routines. >>>>> >>>>> Ideally, I would like to setup subdirectories of the ShowWiki location >>>>> for storing different show clips, so that I can pick up the whole wiki >>>>> and >>>>> folder and drop is somewhere else? >>>>> >>>>> So: >>>>> Showwiki.html has 2 subdirectories >>>>> - CalamityJane >>>>> - LaBoheme >>>>> >>>>> And needs to have links using the "mp3/Audio - cannonical" link to the >>>>> appropriate location. >>>>> >>>>> Also, If I setup a video link, the link always opens in an external >>>>> window rather than within the tw itself, is this correct? >>>>> >>>>> This is the content of the tiddler: >>>>> >>>>> <iframe width="560" height="315" >>>>> src="/storage/emulated/0/andtidwiki/ShowWiki/CalamityJane/DeadwoodStagevid.mp4" >>>>> >>>>> frameborder="0" allowfullscreen ></iframe> >>>>> >>>>> Thanks for your help, >>>>> >>>>> Best Regards, >>>>> Al >>>>> >>>>> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/79c74099-68de-4042-b81e-2cb185be2e2a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.