Comments (21)
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.
can you give me the url of the video you tested?
from ctvideoplayerview.
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.
Any update on this?
from ctvideoplayerview.
im still working on it
from ctvideoplayerview.
Thank you. Are you able to reproduce the issue or did you need me to help out some how?
from ctvideoplayerview.
Anything further? I'm considering moving away from this library however really don't want to.
from ctvideoplayerview.
sorry for my late replay, seems that the url is not available now?
from ctvideoplayerview.
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.
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.
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.
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.
from ctvideoplayerview.
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.
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.
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.
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.
from ctvideoplayerview.
ok
from ctvideoplayerview.
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
- open
Window
in XCode - select 'Devices and Simulators',
- select the device in the left, and select the Installed Apps in the right
- click the setting gear and select
Download Container
- 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.
@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:
and this project has a demo for "download then play":
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)
- 崩溃
- Doesn't compile with latest version of HandyFrame HOT 2
- Full screen landscape HOT 1
- Fullscreen not working when embedded in UITableViewCell HOT 1
- 反馈下载失败问题
- license? HOT 1
- import not working correctly with cocoapods HOT 1
- 10.3.3 not support some video HOT 7
- build error HOT 2
- Property 'ct_size', 'ct_width', 'ct_height' not found on object of type 'UIView *' HOT 2
- 视频播放完后不走videoViewDidFinishPlaying回调 HOT 4
- 支持的视频格式 HOT 1
- RTMP URL Gives Error: NSURLConnection finished with error - code -1002 HOT 3
- More videos in a single view raises error -11839 "Cannot Decode" HOT 5
- Error after compile library with cocoa pods HOT 3
- 下载完成后状态,和进度数据库存储问题,如图
- indicator 显示和隐藏的时机不对
- please add Carthage support
- Could not build Objective-C module 'CTVideoPlayerView', Xcode 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctvideoplayerview.