stefansundin / rssbox

:newspaper: I consume the world via RSS feeds, and this is my attempt to keep it that way.
https://github.com/stefansundin/rssbox/discussions/64
GNU Affero General Public License v3.0
774 stars 73 forks source link

Autoplay Videos #26

Closed Linkerss closed 6 months ago

Linkerss commented 5 years ago

Hey Stefan, Is it possible to autoplay Twitter and Instagram videos but mute them?

Thank you

stefansundin commented 5 years ago

For Twitter, I believe so. You would need to add the autoplay and muted attributes to the video tag on this line: https://github.com/stefansundin/rssbox/blob/271e80b066b237c5db77e029a174a8b1a94ba48d/config/initializers/05-string.rb#L192

For Instagram, not as far as I know. I don't try to get the URL to the video file, so I just embed the whole post in case there is a video in it.

Linkerss commented 5 years ago

I have no experience with this. Could you do it for me on your App on my Heroku account?

Thank you

Linkerss commented 5 years ago

Stefan, How and where can I find that video line? Is it in your App? Or inside WP?

I've tried to change video attributes in WP Core files but it didn't work,

Thank you

stefansundin commented 5 years ago

As the code snippet explains, it is in the file rssbox/config/initializers/05-string.rb on line 192.

Linkerss commented 5 years ago

The thing is I'm not really sure how to get into rssbox config files. Could you please help?

I would like to add loop feature too if possible to have Gifs playing normally,

Thank you

stefansundin commented 5 years ago

You could make all of these changes on GitHub. First, you would need to fork the repository (use the fork button in the top right corner). Then, find the file and click the Edit button. Make the necessary changes.

Then, to deploy you would need to use a Terminal. In very broad terms, you would do the following:

  1. First you would git clone [...] your fork.
  2. Then you'd need to add your Heroku remote with git remote add heroku [...].
  3. Then, you would push your changes to the Heroku remote in order to deploy (git push heroku master).
Linkerss commented 5 years ago

Not really sure why you forcing users to do these things. I'm not a developer. I don't know how to do this.

I just ask for simple help and I respect your work and you as an App Author

stefansundin commented 5 years ago

I am not forcing you to do anything. You don't need to use the app if you don't want to. I have told you what steps you need to take to achieve your goal, but you can't expect me to perform these tasks for you.

Linkerss commented 5 years ago

Hey Stefan I made it. I'm so happy about it.

I did changes through Heroku.

Thank you so much :)

Linkerss commented 5 years ago

Stefan, Gifs and YouTube videos are still not able to do autoplays.

Any chance to change that?

Thank you

stefansundin commented 5 years ago

For YouTube, you need to add an &autoplay=1 parameter to two places:

Second place is only for YouTube feeds themselves, not sure if you use them, but here it is:

What gifs are you looking to add autoplay to?

Linkerss commented 5 years ago

Hey Stefan, YouTube autoplays are still not on even though I did everything you said.

I'm talking about Twitter Gifs autoplay. They seems to be short videos but somehow they still don't do autoplays after update,

Thank you