iOS Question VideoView subtitles

Sasuke Sama

Active Member
Licensed User
Not directly. You will need to embed the subtitles file in the video file. See this answer: https://stackoverflow.com/a/22466620/971547
been trying to get this work for months now :(
the thing is i get two links from an api
one with http mp4 video
the other is http srt file
i dont care how to get it work in a webview or native player
any help? :( its a big project and im almost done thats the only thing left
 
Upvote 0

moster67

Expert
Licensed User
Longtime User
There are some projects on GitHub that could provide a solution but it is has been a long time since I did something with Swift or Objective-C and I have never wrapped anything for B4i. I guess you could add a request on the job offer section of the forum and perhaps somebody can help or maybe Erel can help out.

However, maybe you can simply add a panel above the player in your layout and show the text from the srt file.
You will need to synchronize the subtitles (time stamps should already be included in the srt-file) with the player. There was a forum-user who did the same for B4A so maybe you can do it with your B4i project? See these threads:
https://www.b4x.com/android/forum/threads/srt-subtitle-timer1-show-hide-subtitle.42376/#post-259800
https://www.b4x.com/android/forum/t...signer-but-bottom-bar-show.48991/#post-304872

Good luck.
 
Upvote 0

Sasuke Sama

Active Member
Licensed User
There are some projects on GitHub that could provide a solution but it is has been a long time since I did something with Swift or Objective-C and I have never wrapped anything for B4i. I guess you could add a request on the job offer section of the forum and perhaps somebody can help or maybe Erel can help out.

However, maybe you can simply add a panel above the player in your layout and show the text from the srt file.
You will need to synchronize the subtitles (time stamps should already be included in the srt-file) with the player. There was a forum-user who did the same for B4A so maybe you can do it with your B4i project? See these threads:
https://www.b4x.com/android/forum/threads/srt-subtitle-timer1-show-hide-subtitle.42376/#post-259800
https://www.b4x.com/android/forum/t...signer-but-bottom-bar-show.48991/#post-304872

Good luck.
Unfortunately that didnt work
When i go in fullscreen mode every other object above the videoview disappear as if the videoview takes the screen for itself
I tried using a web player inside a webview which works fine until i go into fullscreen mode the same thing happens the videoview takes over and ignore every other thing
:'(
 
Upvote 0
Top