MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Ramez
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 23
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM_Webradio

      Great, That’s exactly what I was thinking of doing but I dunno how cause i’m not a programmer :) :D but I hope that my ideas help,
      1- you can use MediaElement and it’s NPM Link instead of jplayer as it can play almost all extensions "mp3,rtmp,mp4,rtsp…etc I’ve digged into the code and found it’s nicely detect streaming

      var hasFlash = PluginDetector.hasPluginVersion('flash', [10, 0, 0]);
      
      if (hasFlash) {
      	_media.typeChecks.push(function (url) {
      		url = url.toLowerCase();
      
      		if (url.startsWith('rtmp')) {
      			if (~url.indexOf('.mp3')) {
      				return 'audio/rtmp';
      			} else {
      				return 'video/rtmp';
      			}
      		} else if (/\.og(a|g)/i.test(url)) {
      			return 'audio/ogg';
      		} else if (~url.indexOf('.m3u8')) {
      			return 'application/x-mpegURL';
      		} else if (~url.indexOf('.mpd')) {
      			return 'application/dash+xml';
      		} else if (~url.indexOf('.flv')) {
      			return 'video/flv';
      		} else {
      			return null;
      		}
      	});
      

      2- Alternatively you can push the streaming link (can also support local files .srtm and m3u8) to vlc using

      cvlc //web link or file goes here
      

      Note that your local file must NOT have a space in it’s name, don’t really know if this has a fix around?
      so your main task is to provide a nice UI for the mirror player and vlc will do the hard job in the background. And yes it does need vlc to be installed which fortunatly raspbian and almost all 3rd OSes comes with
      3-why not relaying on the nice UI of MP3Player by asim or at least I can help you providing a good skin "i’m not a programmer but am a good photoshopper :) "
      4- lastly, I’ve made a small library of straeming links "arabic contents imho! it’s my pleasure to make other counrty based list and share it so you can even create a new option/payload in your module specifying counrty and it will load it’s specific file containing country’s channels :thumbs_up:

      posted in Entertainment
      R
      Ramez
    • RE: MagicMirror and RetroPie

      @ramez I’ve made a script that runs MM from RetroPie but when try to run it didn’t start here is the npm log file…

      1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
      2 info using npm@5.6.0
      3 info using node@v9.11.2
      4 verbose run-script [ 'prestart', 'start', 'poststart' ]
      5 info lifecycle magicmirror@2.4.1~prestart: magicmirror@2.4.1
      6 info lifecycle magicmirror@2.4.1~start: magicmirror@2.4.1
      7 verbose lifecycle magicmirror@2.4.1~start: unsafe-perm in lifecycle true
      8 verbose lifecycle magicmirror@2.4.1~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
      9 verbose lifecycle magicmirror@2.4.1~start: CWD: /home/pi/MagicMirror
      10 silly lifecycle magicmirror@2.4.1~start: Args: [ '-c', 'sh run-start.sh' ]
      11 silly lifecycle magicmirror@2.4.1~start: Returned: code: 1  signal: null
      12 info lifecycle magicmirror@2.4.1~start: Failed to exec start script
      13 verbose stack Error: magicmirror@2.4.1 start: `sh run-start.sh`
      13 verbose stack Exit status 1
      13 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
      13 verbose stack     at EventEmitter.emit (events.js:180:13)
      13 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
      13 verbose stack     at ChildProcess.emit (events.js:180:13)
      13 verbose stack     at maybeClose (internal/child_process.js:936:16)
      13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
      14 verbose pkgid magicmirror@2.4.1
      15 verbose cwd /home/pi/MagicMirror
      16 verbose Linux 4.14.62-v7+
      17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
      18 verbose node v9.11.2
      19 verbose npm  v5.6.0
      20 error code ELIFECYCLE
      21 error errno 1
      22 error magicmirror@2.4.1 start: `sh run-start.sh`
      22 error Exit status 1
      23 error Failed at the magicmirror@2.4.1 start script.
      23 error This is probably not a problem with npm. There is likely additional logging output above.
      24 verbose exit [ 1, true ]
      

      any help please?

      posted in General Discussion
      R
      Ramez
    • MagicMirror and RetroPie

      apologize for my noob experience…I’m trying to make mm into Retropie ports I’ve read their wiki and This and made mm shell but still no succes…any help please

      posted in General Discussion
      R
      Ramez
    • 1 / 1