Giter Site home page Giter Site logo

hyunsung-lee / logseq-plugin-media-ts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sethyuan/logseq-plugin-media-ts

0.0 0.0 0.0 5.39 MB

This plugin can generate timestamps for video, audio and Bilibili video, it takes you to the corresponding video/audio position when clicked.

License: MIT License

JavaScript 98.20% HTML 1.80%

logseq-plugin-media-ts's Introduction

中文 | English

logseq-plugin-media-ts

本插件能够生成视频、音频以及 B 站视频的时间戳,点击时间戳后会跳转到对应的音视频位置。

使用展示

插入媒体文件(视频、音频),支持网络上的 URL,本地全路径的文件和已上传至 Logseq 的相对路径的文件。

demo

demo

观看视频的同时记录笔记。

demo

使用示例

推荐在插件设置界面设置快捷键并用快捷键快速插入时间戳。也可以使用 /Media timestamp 来插入以下代码。请参看上方动图。

对于videoaudio标签可在插入时间戳时自动获取当前位置。对于 B 站视频,出于 Logseq 本身的一些安全性限制,无法获取当前位置,点击时间戳跳转时也不能直接定位,需要重新加载播放器。

你可以先将媒体地址拷贝下来,再用 /Insert media 插入,这样命令可以自动帮你正确处理视频地址,无论它是一个网址,本机文件的绝对路径,还是已上传到 Logseq 的一个资源的相对路径。

可以传“秒数”,也可以传“分:秒”或“时:分:秒”。

{{renderer :media-timestamp, 60}}
{{renderer :media-timestamp, 01:00}}
{{renderer :media-timestamp, 00:01:00}}

如果想为特定块中的媒体创建时间戳可以再传入它的引用,例如:

{{renderer :media-timestamp, 60, ((63158bf5-1436-41e4-a8af-a4a03b8b5a5b))}}

自定义样式

你可以通过以下 CSS 类来自定义样式。参照 Logseq 自定义样式的文档操作,将内容放在custom.css中即可。

.kef-media-ts-ts {
}

logseq-plugin-media-ts's People

Contributors

sethyuan avatar stefanbuck avatar dive2pro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.