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
[TS] Media - Working with audio, video, and unknown media #1673
Conversation
…nto feature/media-ts
3347dc6
to
1be4144
Compare
Pulling in the original request #1361 |
Very sorry for the delay, let me take a look. |
@ignacionr I'm going to hold on the actual review of your changes for now, because we need to address the design of the controls first. Thanks for putting the demo site together, that was super helpful. As is the buttons IMO just don't work well. I don't think we can use the characters you've picked, because they are what they are and can't be styled in CSS. We need to have at least a minimum amount of customization possible in CSS, and we can't have buttons that can only be blue :) As for the overlay, I think we need to use another way to do the icon in there as well, and there are a couple things that we need to change to make it more "subtle":
Finally, I think just two buttons doesn't justify reserving an entire pane of empty space below the video. So here is the design I suggest:
For the overlay buttons, I think we need to use simple inline SVGs for the actual icons. This will allow them to scale properly and as far as I can tell from this page that will make them stylable via CSS. And in terms of the design, I think it should look something like this: With the play/pause button centered and the rewind button on its left and slightly smaller. The CSS should make it possible to style the buttons' background color and icon color independently. That would be for the video player. For the audio player, we should use the same icons, but different CSS styles, since most of the time (and by default) we will need a different background color (transparent white like for the video player won't work.) Sorry if this is a handful, but we need to make sure these look as good as possible and that hosts can control the appearance of buttons so this Media element fits well within the Adaptive framework. |
Hey @dclaux this is all understood. Thanks for taking the time to look at it, and for the valuable input. Will be updating soon. |
Hey @ignacionr, great work! And thanks for making that demo site! Along with David's feedback, some key points from the original spec that might have not made it into the implementation?
Please review the original spec #196 (it has some updates) to ensure that your implementation is in line with the requirements! Also, I have some scenario questions about hosts displaying cards that have videos. @ignacionr are you also a host that's displaying cards? Or you're just an author sending cards to Bot Framework or Outlook or something? I fear we might be missing some host requirements, like host ability to pause the video if the user opens a popup dialog, etc. |
@andrewleader doing the button as an image in HostConfig is actually not that great a solution. Allowing the styling of the button to be done in CSS is a much better option and satisfies the customization needs. Besides, the design, at least for the HTML media player, calls for more than just the play button to be done as an overlay, and therefore additional properties would have to be added to HostConfig to handle the other button(s). I suggest we either:
|
HostConfig can be just one of the ways you can customize the button. In HTML it can be...
For compatibility and consistency with all the other hosts, the host config needs to be an option, but it doesn't need to be the only way. |
I'm saying it doesn't have to be that. In hindsight I dont think I agree with the "need" for the play button to be customizable via HostConfig in the first place. Let's not forget that the role of HostConfig is to provide a way for Host X to emulate Host Y's look and feel, not to be the overall customization story for Adaptive Cards on a single host. In this particular case, I really don't see why Host X would need to render its otherwise completely custom media player with Host Y's choice for the Play overlay button. It seems like a half baked story at best. So I am suggesting we change the spec. |
Hi @ignacionr - I am not sure if you plan to complete this work or not. I think I will pick it up in the coming days if that's OK with you. Let me know. |
@dclaux yes of course. It’s part of the dynamics of this. Happy to keep working together and looking forward to seeing your work. |
I think that @dclaux has implemented media and superseded this PR. |
Agreed. |
@dclaux the last feedback was incorporated, then had to work around merging (the fact that we work on one big file gives git some trouble merging automatically).
I put together a sample at http://media.into.cards/ but still don't like it much. Truth is, I'm out of ideas.
Help, please.
Thanks. Ignacio.//