superm0 / HCVimeoVideoExtractor

HCVimeoVideoExtractor is an easy way to extract the Vimeo video details like title, thumbnails and mp4 URL's which then can be used to play using AVPlayerView.
MIT License
36 stars 19 forks source link

Error = Failed to retrive mp4 video url #13

Closed nithintwobase closed 1 year ago

nithintwobase commented 1 year ago

Some videos are getting error while playing videos. iOS version 15.6.1

error response : - Error = Failed to retrive mp4 video url tried with both methods given in repo

nivritgupta commented 1 year ago

@nithintwobase did you find any solutions?

nyan-lin-tun commented 1 year ago

@nithintwobase do you use fetchVideoURLFrom(url: ) or fetchVideoURLFrom(id: ) ?

nithintwobase commented 1 year ago

I tried both methods

On Sun, Oct 2, 2022, 23:08 Nyan Lin Tun @.***> wrote:

@nithintwobase https://github.com/nithintwobase do you use fetchVideoURLFrom(url: ) or fetchVideoURLFrom(id: ) ?

— Reply to this email directly, view it on GitHub https://github.com/superm0/HCVimeoVideoExtractor/issues/13#issuecomment-1264695597, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW6RKV3GCYXVYBR4RLP6Y3DWBHCBVANCNFSM6AAAAAAQFPHKWA . You are receiving this because you were mentioned.Message ID: @.***>

nyan-lin-tun commented 1 year ago

for me using the fetchVideoURLFrom(url: ) solved the issue

nivritgupta commented 1 year ago

@nithintwobase @nyan-lin-tun Since yesterday this library stop working (only for new videos) , old videos are working, they are already on Vimeo cloud) , I ll give you example.

I checked the old videos JSON data and compare with the new video's JSON , check the screenshots.

old Videos JSON data in which we get the videos URL from this path progressive

Screen Shot 2022-10-02 at 21 07 21

now if you upload a new video on Vimeo server and trying to get the JSON using HCVimeoVideoExtractor then you will find progressive this key return empty data.

here is the screenshot

Screen Shot 2022-10-02 at 21 07 46
nithintwobase commented 1 year ago

i get an error like this mentioned below.

Printing description of data:

▿ 3 elements

▿ 0 : 2 elements

- key : "title"

- value : Sorry

▿ 1 : 2 elements

- key : "view"

- value : 7

▿ 2 : 2 elements

- key : "message"

- value : This video does not exist.

but the same vimeo video work in Android & web

Thanks & Regards,

Nithin Shenoy s Software Engineer

Mobile: +91 942 720 1284

Email: @.*** Web: www.2basetechnologies.com

[image: Join 2base at Facebook]

[image: Join 2base at Twitter] http://www.twitter.com/2basetech

[image: Join 2base at LinkedIn] http://www.linkedin.com/companies/2base-technologies

On Mon, Oct 3, 2022 at 9:30 AM Swift Developer @.***> wrote:

@nithintwobase https://github.com/nithintwobase @nyan-lin-tun https://github.com/nyan-lin-tun Since yesterday this library stop working (only for new videos) , old videos are working, they are already on Vimeo cloud) , I ll give you example.

I checked the old videos JSON data and compare with the new video's JSON , check the screenshots.

old Videos JSON data in which we get the videos URL from this path progressive

[image: Screen Shot 2022-10-02 at 21 07 21] https://user-images.githubusercontent.com/1904874/193498996-69303e1c-9f7b-48c3-b40c-fd48aefda0f0.png

now if you upload a new video on Vimeo server and trying to get the JSON using HCVimeoVideoExtractor then you will find progressive this key return empty data.

here is the screenshot

[image: Screen Shot 2022-10-02 at 21 07 46] https://user-images.githubusercontent.com/1904874/193499192-f7684be7-94b2-408c-b11d-1ae9c8167ac5.png

— Reply to this email directly, view it on GitHub https://github.com/superm0/HCVimeoVideoExtractor/issues/13#issuecomment-1264898969, or unsubscribe https://github.com/notifications/unsubscribe-auth/AW6RKV4RB2Y2XH5MFLAHGE3WBJK6LANCNFSM6AAAAAAQFPHKWA . You are receiving this because you were mentioned.Message ID: @.***>

nyan-lin-tun commented 1 year ago

@nivritgupta seem there are some changes from the Vimeo

RajaZahid commented 1 year ago

@nithintwobase Did you get its solution. I am also facing same issue. Working fine for older videos but not for new videos.

superm0 commented 1 year ago

this issue has been resolved with the latest update. for new Vimeo videos, the video URL can be retrieved through .Quality1080p or .QualityUnknown

nivritgupta commented 1 year ago

@superm0 the issue is not solved yet , I checked and trying to retrieve the videos with .Quality1080p or .QualityUnknown only and found this node from JSON still return nil data , I am not sure why you close this issue.

progressive = ( );

superm0 commented 1 year ago

@nivritgupta can you share your vimeo url?

nivritgupta commented 1 year ago

@nivritgupta can you share your vimeo url?

Never mind the problem is fixed now , thanks