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

How to play a video from a data? I have my code at the comment. #220

Open
SamSundar1 opened this issue Sep 6, 2021 · 0 comments
Open

How to play a video from a data? I have my code at the comment. #220

SamSundar1 opened this issue Sep 6, 2021 · 0 comments

Comments

@SamSundar1
Copy link

I am trying to play a video from back4app. I can get the data off video (138365 bytes)). Is it possible to use this library to play the video?

let cell: VideoTableViewCell = tableView.dequeueReusableCell(withIdentifier: "VideoTableViewCell") as! VideoTableViewCell
var query = PFQuery(className:"Videos")
query.getObjectInBackground(withId: "kDBJQ8hFCK") { (parseObject, error) -> Void in
let videoFile = parseObject!["Question"] as! PFFileObject
videoFile.getDataInBackground { data, error in
//cell.playerView.loadVideoURL("")
}
return cell

    }
@SamSundar1 SamSundar1 changed the title How to play a video from a data? How to play a video from a data?I am trying to play a video from back4app. I can get the data off video (138365 bytes)). Is it possible to use this library to play the video? let cell: VideoTableViewCell = tableView.dequeueReusableCell(withIdentifier: "VideoTableViewCell") as! VideoTableViewCell var query = PFQuery(className:"Videos") query.getObjectInBackground(withId: "kDBJQ8hFCK") { (parseObject, error) -> Void in let videoFile = parseObject!["Question"] as! PFFileObject videoFile.getDataInBackground { data, error in //cell.playerView.loadVideoURL("") } return cell } Sep 6, 2021
@SamSundar1 SamSundar1 changed the title How to play a video from a data?I am trying to play a video from back4app. I can get the data off video (138365 bytes)). Is it possible to use this library to play the video? let cell: VideoTableViewCell = tableView.dequeueReusableCell(withIdentifier: "VideoTableViewCell") as! VideoTableViewCell var query = PFQuery(className:"Videos") query.getObjectInBackground(withId: "kDBJQ8hFCK") { (parseObject, error) -> Void in let videoFile = parseObject!["Question"] as! PFFileObject videoFile.getDataInBackground { data, error in //cell.playerView.loadVideoURL("") } return cell } How to play a video from a data? I have my code at the comment. Sep 6, 2021
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

1 participant