@@ -49,7 +49,7 @@ function getMediaPath(mediaDir) {
4949 if ( process . env . hasOwnProperty ( 'MOZIOT_HOME' ) ) {
5050 profileDir = process . env . MOZIOT_HOME ;
5151 } else {
52- profileDir = path . join ( os . homedir ( ) , '.mozilla-iot ' ) ;
52+ profileDir = path . join ( os . homedir ( ) , '.webthings ' ) ;
5353 }
5454
5555 return path . join ( profileDir , 'media' , 'virtual-things' ) ;
@@ -64,7 +64,7 @@ function getDataPath(dataDir) {
6464 if ( process . env . hasOwnProperty ( 'MOZIOT_HOME' ) ) {
6565 profileDir = process . env . MOZIOT_HOME ;
6666 } else {
67- profileDir = path . join ( os . homedir ( ) , '.mozilla-iot ' ) ;
67+ profileDir = path . join ( os . homedir ( ) , '.webthings ' ) ;
6868 }
6969
7070 return path . join ( profileDir , 'data' , 'virtual-things-adapter' ) ;
@@ -693,11 +693,10 @@ const camera = {
693693 '@type' : 'ImageProperty' ,
694694 title : 'Image' ,
695695 readOnly : true ,
696- links : [
696+ forms : [
697697 {
698- rel : 'alternate' ,
699698 href : '/media/virtual-things/image.png' ,
700- mediaType : 'image/png' ,
699+ contentType : 'image/png' ,
701700 } ,
702701 ] ,
703702 } ,
@@ -721,11 +720,10 @@ const videoCamera = {
721720 '@type' : 'VideoProperty' ,
722721 title : 'Video' ,
723722 readOnly : true ,
724- links : [
723+ forms : [
725724 {
726- rel : 'alternate' ,
727725 href : '/media/virtual-things/index.mpd' ,
728- mediaType : 'application/dash+xml' ,
726+ contentType : 'application/dash+xml' ,
729727 } ,
730728 ] ,
731729 } ,
@@ -1084,10 +1082,9 @@ const smokeSensor = {
10841082} ;
10851083
10861084if ( ffmpegMajor !== null && ffmpegMajor >= 4 ) {
1087- videoCamera . properties [ 0 ] . metadata . links . push ( {
1088- rel : 'alternate' ,
1085+ videoCamera . properties [ 0 ] . metadata . forms . push ( {
10891086 href : '/media/virtual-things/master.m3u8' ,
1090- mediaType : 'application/vnd.apple.mpegurl' ,
1087+ contentType : 'application/vnd.apple.mpegurl' ,
10911088 } ) ;
10921089}
10931090
0 commit comments