We are integrating our app from Parse to Backendless. We have a fully functional ChatSDK which enables users to send audio, video and image messages.
We mainly used Parse for storing the data files meaning users could quickly stream them by downloading the file from a URL. The issue is that audio and video files don’t seem to play even when saved and used in exactly the same way as their Parse alternatives.
I have checked the permissions in my dashboard and they are all set to enable audio and video streaming. I have also found this answer but it doesn’t clearly explain the problem (it is also in swift and not objective-C)
Currently the video code looks like this:
_videoPlayer = [[MPMoviePlayerController alloc] initWithContentURL:url];
// Set control style to default
_videoPlayer.controlStyle = MPMovieControlStyleDefault;
_videoPlayer.shouldAutoplay = YES;
[self.view addSubview:_videoPlayer.view];
[_videoPlayer setFullscreen:YES animated:YES];
I don’t see why switching to a Backendless URL would not work or how this could be a problem with the code. Similarly with the audio code, we load it from a URL and it works with Parse but not with Backendless.
There is no easy way to monitor the response headers from Parse short of connecting to the iPhone via a proxy and using a network monitor tool to intercept them.
Do you think the devs will be able to look into this issue in the near future? We will be migrating around 500 clients across to Backendless so we want to be sure that we can support our core products once we commit to Backendless as a product.
We are happy to help out but I don’t really know how I would go about doing this. There are quite a few different answers on Stackoverflow. Could I analyse it using the Firefox extension httpfox?
We are getting closer to our handover date from Parse to Backendless so really need to have this fixed as soon as possible.
If you can give me information on how to go about it I will do what I can to help out,
Please, is there any work around for the above issue because i am in the same situation now. Will appreciate if you help me out. Thanks. { Can’t play audio or video from url of files store on backendless}
Do you use public URL for playing media?
Header may be seen in Browsers console on Network tab. Please firstly compare the content type header of files got from Parse and Backendless.
I suppose, it may be related to the fact that mymusiccloud sets Content-Type header to audio/mpeg, while we set it to a broader one, which is application/octet-stream.
Have you tried setting up our samples from the documentation, do they work for you?
I have not tried setting up any sample from your documentation. I didn’t see docs for android media streaming when i started the project so I am using a different media player which works for all files expect those stored on backendless.
Please can i have the link to the sample docs you are talking about?
Can’t I play files with octet-stream headers using any other media player apart from those in your docs?..Just asking