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

Facebook video can't be displayed in VideoView #44

Closed
ZueFe opened this issue May 25, 2020 · 5 comments
Closed

Facebook video can't be displayed in VideoView #44

ZueFe opened this issue May 25, 2020 · 5 comments

Comments

@ZueFe
Copy link

ZueFe commented May 25, 2020

Thumbnail is null and url refers to a fb page with the video rather then the video itself. Not sure this can be fixed tho (or am I missing something?).

@sokomishalov
Copy link
Owner

Please provide more information about the URL.
I'm not sure, but VideoVIew might require an embedded FB video link and direct video file link instead of just normal.
For that kind of purposes, I've implemented Skraper::resolve method which allows you to try to get a direct media link.

@ZueFe
Copy link
Author

ZueFe commented May 26, 2020

@sokomishalov tried basically the same thing as in the example app you provided, setting url from media.url didn't work. I've tried to use resolve method too, using media[0] as parameter but that didn't seem to do the trick either.

URL certainly isn't direct video file link.
media.url looks something like this:

https://facebook.com/dracibrno/posts/2909186149189222?__xts__%5B0%5D=68.ARAZIdo26of6hfjYkdSDXkzo5AileX8nX6CKqdR8vmVFD-EVU9SQNfo4NgLGZZ6LlLmWNO2XQ1fVkVEeC-NTpViwNh12xtdTIdllq6zGdFQl_iDXJpHkY38DaDz5_ORC6UkWviilRJ8NXyC-m48tof-5R_Q4Z49GtSiZk8pP0xxbrgFcV1huEmQ_VakRgUvH5XgzNaVtFFKxa5zNsbGQ-Md4rspHSlbyqto_Wk4i5JWUmAD6c2jrgEjrkKvB3MnWoQcabYkvMpDUgTzf0X3iNo3mlthtm9enQKdxV0EskpJoziEEFfbVo7zbSwvxlcsNzAH7nJ1s40MCmp6BDRslNoln1A&__tn__=-R

resolved url:

https://facebook.com/dracibrno/posts/2909186149189222?__xts__%5B0%5D=68.ARDd1z4FcSY8WYKw6mqQw0tWoCtImpLUkmnQjQyHFYVN3YZtP6j2YMkTuPVff0U2bD09r0Bw1kfXfhfj7REybz2hifbZiCfcQ8aImJMB_lJwLiBPmh4V1hmLygLG1J24qLQwVu3BgWvg2YxEwVvU7tBC_OIKuzDJodJsy40oKVRhVG-vVvSnmS4DVCJcBaPsNClKB4wzRlrs1qEkJHuzFrc3kZYMCCGqftzq32TL1D9MZqpztj8vYH_A8hR6PXA7sDb6_wUw910dus786s3LqrOFr42hfuOvBRkEPlB9al6IjP8hA7aPmCH6FryDlM-aShCOxuxTLJ8tvFuZQQEyKfBv1g&__tn__=-R, aspectRatio=1.7777777777778, thumbnail=Image(url=https://scontent-prg1-1.xx.fbcdn.net/v/t31.0-1/p200x200/17631988_1248516661922854_2806175819465310376_o.png?_nc_cat=101&_nc_sid=dbb9e7&_nc_ohc=qTeHxY3_akQAX8bKlH4&_nc_ht=scontent-prg1-1.xx&oh=1b4613595ae61bfbe939017ca9046a98&oe=5EF368F7

@sokomishalov
Copy link
Owner

sokomishalov commented May 27, 2020

Thank you for the issue!
I've released 0.4.2 version with improved FB media handling.
Please let me know if it's still reproducible

@ZueFe
Copy link
Author

ZueFe commented May 27, 2020

@sokomishalov
hey, thanks! Thumbnail is working now, but I still wasn't able to load video (either straight from url, or using resolved url) :(
Was trying it via your example application, unfortunately no clue what could be wrong :(

EDIT: No wait, spoke too soon, I'm just dumb heh, everything works now, thank you!!

@sokomishalov
Copy link
Owner

Not at all, glad to hear that :)
I'll close this issue.

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

No branches or pull requests

2 participants