Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2020-07-20 15:58:59

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Media shortcode. Requests accepted

michaelkpate wrote #324718:

I didn’t work through all the examples. I’ll have to rethink my approach – probably do a custom call for each site.

demo.cmsstyles.com/datebasedarchives/2020/07/15/welcome-to-the-internet is an example of how the wrong address is parsed before the cookie is accepted unless you use the url attribute as indicated in example 5.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#50 2020-07-23 13:31:40

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Media shortcode. Requests accepted

I found out that WordPress has an official list of sites they support for embedding because they had to remove Hulu from the list.

Not sure if you want to add any or all of these; they seem pretty obscure.

Offline

#51 2020-07-23 13:45:39

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Media shortcode. Requests accepted

I’ve never done any embedding but I’ve watched many a conscious bitchute.com video linked from elsewhere. Sorry to be so vague, and not sure if this is what you are requesting.


BB6 Band My band
Gud One My blog

Offline

#52 2020-07-24 08:08:33

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Media shortcode. Requests accepted

@Michael. Thanks! I went through that list but it’s obviously not the latest one as Vine for example, is no longer available. It did remind me of Issuu though and checked into it but it no longer allows embedding from non paying users.

@Pete. Great I added the host.

I have made some structural changes to the shortcode in order to be able to expand it.

  • There is just one from attribute for local video or audio, local, but a second attribute (url) is needed in order to differentiate between the two.
  • The same goes for the internet archive
  • I added an img tag for video and other services but I am also using the thumbnails from hosts whenever the urls allow it.
  • I updated the table and the examples in order to make sense of the usage.

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#53 2020-07-25 09:29:17

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Media shortcode. Requests accepted

Bloke wrote #324362:

Great stuff, Yiannis, thank you. I’d tentatively like to suggest Bandcamp. A client and friend of mine host some of their music on that platform: jabbacartel.bandcamp.com/.

It’d be nice to be able to embed stuff directly from there instead of having to upload samples to Txp first (although that does give us some nice file_download goodness and ability to hook things up to images via track-name or category-as-album-name).

Aside: I’ve had the privilege of recording Carol when I ran the studio years ago and she was writing solo music. Still got the recordings somewhere on my hard drive tower. She has a lovely voice.

I have just added BandCamp albums:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#54 2020-07-25 10:20:23

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Media shortcode. Requests accepted

.wav files? or are they just for downloading?

I’ve also watched .mkv video files

Last edited by zero (2020-07-25 10:22:57)


BB6 Band My band
Gud One My blog

Offline

#55 2020-07-25 13:24:52

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Media shortcode. Requests accepted

zero wrote #324837:

.wav files? or are they just for downloading?

I’ve also watched .mkv video files

Hi Pete

wav and aiff files are recommended for downloading but not for streaming as their bit rate is/should be too high to listen to without interruptions.

mkv files cannot not be handled by browsers as far as I know. On the mac at least, the only software I know that they can be played from is VLC.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#56 2020-07-25 15:21:19

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Media shortcode. Requests accepted

I’ve got 3 videos I downloaded from Bitchute that are .mkv and I must have watched them first in Firefox before downloading. Unfortunately I searched Bitchute for them but couldn’t find, only MP4 versions. I’ve searched and .mkv is not well supported, so probably no good for your project. (And apparently .mkv is easy to convert to .mp4) But I found these two links that might help, if you’re interested.

Firefox

Chrome


BB6 Band My band
Gud One My blog

Offline

#57 2020-07-25 16:16:15

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Media shortcode. Requests accepted

zero wrote #324844:

I’ve got 3 videos I downloaded from Bitchute that are .mkv and I must have watched them first in Firefox before downloading. Unfortunately I searched Bitchute for them but couldn’t find, only MP4 versions. I’ve searched and .mkv is not well supported, so probably no good for your project. (And apparently .mkv is easy to convert to .mp4) But I found these two links that might help, if you’re interested.

Firefox

Chrome

Thanks Pete, From what I read from your links, mkv files are not supported, or their support is very buggy. I’m working on this project for the community, not myself. If you think that it will be of use to you, I can easily add the file type.

Let me know.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#58 2020-07-25 16:20:11

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Media shortcode. Requests accepted

No problem. You’re doing a great job, Yiannis.


BB6 Band My band
Gud One My blog

Offline

#59 2020-07-26 00:31:04

michaelkpate
Moderator
From: Avon Park, FL
Registered: 2004-02-24
Posts: 1,379
Website GitHub Mastodon

Re: Media shortcode. Requests accepted

Unsplash has a way of either embedding a random or specific photo if you can deal with the licensing.

Offline

#60 2020-07-26 04:28:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,007
Website GitHub Mastodon Twitter

Re: Media shortcode. Requests accepted

michaelkpate wrote #324850:

Unsplash has a way of either embedding a random or specific photo if you can deal with the licensing.

Hi Michael,

I’m not certain as to what unsplash does. Admittedly I did not come across this site before. Re photos in general, I intentionally left image hosting sites out, flickr for example. This is because I think that most hosting providers can cope with images and I see no reason of using an external service.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB