Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Spotify embed and collapsed #17356

Merged
merged 3 commits into from
Apr 20, 2020
Merged

[FIX] Spotify embed and collapsed #17356

merged 3 commits into from
Apr 20, 2020

Conversation

ffauvel
Copy link
Contributor

@ffauvel ffauvel commented Apr 18, 2020

This update the iframe url for spotify embed player.
Some urls generate a broken iframe in rocketchat.
Example url from spotify that is causing problem: https://open.spotify.com/album/185Tm1g5U7eMOrm3m9SQUh?highlight=spotify:track:4S8d14HvHb70ImctNgVzQQ

The url used for the embedded iframe in rocket chat is https://embed.spotify.com/?uri={{url}}, the new format is https://open.spotify.com/embed/(artist,album,song)/(id)
This url is provided in the twitter-player meta data.
I suggest that we use this value instead of generating one like you guys do in oembedYoutubeWidget.html.

There is also a problem with collapse of the embedded iframe for spotify.
I reused the same logic you used in oembedYoutubeWidget.html for the collapse component.

Before:
image

After:

image

Thank you

@CLAassistant
Copy link

CLAassistant commented Apr 18, 2020

CLA assistant check
All committers have signed the CLA.

@engelgabriel engelgabriel added this to the 3.1.2 milestone Apr 18, 2020
@engelgabriel engelgabriel modified the milestones: 3.1.2, 3.2.0 Apr 18, 2020
@gabriellsh
Copy link
Member

Looks really good mate! Thanks for your help.

@ggazzo ggazzo changed the title [FIX] Fix spotify embed and collapsed [FIX] Spotify embed and collapsed Apr 20, 2020
@ggazzo ggazzo merged commit 01fbdb8 into RocketChat:develop Apr 20, 2020
ggazzo added a commit that referenced this pull request Apr 20, 2020
…users_and_rooms

* 'develop' of github.com:RocketChat/Rocket.Chat:
  [NEW] Allow to send Agent custom fields through the Omnichannel CRM integration (#16286)
  [FIX] Spotify embed and collapsed (#17356)
  Improve: Better Push Notification code (#17338)
  LingoHub Update 🚀 (#17365)
  [FIX] Allow Screensharing in BBB Iframe (#17290)
  [NEW] Make the header for rooms clickable (#16762)
  Import data pagination (#17355)
  Allow to set a comment when forwarding omnichannel rooms. (#17353)
  [FIX] Web Client memory leak caused by the Emoji library (#17320)
  [FIX] Omnichannel room info panel opening whenever a message is sent (#17348)
  [FIX] New user added by admin doesn't receive random password email (#17249)
dudizilla added a commit that referenced this pull request Apr 21, 2020
…nto view-logs

* 'develop' of https://github.com/RocketChat/Rocket.Chat:
  [NEW] Allow to send Agent custom fields through the Omnichannel CRM integration (#16286)
  [FIX] Spotify embed and collapsed (#17356)
  Improve: Better Push Notification code (#17338)
  LingoHub Update 🚀 (#17365)
  [FIX] Allow Screensharing in BBB Iframe (#17290)
  [NEW] Make the header for rooms clickable (#16762)
  Import data pagination (#17355)
  Allow to set a comment when forwarding omnichannel rooms. (#17353)
  [FIX] Web Client memory leak caused by the Emoji library (#17320)
  [FIX] Omnichannel room info panel opening whenever a message is sent (#17348)
  [FIX] New user added by admin doesn't receive random password email (#17249)
  Bump https-proxy-agent from 2.2.1 to 2.2.4 (#17323)
  [NEW] Adds ability for Rocket.Chat Apps to create discussions (#16683)
  Add possibility to sort the Omnichannel current chats list by column (#17347)
  [IMPROVE] Redesign Administration > Import (#17289)
@sampaiodiego sampaiodiego mentioned this pull request Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants