Closed nanjigen closed 3 years ago
I'm not sure what you are trying to do. If you want to play online videos, use o o
(org-media-note-mpv-play-online-video) instead of o l
, then input the youtube url. Since youtube is not available in China, I take this for test, and it works: https://www.bilibili.com/video/BV16t411n7vJ .
videocite: link only supports local files now. Is the online url stored in bib file? Please show me an example bib entry of online video.
Hi @yuchen-lea
This is an example youtube bib entry, generated with zotero:
@video{rapidliquid2018,
title = {Big Mood},
editor = {{Rapid Liquid}},
date = {2018-11-28},
url = {https://www.youtube.com/watch?v=rs92BVVOjws},
urldate = {2021-03-24},
abstract = {hey good bois out there, in this video im gonna show you how big mood is celebrated properly. Relatable stuff coming up next ;) },
editortype = {director}
}
You can see the url
present with the youtube-link. An ideal use case would be the addition of a video to bib as url. After some notetaking, I realize that the video is worth keeping and so I org-attach
and add the url to bib entry such that the links still act on a bibkey but instead find a local file if there is one
o o
(org-media-note-mpv-play-online-video) work for online youtube videos?o o
, try to play the online video, whose url is stored in bib url field. If not found, input the url manually.org-media-note
doesn't care about anything but bibkey and org-ref
handles the link.
However with testing it seems that as org-ref
was not built with videos in mind, when it does not find a .pdf
in the file path it will fail over to the stored url, negating the desired automatic effect.This means that yes, we will need to manually use o o
or o l
to retrieve the remote or local file (we must do extra work to remember...)
Now opening local and online file is merged. This will try the following in order:
Have a try and let me know how's it going ;)
Hi Yuchen, sorry for the wait
So I've done some testing and this is what I'm observing so far:
o open file
will not detect that the note is an org-ref
note. I have :CUSTOM-ID:
in the properties drawer with the bibkey, but this doesn't seem to effect smart-play
from figuring out I want to open from bib entry. So, I have to make videocite
links manually.
When I do make videocite
link manually, it will not play url videos. Only bib entry where file
path is a local video. Also when I click these videocite
links, the video will play, but i insert timestamp
will insert org-attach
link instead of videocite
based link.
I think this violates the above order
Thank you for your time
Here you have 2 problems, let's look at them one by one:
(org-media-note-ref-cite-p)
under your org-ref note, this should be t
.org-media-note-mpv-smart-play
, check the value of media-url-by-key
, this should be the url of video file.org-media-note-media-cite-link-follow
function, this should work after updating to bc283c5.org-media-note-media-cite-link-follow
and click the link, see what happens.Due to the network connection, playing online videos in mpv fails sometime in my environment. As long as (mpv-start video-url)
works for you, all things should be fine.
Possibly due to me not following the documentation correctly, I am having some difficulty get a Youtube video to play from a
videocite
link, or by usingo l
from theorg-media
hydra when the cursor is on aorg-ref
cite link:If the bibkey references a local file, the
videocite:
link works, but not for a youtube video. Neither local nor remote videos are detected when attemptingo l
over the cite link.All bib entries are generated with Zotero.
Thanks, the project is serving me greatly