Cloudflare Stream

Backendless Version -Online

Client SDK-REST

Application ID N/A

Hello, I’m trying to hit the Cloudflare Stream endpoint at https://api.cloudflare.com/client/v4 and throw that into backendless API services > Imported — and the Save button animates to Saving for about a minute or so, and then the console tells me there’s a network error in the backendless javascript. I’ve already reached out to cloudflare community to see if there’s something wrong on their end, but I’m wondering if any backendless devs have successfully connected to Cloudflare Stream?

Hi, @Vin_TheComputerGuy

Welcome to the community and thanks for trying out Backendless! What SDK do you use? It it REST or still JS\Codeless? And what error do you see in the Console?

Regards, Marina

In the Backend, I am going to Cloud Code, then add new Imported API Service, and I am attempting to hit the cloudflare stream API.

I hit the save button, which animates “Saving”, and after about 30-40 seconds, this error is in the browser console:

_/</s.onerror@Backendless bundle.8a6a3612.js:2:709290

v Backendless

If I attempt a second time, this error in the browser console:

/</s.onerror@Backendless
EventHandlerNonNull*
/<@Backendless
_@Backendless
t/</E.send@Backendless
value@Backendless
value@Backendless
v/</<@Backendless
dispatch@Backendless
O/<@Backendless
v/</<@Backendless
o/n[o]@Backendless
value@Backendless
@Backendless
onClick@Backendless
Ve@Backendless
Ye@Backendless
Ro/<@Backendless
Ro@Backendless
Io@Backendless
Po/<@Backendless
Pe@Backendless
Po/<@Backendless
Po@Backendless
Qt@Backendless
Xt@Backendless
…/node_modules/scheduler/cjs/scheduler.production.min.js/t.unstable_runWithPriority@Backendless
zr@Backendless
je@Backendless
Kt@Backendless
bundle.8a6a3612.js:2:709290
v Backendless
(Async: promise callback)
value Backendless
v Backendless
dispatch Backendless
O Backendless
v Backendless
o Backendless
value Backendless
Backendless
onClick Backendless
Ve Backendless
Ye Backendless
Ro Backendless
Ro Backendless
Io Backendless
Po Backendless
Pe Backendless
Po Backendless
Po Backendless
Qt Backendless
Xt Backendless
unstable_runWithPriority Backendless
zr Backendless
je Backendless
Kt Backendless

What are you trying to accomplish here? Please describe what you actually want to achieve (i.e. do not say “I want to import a service”…")

Okay - we are looking to use the video player widget available in the toolbox for a backendless app, and we would like to stream our video on-demand from cloudflare stream into the app we are going to build using backendless.

Do you have a sample URL of a stream you’d like to play?

Sure Mark –

For actually streaming the videos, we have been given HLS and DASH URLs

HLS - https://videodelivery.net/028336ccb750f65e5ea920306683fdbf/manifest/video.m3u8

DASH - https://videodelivery.net/028336ccb750f65e5ea920306683fdbf/manifest/video.mpd

However, I thought that we might be able to hit the well-known API endpoint at https://api.cloudflare.com/client/v4/ to add the API in the console.

I am seeing in the forums for cloudflare that other devs are complaining that the endpoint is no longer generating Swagger/similar, and I can imagine then that would be a problem if the backendless console is expecting that format for a service descriptor.

I’m trying to do as much as I can using the console before resorting to opening up VS Code and using the backendless API, which I was doing to satisfy the missions (BTW, an aside – whoever came up with the idea of turning the learning path into a game is awesome. It inspired me to actually participate.)

Back to the matter at hand, as a follow up to programming, then, in VS Code, how would I put code written on my machine, for example, xamarin/ios/android, onto backendless, if it came to that? I didn’t happen to see that in the missions. Conversely, how would I download my app from backendless to my machine to do dev work, should that be needed?

This is a decent platform. I appreciate the help so far.

Thank you.

Further investigating, I see that I haven’t quite visited all of the documentation yet - that there’s docs for codeless and different flavors of the SDK.

Wow, this visual “codeless” programming is funky looking. Is it a particular language to backendless or does it exist out in the world?

As a C# dev, I don’t know if I have time to learn the visual codeless stuff for a rapid prototype, so I guess I’m back to the question of, if I develop the prototype for the customer using the .NET SDK, coding the subset of Cloudflare API calls as the only ones I need for the app, how do I get that running as an app on backendless? I’m digging the rest of the docs, so far - very helpful. However, I’m not seeing how to deploy/publish from local to backendless.

Hi everybody! (Hi Dr. Nick!)

Will the built-in video player widget play a video stream? So far, we’re not seeing it work in preview on desktop – we’ve sent the HLS and the DASH urls directly to the Source URL logic of the video component in the toolbox – is this the right component to use?

BTW, good news – got the codeless version of making an HTTPS GET to Cloudflare Stream work to get back the JSON with the video metadata.

Bro, you guys don’t support DASH?

GEThttps://supremewind.backendless.app/api/files/ui-builder/containers/default/index.html?page=landing[HTTP/1.1 200 OK 452ms]

GEThttps://unpkg.com/less@3.12.2/dist/less.min.js[HTTP/2 200 OK 0ms]

GEThttps://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js[HTTP/3 200 OK 0ms]

GEThttps://supremewind.backendless.app/api/files/ui-builder/containers/default/main.js[HTTP/1.1 200 OK 401ms]

GEThttps://supremewind.backendless.app/api/files/ui-builder/library/sdk/sdk.js[HTTP/1.1 200 OK 525ms]

GEThttps://videodelivery.net/028336ccb750f65e5ea920306683fdbf/manifest/video.mpd[HTTP/3 200 OK 0ms]

HTTP “Content-Type” of “application/dash+xml” is not supported. Load of media resource https://videodelivery.net/028336ccb750f65e5ea920306683fdbf/manifest/video.mpd failed. index.html

GEThttps://supremewind.backendless.app/api/files/ui-builder/containers/default/pages/landing/components/page/bundle.js[HTTP/1.1 200 OK 269ms]

HTTP “Content-Type” of “application/dash+xml” is not supported. Load of media resource https://videodelivery.net/028336ccb750f65e5ea920306683fdbf/manifest/video.mpd failed. index.html

GEThttps://videodelivery.net/028336ccb750f65e5ea920306683fdbf/manifest/video.mpd[HTTP/3 200 OK 0ms]

GEThttps://cdn.dashjs.org/latest/dash.all.min.js[HTTP/1.1 200 OK 571ms]

Cannot play media. No decoders for requested formats: application/dash+xml, application/dash+xml

Sorry, I do not know what DASH is. It sounds like it is a specialized encoding. You can embed your own media player as Backendless supports custom components now.