marquisite
Well-known member
This is kind of a niche feature... I'd personally like to see a way to link to a specific time within XFMG video or audio content (locally-hosted or embedded types).
On my site there are a number of long YouTube videos in XFMG that have clickable timestamp links provided by the uploader if you watch them directly on YouTube but this information is not presently available if watching the same video in XFMG. I can see that this same functionality could be useful for comments that refer to a particular part of a video.
YouTube.com automatically converts timestamps in video comments to clickable links, e.g. 0:15, 18:20 etc. Could a similar approach be taken with XFMG 2? Time links inside XFMG comments could automatically be converted into a clickable link that would run javascript to seek the visible video/audio player to that particular time. The YouTube Player API has a seekTo function: https://developers.google.com/youtube/iframe_api_reference?csw=1#seekTo. It appears that the YouTube iframe code would need to append enablejsapi=1 to the end of the iframe src attribute.
Or perhaps a more flexible way would be to implement seek-on-load with a link that could be inserted into any post and on external sites e.g. path/to/xenforo/media/title.1?seek=55 for 55 seconds. Perhaps XFMG 2 could make use of the XF2 media embed code improvements for the sites that support custom start times? See https://xf2demo.xenforo.com/threads/twitter-as-an-embeddable-media-type.380/page-2#post-17118 https://xf2demo.xenforo.com/threads/twitter-as-an-embeddable-media-type.380/post-17176
I understand if this feature isn't viable, that's fine. I'll just continue as now and insert non-clickable time links within the first XFMG comment for a particular media item
On my site there are a number of long YouTube videos in XFMG that have clickable timestamp links provided by the uploader if you watch them directly on YouTube but this information is not presently available if watching the same video in XFMG. I can see that this same functionality could be useful for comments that refer to a particular part of a video.
YouTube.com automatically converts timestamps in video comments to clickable links, e.g. 0:15, 18:20 etc. Could a similar approach be taken with XFMG 2? Time links inside XFMG comments could automatically be converted into a clickable link that would run javascript to seek the visible video/audio player to that particular time. The YouTube Player API has a seekTo function: https://developers.google.com/youtube/iframe_api_reference?csw=1#seekTo. It appears that the YouTube iframe code would need to append enablejsapi=1 to the end of the iframe src attribute.
Or perhaps a more flexible way would be to implement seek-on-load with a link that could be inserted into any post and on external sites e.g. path/to/xenforo/media/title.1?seek=55 for 55 seconds. Perhaps XFMG 2 could make use of the XF2 media embed code improvements for the sites that support custom start times? See https://xf2demo.xenforo.com/threads/twitter-as-an-embeddable-media-type.380/page-2#post-17118 https://xf2demo.xenforo.com/threads/twitter-as-an-embeddable-media-type.380/post-17176
I understand if this feature isn't viable, that's fine. I'll just continue as now and insert non-clickable time links within the first XFMG comment for a particular media item
Upvote
0