Simple plugin for loading full screen streaming video or audio.
Installations
npm install fitatu-cordova-plugin-streaming-media
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
8.9.1
NPM Version
6.4.1
Score
65.1
Supply Chain
91.1
Quality
75
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
Java (50.83%)
Objective-C (45.48%)
JavaScript (3.69%)
Developer
nchutchind
Download Statistics
Total Downloads
601
Last Day
1
Last Week
3
Last Month
12
Last Year
94
GitHub Statistics
391 Stars
83 Commits
287 Forks
29 Watching
1 Branches
15 Contributors
Package Meta Information
Latest Version
2.2.0
Package Id
fitatu-cordova-plugin-streaming-media@2.2.0
Unpacked Size
47.34 kB
Size
12.03 kB
File Count
18
NPM Version
6.4.1
Node Version
8.9.1
Total Downloads
Cumulative downloads
Total Downloads
601
Last day
0%
1
Compared to previous day
Last week
50%
3
Compared to previous week
Last month
100%
12
Compared to previous month
Last year
-42.7%
94
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
No dependencies detected.
Cordova Streaming Media plugin
For iOS and Android, by Nicholas Hutchind
Description
This plugin allows you to stream audio and video in a fullscreen, native player on iOS and Android.
- 1.0.0 Works with Cordova 3.x
- 1.0.1+ Works with Cordova >= 4.0
Installation
cordova plugin add https://github.com/nchutchind/cordova-plugin-streaming-media
iOS specifics
- Uses the AVPlayerViewController
- Tested on iOS 12 or later
Android specifics
- Uses VideoView and MediaPlayer.
- Creates two activities in your AndroidManifest.xml file.
- Tested on Android 4.0+
Usage
1 var videoUrl = STREAMING_VIDEO_URL; 2 3 // Just play a video 4 window.plugins.streamingMedia.playVideo(videoUrl); 5 6 // Play a video with callbacks 7 var options = { 8 successCallback: function() { 9 console.log("Video was closed without error."); 10 }, 11 errorCallback: function(errMsg) { 12 console.log("Error! " + errMsg); 13 }, 14 orientation: 'landscape', 15 shouldAutoClose: true, // true(default)/false 16 controls: true // true(default)/false. Used to hide controls on fullscreen 17 }; 18 window.plugins.streamingMedia.playVideo(videoUrl, options); 19 20 21 var audioUrl = STREAMING_AUDIO_URL; 22 23 // Play an audio file (not recommended, since the screen will be plain black) 24 window.plugins.streamingMedia.playAudio(audioUrl); 25 26 // Play an audio file with options (all options optional) 27 var options = { 28 bgColor: "#FFFFFF", 29 bgImage: "<SWEET_BACKGROUND_IMAGE>", 30 bgImageScale: "fit", // other valid values: "stretch", "aspectStretch" 31 initFullscreen: false, // true is default. iOS only. 32 keepAwake: false, // prevents device from sleeping. true is default. Android only. 33 successCallback: function() { 34 console.log("Player closed without error."); 35 }, 36 errorCallback: function(errMsg) { 37 console.log("Error! " + errMsg); 38 } 39 }; 40 window.plugins.streamingMedia.playAudio(audioUrl, options); 41 42 // Stop current audio 43 window.plugins.streamingMedia.stopAudio(); 44 45 // Pause current audio (iOS only) 46 window.plugins.streamingMedia.pauseAudio(); 47 48 // Resume current audio (iOS only) 49 window.plugins.streamingMedia.resumeAudio(); 50
Special Thanks
No vulnerabilities found.
No security vulnerabilities found.
Gathering detailed insights and metrics for fitatu-cordova-plugin-streaming-media