Socket
Socket
Sign inDemoInstall

@nstudio/nativescript-exoplayer

Package Overview
Dependencies
0
Maintainers
8
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.1.0 to 6.1.1

1

common.d.ts

@@ -47,2 +47,3 @@ import { View, Property, EventData } from '@nativescript/core';

static IMAGETYPESTEREOLEFTRIGHT: number;
static iosAudioSessionCategory: string;
}

@@ -49,0 +50,0 @@ export declare const encryptionKeyProperty: Property<Video, any>;

1

index.android.d.ts

@@ -34,3 +34,2 @@ import { Video as VideoBase } from './common';

};
nativeView: com.google.android.exoplayer2.ui.PlayerView;
player: com.google.android.exoplayer2.ExoPlayer;

@@ -37,0 +36,0 @@ constructor();

@@ -49,11 +49,11 @@ import { View } from '@nativescript/core';

/**
* aspect/fill settings
* Android:
* When set to VideoFill.aspectFill, the aspect ratio of the video will not be honored and it will fill the entire space available.
* aspect/fill settings
* Android:
* When set to VideoFill.aspectFill, the aspect ratio of the video will not be honored and it will fill the entire space available.
* iOS:
* VideoFill.default = AVLayerVideoGravityResize
* VideoFill.aspect = AVLayerVideoGravityResizeAspect
* VideoFill.aspectFill = AVLayerVideoGravityResizeAspectFill
*/
* iOS:
* VideoFill.default = AVLayerVideoGravityResize
* VideoFill.aspect = AVLayerVideoGravityResizeAspect
* VideoFill.aspectFill = AVLayerVideoGravityResizeAspectFill
*/
fill: VideoFill;

@@ -64,10 +64,25 @@ static IMAGETYPEMONO: number;

/**
* encryption parameters
*/
public encryptionKey: string = null;
public encryptionIV: string = null;
public encryption: string = '';
/**
* encryption parameters
*/
public encryptionKey: string = null;
public encryptionIV: string = null;
public encryption: string = '';
/**
* (ios) Set the audio session playback category.
* backgroundAudio must evaluate to false for this to work.
* Available categories:
* - AVAudioSessionCategoryAmbient
* - AVAudioSessionCategoryAudioProcessing
* - AVAudioSessionCategoryMultiRoute
* - AVAudioSessionCategoryPlayAndRecord
* - AVAudioSessionCategoryPlayback
* - AVAudioSessionCategoryRecord
* - AVAudioSessionCategorySoloAmbient
* - AVAudioSessionCategoryAudioProcessing (Deprecated in iOS 10)
*/
static iosAudioSessionCategory: string;
/**
* Start playing the video.

@@ -74,0 +89,0 @@ */

@@ -20,3 +20,2 @@ import { Video as VideoBase } from './common';

private enableSubtitles;
nativeView: any;
constructor();

@@ -23,0 +22,0 @@ createNativeView(): UIView;

@@ -345,3 +345,3 @@ import { Application, Utils } from '@nativescript/core';

else {
audioSession.setCategoryError(AVAudioSessionCategoryPlayAndRecord);
audioSession.setCategoryError(Video.iosAudioSessionCategory || AVAudioSessionCategoryPlayAndRecord);
}

@@ -348,0 +348,0 @@ audioSession.setActiveError(true);

{
"name": "@nstudio/nativescript-exoplayer",
"version": "6.1.0",
"version": "6.1.1",
"description": "NativeScript plugin that uses the ExoPlayer video player on Android and AVPlayerViewController on iOS to play local and remote videos.",

@@ -5,0 +5,0 @@ "main": "index",

@@ -135,2 +135,31 @@ # @nstudio/nativescript-exoplayer

- **iosAudioSessionCategory - (string)** - _optional_
(iOS only) Static attribute to specify the device audio session playback category. 'backgroundAudio' on the class instance must be false for this to take effect. Available categories:
1. AVAudioSessionCategoryAmbient
2. AVAudioSessionCategoryAudioProcessing
3. AVAudioSessionCategoryMultiRoute
4. AVAudioSessionCategoryPlayAndRecord
5. AVAudioSessionCategoryPlayback
6. AVAudioSessionCategoryRecord
7. AVAudioSessionCategorySoloAmbient
8. AVAudioSessionCategoryAudioProcessing (Deprecated in iOS 10)
Details for these categories can be found on the [AVAudioSessionCategory](https://developer.apple.com/documentation/avfaudio/avaudiosessioncategory?language=objc) documentation.
Example usage:
```TS
import { NgModule } from '@angular/core';
import { Video } from '@nstudio/nativescript-exoplayer';
@NgModule({
// stuff
})
export class AppModule {
constructor() {
Video.iosAudioSessionCategory = 'AVAudioSessionCategoryPlayback';
}
}
```
## API

@@ -194,2 +223,3 @@

- gaudsonu98
- coltkenn2658

@@ -196,0 +226,0 @@ ## License

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc