question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Native playback Video.files Deprecated

See original GitHub issue

Issue Summary

In native playback the docs specify to use:

Video video = ...; // obtain a video you own as described above
ArrayList<VideoFile> videoFiles = video.files;

But recent version shows it as deprecated. What is the new way of doing it???

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
kevinzetterstromcommented, Mar 2, 2017

Hi @amank22 please still use the video.files array, as you will also receive HLS VideoFile objects in that array, whereas video.download only has progressive files. Also, video.download will only have VideoFiles when you have allowed a Video to be downloadable.

video.files is marked as Deprecated since in a future version we will no longer support it. We will end up moving to the video.play, but right now that is not open to the public. video.embed is also deprecated because video.play has a much more robust representation. The current deprecation warnings are there as a courtesy that these will change in a future release.

Once video.play is officially the way to obtain VideoFiles, we will update the Readme.

0reactions
thearith070commented, Oct 21, 2020

Dear @kevinzetterstrom video.play return null. Why it would like this? Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

File types supported by Windows Media Player
This article lists the multimedia file types that are supported by different versions of Windows Media Player.
Read more >
The Video Embed element - HTML - MDN Web Docs - Mozilla
The HTML element embeds a media player which supports video playback into the document. You can use for audio content as well, ...
Read more >
Supported media formats - Android Developers
The table below lists the Android media framework video encoding profiles and parameters recommended for playback using the VP8 media codec. SD ...
Read more >
Delivering Video Content for Safari - Apple Developer
Optimize your video playback by making use of low-power mode or by using a short video file in an image element instead of...
Read more >
How to fix: 'seek(to:)' was deprecated in iOS 11.0
I would like to be able to run my program and have my video play and loop. Instead, I get a blank white...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found