obsidian-dataloom icon indicating copy to clipboard operation
obsidian-dataloom copied to clipboard

Support table rows and columns to zoom in and out, and allow users to continue watching the video in the Obsidian table instead of jumping to an external browser to play the video

Open zhouxinghong opened this issue 2 years ago • 8 comments

Problem

Support table rows and columns to zoom in and out, and allow users to continue watching the video in the Obsidian table instead of jumping to an external browser to play the video

  1. The row and column of the table cannot be zoomed in. This cannot zoom in and out for the embedded video screen;
  2. There is a problem when playing YouTube videos in Obsidian form. Currently, only videos with the specified link can be played. If I want to continue playing the next video in the obsidian form, it will jump to an external browser instead of continuing to open and play the next video in the obsidian form, which is for users who like to continue watching videos in the obsidian form, It may not be satisfactory! So I hope to strengthen the support for video playback, so that users can continue to watch the video in the obsidian form, instead of jumping to an external browser to play the video. A settings option may be provided to allow the user to enable or disable the ability to continue to the next video in the Obsidian form. System: Windows 10 Obsidian: 1.3.5 obsidian-notion-like-tables: 6.17 image Thank you so much for such a wonderful extension!

Solution

Support table rows and columns to zoom in and out, and allow users to continue watching the video in the Obsidian table instead of jumping to an external browser to play the video

  1. The row and column of the table cannot be zoomed in. This cannot zoom in and out for the embedded video screen;
  2. There is a problem when playing YouTube videos in Obsidian form. Currently, only videos with the specified link can be played. If I want to continue playing the next video in the obsidian form, it will jump to an external browser instead of continuing to open and play the next video in the obsidian form, which is for users who like to continue watching videos in the obsidian form, It may not be satisfactory! So I hope to strengthen the support for video playback, so that users can continue to watch the video in the obsidian form, instead of jumping to an external browser to play the video. A settings option may be provided to allow the user to enable or disable the ability to continue to the next video in the Obsidian form. System: Windows 10 Obsidian: 1.3.5 obsidian-notion-like-tables: 6.17 Thank you so much for such a wonderful extension!

Additional details

Thank you so much for such a wonderful extension! No response

zhouxinghong avatar Jun 07 '23 06:06 zhouxinghong

@zhouxinghong To "zoom", are you talking about increasing the size of the YouTube video? Try increasing the width size of the column. The embed column by default has an aspect ratio of 16/9 and it will resize to fill the column width. You can also change the aspect ratio in the column settings + adding horizontal/vertical padding if needed.

As for playing the next video in Obsidian, I don't think that this possible at the moment. The YouTube video is playing in an iFrame. I don't control how that is rendered. I only render it.

decaf-dev avatar Jun 10 '23 15:06 decaf-dev

To "zoom", are you talking about increasing the size of the YouTube video? Try increasing the width size of the column. The embed column by default has an aspect ratio of 16/9 and it will resize to fill the column width. You can also change the aspect ratio in the column settings + adding horizontal/vertical padding if needed. How to carry out the above setting and operation?

Obsidian already provides the following syntax to render YouTube videos

![](https://www.youtube.com/watch?v=ZSojZyGT8Pg)

You can try it!

zhouxinghong avatar Jun 10 '23 16:06 zhouxinghong

Yep. That is what the table uses to render the YouTube video. I pass it into the Obsidian MarkdownRenderer.renderMarkdown function. The table renders the same thing that Obsidian does.

decaf-dev avatar Jun 10 '23 16:06 decaf-dev

Hope you can perfect the video playback function described above! 👍😜

zhouxinghong avatar Jun 10 '23 16:06 zhouxinghong

@zhouxinghong To change the column width, hover your mouse near the edge of a column and then drag.

image

To change the padding or the aspect ratio, open the header edit menu and click Options

image image

decaf-dev avatar Jun 12 '23 19:06 decaf-dev

Thank you for your hard work and effort! I will try the effect later 👍😜🤞

zhouxinghong avatar Jun 12 '23 20:06 zhouxinghong

The width of New Column is too narrow. When the title name is relatively long, the input is very inconvenient. It should support widening and shrinking 2023-06-13_2 image

currently existing problems:

  1. At present, it is not possible to continue to play the next video in the table, and the next video will jump to the external browser;
  2. It would be more perfect if it can support login YouTube account;
  3. I hope you can gradually improve these functions, thank you very much for your hard work and efforts! 👍👏😜

Other areas that need improvement will continue to be added later. . . 👍😜

zhouxinghong avatar Jun 12 '23 21:06 zhouxinghong

Found a problem: After using the mouse to drag and zoom in on the video, a vertical scroll bar will appear, and it should be possible to cancel the maximum height limit

zhouxinghong avatar Jun 12 '23 23:06 zhouxinghong