Giter VIP home page Giter VIP logo

Comments (21)

 avatar commented on July 23, 2024 1

I resolved this issue myself. The server needs to send byte-range headers for the library and iOS 10+ to work with streaming protocols.

I suggest you add this to your README or implement support to download then watch instead of streaming.

from ctvideoplayerview.

casatwy avatar casatwy commented on July 23, 2024

can you give me the url of the video you tested?

from ctvideoplayerview.

 avatar commented on July 23, 2024

https://backend.OBSCURED.com:1337/parse/files/OBSCURED/a2d8aec7a78231c8c73eb2a8002283a7_PF-VID-2017-11-23T22-06-10AEDT.mov

This is one of many videos all doing the same thing. It is only happening on videos longer than 10 seconds. I have verified this with a table view of over 100 records as wel as just a uiviewcontroller with one video in it

from ctvideoplayerview.

 avatar commented on July 23, 2024

Any update on this?

from ctvideoplayerview.

casatwy avatar casatwy commented on July 23, 2024

im still working on it

from ctvideoplayerview.

 avatar commented on July 23, 2024

Thank you. Are you able to reproduce the issue or did you need me to help out some how?

from ctvideoplayerview.

 avatar commented on July 23, 2024

Anything further? I'm considering moving away from this library however really don't want to.

from ctvideoplayerview.

casatwy avatar casatwy commented on July 23, 2024

sorry for my late replay, seems that the url is not available now?

from ctvideoplayerview.

 avatar commented on July 23, 2024

Works on this end mate......try clicking it and it will load. If not post a photo of the error you're receiving

from ctvideoplayerview.

casatwy avatar casatwy commented on July 23, 2024

I can download it with curl, but can not play it with safari, I will try to download it, and play it with my library, to see wether your issue will happen again

from ctvideoplayerview.

 avatar commented on July 23, 2024

That seems to be an issue specific to either safari or your machine/network. I am using chrome and it works through a browser.

from ctvideoplayerview.

casatwy avatar casatwy commented on July 23, 2024

I played the downloaded video with my library, it works fine, but can not play it remotely. I have pushed my code to GitHub.

when you run my project, the Single Remote Video will play the url you gave me, it not even play.

the Single Native Video will play the video that I download from your URL, it works fine.

I think it could be a networking issue, I will try to dig it more.

from ctvideoplayerview.

 avatar commented on July 23, 2024

from ctvideoplayerview.

casatwy avatar casatwy commented on July 23, 2024

I have tried other library such as MD360Player4iOS, the issue keeps.

now I think it could be a issue of the video, could you tell me how you created this video?

from ctvideoplayerview.

casatwy avatar casatwy commented on July 23, 2024

Maybe some problem with the compression process caused this. Because the error says that "content range mismatch".

both CTVideoPlayerView and MD360Player4iOS reported the same error.

from ctvideoplayerview.

 avatar commented on July 23, 2024

I've already noted that error on the StackOverflow link I sent through. I thought the same thing.

My compression code is below:

AVURLAsset *urlAsset = [AVURLAsset URLAssetWithURL:inputURL options:nil]; AVAssetExportSession *exportSession = [[AVAssetExportSession alloc] initWithAsset:urlAsset presetName:AVAssetExportPresetMediumQuality]; exportSession.outputURL = outputURL; exportSession.outputFileType = AVFileTypeQuickTimeMovie; exportSession.shouldOptimizeForNetworkUse = YES; [exportSession exportAsynchronouslyWithCompletionHandler:^{ completion(exportSession); }];

from ctvideoplayerview.

casatwy avatar casatwy commented on July 23, 2024

do you have the origin video?I want to write a new compress code to test it.

you can send the video file to my email: [email protected]

from ctvideoplayerview.

 avatar commented on July 23, 2024

from ctvideoplayerview.

casatwy avatar casatwy commented on July 23, 2024

ok

from ctvideoplayerview.

casatwy avatar casatwy commented on July 23, 2024

seems that your compress code have no problem.

I just ran the LLSimpleCamera. After I finished video recording, I fetched the video file that LLSimpleCamera just recorded and find out that it can not play by QuickTime.

And I switched to the UIImagePickerController to record the video, it totally works fine.

my suggestion is that you can consider switch to the official video recording tool: UIImagePickerController. It is also highly customizable, you can check the official document for more detail.

I posted the test code in this repo, and the video recording code in a new view controller:VideoRecordViewController.

in the Supporting Files there is origin.mov which comes from LLSimpleCamera, and ImagePickerOrigin.MOV which comes from UIImagePickerController.

I don't know why LLSimpleCamera have this issue, but UIImagePickerController works well.

here is a tip if you want to get the video file your device just recorded, you can

  1. open Window in XCode
  2. select 'Devices and Simulators',
  3. select the device in the left, and select the Installed Apps in the right
  4. click the setting gear and select Download Container
  5. double finger tap the package you just downloaded, and select Show package contents, you can find the video the device just recorded somewhere in this directory.

hope this is useful to you.

from ctvideoplayerview.

casatwy avatar casatwy commented on July 23, 2024

@Xenero thank you for your help! I'm really appreciate what you have done on this issue!

CTVideoPlayerView do support "download" , there is a category named 'download' for CTVideoView:

https://github.com/casatwy/CTVideoPlayerView/blob/master/CTVideoView/CTVideoView/Categories/CTVideoView/Download/CTVideoView%2BDownload.h

and this project has a demo for "download then play":

https://github.com/casatwy/CTVideoPlayerView/tree/master/CTVideoView/DemoControllers/DownloadThenPlay

just run this project (run pod update first), and you will see the "MP4 Download Then Play" in the table view.

from ctvideoplayerview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.