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

Ti.Media.VideoPlayer could support HTTPS streaming? #14073

Open
1 task done
Informate opened this issue Jun 23, 2024 · 5 comments
Open
1 task done

Ti.Media.VideoPlayer could support HTTPS streaming? #14073

Informate opened this issue Jun 23, 2024 · 5 comments
Labels
feature needs triage This issue hasn't been reviewed by maintainers

Comments

@Informate
Copy link

Informate commented Jun 23, 2024

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

At the moment the VideoPlayer do not fully support HTTPS video streaming, and trying to play an HTTPS video could crash your app.
This could also be one of the main reasons because ATS (Apple Transport Security) is disabled by default.
Could it be possible to implement HTTPS streaming in future versions?

Solution

Implement VideoPlayer HTTPS video streaming.

Alternatives

On iOS: Prefetch the video with Ti.Network.HTTPRequest and inject it in the player via the media attribute.
On any: Prefetch the video with Ti.Network.HTTPRequest and store to local file.

Platforms

Android & iOS

@Informate Informate added feature needs triage This issue hasn't been reviewed by maintainers labels Jun 23, 2024
@Informate Informate changed the title Ti.Media.VideoPlayer could support HTTPS? Ti.Media.VideoPlayer could support HTTPS streaming? Jun 23, 2024
@m1ga
Copy link
Contributor

m1ga commented Jun 23, 2024

For Android please check: https://github.com/m1ga/ti.exoplayer

@Informate
Copy link
Author

For Android please check: https://github.com/m1ga/ti.exoplayer

Thanks for the link! The main problem remains iOS which tends to crash on HTTPS.

I see that you have a great repository of beautiful modules, I have watched them one by one carefully. I give you all my compliments for your work!

I am a Titanium enthusiast of the first hour, my first App in the store still goes back to before Axway (2014), to when push notifications were managed from the web panel of the site.
I hope there will be an opportunity to collaborate with you again in the future!
I really appreciate your work, I hope to see you soon!

@m1ga
Copy link
Contributor

m1ga commented Jun 23, 2024

You're welcome and thanks 😄 I mostly do Android work that's why I had that module and infos ready. I have no clue about the iOS part and since you've selected iOS & Android I thought I'll link you to the module.

So hopefully an iOS developer is checking the iOS part

@AbdullahFaqeir
Copy link
Contributor

I'll check this

@Informate
Copy link
Author

For iOS it is possible to convert the video to HLS format and stream it via HTTPS I suppose.
Ffmpeg should support the conversion (as of ChatGPT) :

ffmpeg -i input.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls output.m3u8

And this should play on iOS via HTTPS. (Not tested at the moment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature needs triage This issue hasn't been reviewed by maintainers
Projects
None yet
Development

No branches or pull requests

3 participants