phpBB Media Embed PlugIn

Apple Music? - phpBB Media Embed PlugIn

Re: Apple Music?

by halil16 » Wed Jul 12, 2023 3:01 pm

MattF wrote: none of your additions are part of Apple Music embed codes in everything I've looked at.
First, I adjusted the heights. This is important.

would normally be like this if you get code from Apple:

Code: Select all

<iframe id="embedPlayer" src="https://embed.music.apple.com/tr/album/m%C3%BCh%C3%BCr/1683086297?i=1683086309&amp;app=music&amp;itsct=music_box_player&amp;itscg=30200&amp;ls=1&amp;theme=auto" height="175px" frameborder="0" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation-by-user-activation" allow="autoplay *; encrypted-media *; clipboard-write" style="width: 100%; max-width: 660px; overflow: hidden; border-radius: 10px; transform: translateZ(0px); animation: 2s ease 0s 6 normal none running loading-indicator; background-color: rgb(228, 228, 228);"></iframe>
Here I set the theme to be dark and light automatically. thus adding an additional feature.
Buy me a coffee
Hire me for your phpBB board.
Introducing Mobile Upgrade! Make your phpBB board like an app!
O BeldeThatTowns*for sale*
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
User avatar
halil16
Registered User
Posts: 1393
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil

Re: Apple Music?

by halil16 » Fri Jul 28, 2023 7:49 am

I tried to do it for Apple TV+ with the same logic, but it didn't work.

Code: Select all

name: "Apple TV+"
host: tv.apple.com
example: https://tv.apple.com/tr/show/foundation/umc.cmc.5983fipzqbicvrve6jdfep4x3
extract: "!//tv.apple.com/(?'country'[a-z]{2})/show/(?'name'[\\pL\\d\\-%A-F]+)/umc.cmc.(?'aid'\\d+)!u"
iframe:
    width: "100%"
    height: "371"
    src: //embed.tv.apple.com/us/show/{@name}/umc.cmc.{@aid}?itscg=30200&amp;itsct=tv_box_player&amp;countryCode={@country}
Sometimes there is no country code. For example, the link would be:
https://tv.apple.com/show/silo/umc.cmc.3yksgc857px0k0rqe5zd4jice?itsct=tv_box_link&itscg=30200
iframe
https://embed.tv.apple.com/us/show/silo/umc.cmc.3yksgc857px0k0rqe5zd4jice?itscg=30200&amp;itsct=tv_box_player

And if I'm not mistaken, this only exists in Apple's series. It is not available in the store where it is like iTunes.
Buy me a coffee
Hire me for your phpBB board.
Introducing Mobile Upgrade! Make your phpBB board like an app!
O BeldeThatTowns*for sale*
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
User avatar
halil16
Registered User
Posts: 1393
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil