Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Offline
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
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
Offline
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
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.
Offline
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.
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
Offline
Offline
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