-
Notifications
You must be signed in to change notification settings - Fork 59
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
Nativescript videoplayer not showing on tns build (ios) #158
Comments
@hetd54 - |
Yes this is an iOS 13 device (auto update was unfortunately on)
iPad Air 3
Version 13.1
…On Tue, Oct 29, 2019, 1:35 AM Nathanael Anderson ***@***.***> wrote:
@hetd54 <https://github.com/hetd54> -
Is this an iOS 13 device?
Which device?
which version of iOS?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#158?email_source=notifications&email_token=AIP5B2NJTOYRNIPUAPMSRN3QQ7DSTA5CNFSM4JF32ZH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECPJM7Q#issuecomment-547264126>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIP5B2N663IFHGKVXBJFCH3QQ7DSTANCNFSM4JF32ZHQ>
.
|
Did you try adding a I just tested natiescript-exoplayer (which basically uses the same code as this for the iOS side) on a ios 12.4 and ios 13.2 device and the video player worked on all local and remote url's I threw at it. However, my app does use width & height on it. Using NS 6.12 |
Thank you so much for helping me with this issue. I tried your suggestion,
and I get the same behavior as I described above (it works in debug mode
when you make a change, but when you close and reopen or try to build, it
does not work).
…On Tue, Oct 29, 2019 at 12:46 PM Nathanael Anderson < ***@***.***> wrote:
Did you try adding a width="300" to your code. Different iOS versions
sometimes won't render things properly without a width...
I just tested natiescript-exoplayer (which basically uses the same code as
this for the iOS side) on a ios 12.4 and ios 13.2 device and the video
player worked on all local and remote url's I threw at it.
However, my app does use width & height on it.
Using NS 6.12
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#158?email_source=notifications&email_token=AIP5B2O7CNF3HM2DDBO3X5LQRBSGXA5CNFSM4JF32ZH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECRHZHA#issuecomment-547519644>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIP5B2OQ6XYRMK5CJDCEJBTQRBSGXANCNFSM4JF32ZHQ>
.
|
As an update, I was able to install and run successfully on a device with
ios 12.4.1 installed on it. Therefore, it seems like this only is an issue
with ios 13.
On Wed, Oct 30, 2019 at 4:01 PM Heather Tarr <[email protected]>
wrote:
… Thank you so much for helping me with this issue. I tried your suggestion,
and I get the same behavior as I described above (it works in debug mode
when you make a change, but when you close and reopen or try to build, it
does not work).
On Tue, Oct 29, 2019 at 12:46 PM Nathanael Anderson <
***@***.***> wrote:
> Did you try adding a width="300" to your code. Different iOS versions
> sometimes won't render things properly without a width...
>
> I just tested natiescript-exoplayer (which basically uses the same code
> as this for the iOS side) on a ios 12.4 and ios 13.2 device and the video
> player worked on all local and remote url's I threw at it.
>
> However, my app does use width & height on it.
>
> Using NS 6.12
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#158?email_source=notifications&email_token=AIP5B2O7CNF3HM2DDBO3X5LQRBSGXA5CNFSM4JF32ZH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECRHZHA#issuecomment-547519644>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AIP5B2OQ6XYRMK5CJDCEJBTQRBSGXANCNFSM4JF32ZHQ>
> .
>
|
Have you tried the Exoplayer; it does use a slightly different code base. We also very recently rewrote some of the setup functions to solve a black screen issue. |
I have the same problem also with exoplayer |
problem solved: it does not work if registerElement is put in main.ts, but it work if it is put in the page controller |
Hello @NathanaelA I did try Exoplayer and had the same issue. I spent a LOT of time debugging and I think there were several issues. The problem is mainly with the way NativeScript Layouts-- they seem to work differently with ios 13? It may also be an issue with how I understand NativeScript Layouts -- but previously the way I did it worked fine prior to recently. I had to stop nesting Layouts within other Layouts in order to get it to work! Previously, my layout was this:
And now it works with this:
|
Environment
CLI: 6.1.2
Xcode: 11.1.0
tns-ios: 6.1.0
Describe the bug
When building for ios 13, videos do not show up in the view (but they are there, and they do play, because you can hear the sound of the video). You can get the videos to show up temporarily the following way:
"tns run ios"
When the app opens, and the video isn't displaying, change anything in the file (like on the xml page)
When the app updates and re-opens, the video will be there.
However, any time you close the app manually and reopen it, the video is no longer there (but it plays in the background again).
To Reproduce
build a plain typescript app
add nativescript-videoplayer plugin
add to your xml file:
<VideoPlayer:Video id="nativeVideoPlayer" controls="false" autoplay="true" height="300" src="https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" />
tns run ios
You will see that the video is not there, but you can hear it playing.
Change anything in the file (like on the xml page)
When the app updates and re-opens, the video will be there.
Close the app manually, and reopen
The video (again) is not there, but you can hear it playing.
The text was updated successfully, but these errors were encountered: